@bugzy-ai/bugzy 1.19.0 → 1.19.2
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/LICENSE +21 -21
- package/README.md +273 -273
- package/dist/cli/index.cjs +157 -13
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +156 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +153 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +153 -10
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs +150 -10
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js +150 -10
- package/dist/subagents/index.js.map +1 -1
- package/dist/subagents/metadata.cjs +8 -0
- package/dist/subagents/metadata.cjs.map +1 -1
- package/dist/subagents/metadata.js +8 -0
- package/dist/subagents/metadata.js.map +1 -1
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js.map +1 -1
- package/package.json +95 -95
- package/templates/init/.bugzy/runtime/hooks/pre-compact.sh +53 -53
- package/templates/init/.bugzy/runtime/hooks/session-start.sh +68 -68
- package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
- package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +140 -140
- package/templates/init/.bugzy/runtime/project-context.md +35 -35
- package/templates/init/.bugzy/runtime/subagent-memory-guide.md +122 -122
- package/templates/init/.bugzy/runtime/templates/event-examples.md +194 -194
- package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
- package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
- package/templates/init/.claude/settings.json +49 -49
- package/templates/init/.env.testdata +18 -18
- package/templates/init/.gitignore-template +24 -24
- package/templates/init/AGENTS.md +155 -155
- package/templates/init/CLAUDE.md +157 -157
- package/templates/init/test-runs/README.md +45 -45
- package/templates/init/tests/CLAUDE.md +199 -199
- package/templates/init/tests/docs/test-execution-strategy.md +535 -535
- package/templates/init/tests/docs/testing-best-practices.md +724 -724
- package/templates/playwright/BasePage.template.ts +190 -190
- package/templates/playwright/auth.setup.template.ts +89 -89
- package/templates/playwright/dataGenerators.helper.template.ts +148 -148
- package/templates/playwright/dateUtils.helper.template.ts +96 -96
- package/templates/playwright/pages.fixture.template.ts +50 -50
- package/templates/playwright/playwright.config.template.ts +97 -97
- package/templates/playwright/reporters/__tests__/bugzy-reporter-failure-classification.test.ts +299 -299
- package/templates/playwright/reporters/__tests__/bugzy-reporter-manifest-merge.test.ts +329 -329
- package/templates/playwright/reporters/__tests__/playwright.config.ts +5 -5
- package/templates/playwright/reporters/bugzy-reporter.ts +784 -784
- package/dist/templates/init/.bugzy/runtime/knowledge-base.md +0 -61
- package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +0 -97
- package/dist/templates/init/.bugzy/runtime/project-context.md +0 -35
- package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +0 -87
- package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +0 -50
- package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +0 -498
- package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +0 -535
- package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +0 -632
- package/dist/templates/init/.gitignore-template +0 -25
package/dist/index.js
CHANGED
|
@@ -112,6 +112,9 @@ var MCP_SERVERS = {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
+
// asana: CLI-only integration — no MCP server needed.
|
|
116
|
+
// Agent uses `asana-cli task search|create|update|comment` via Bash.
|
|
117
|
+
// Package is installed globally in the container for CLI access.
|
|
115
118
|
// github-modelcontextprotocol: {
|
|
116
119
|
// provider: 'github',
|
|
117
120
|
// name: 'GitHub',
|
|
@@ -4311,8 +4314,136 @@ Your memory file becomes more valuable over time:
|
|
|
4311
4314
|
|
|
4312
4315
|
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.`;
|
|
4313
4316
|
|
|
4314
|
-
// src/subagents/templates/issue-tracker/
|
|
4317
|
+
// src/subagents/templates/issue-tracker/asana.ts
|
|
4315
4318
|
var FRONTMATTER13 = {
|
|
4319
|
+
name: "issue-tracker",
|
|
4320
|
+
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
|
+
user: "3 tests failed in the checkout flow - payment validation is broken"
|
|
4322
|
+
assistant: "I'll use the issue-tracker agent to create Asana tasks for these failures with detailed reproduction steps and test evidence."
|
|
4323
|
+
<commentary>Since test failures were discovered, use the issue-tracker agent to create Asana tasks, check for duplicates, and properly categorize each bug.</commentary></example> <example>Context: A task needs to be updated with test results.
|
|
4324
|
+
user: "Task 1234567890 has been verified on staging"
|
|
4325
|
+
assistant: "Let me use the issue-tracker agent to mark the task as complete and add verification comments."
|
|
4326
|
+
<commentary>Use the issue-tracker agent to update task status and document QA validation results.</commentary></example>`,
|
|
4327
|
+
model: "sonnet",
|
|
4328
|
+
color: "red"
|
|
4329
|
+
};
|
|
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.
|
|
4331
|
+
|
|
4332
|
+
**Important: CLI-First Approach**
|
|
4333
|
+
|
|
4334
|
+
Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compact output optimized for agent consumption and avoids MCP schema overhead.
|
|
4335
|
+
|
|
4336
|
+
**Primary Interface \u2014 CLI Commands (via Bash):**
|
|
4337
|
+
|
|
4338
|
+
- **Search tasks**: \`asana-cli task search --query "login bug" [--project GID] [--assignee GID]\`
|
|
4339
|
+
- **Get task details**: \`asana-cli task get <gid>\`
|
|
4340
|
+
- **Create task**: \`asana-cli task create --name "Bug: ..." --project GID [--description "..."] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
4341
|
+
- **Update task**: \`asana-cli task update <gid> [--name "..."] [--completed] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
4342
|
+
- **Add comment**: \`asana-cli task comment <gid> --body "Test evidence: ..."\`
|
|
4343
|
+
- **List projects**: \`asana-cli project list\`
|
|
4344
|
+
- **All commands**: Add \`--json\` for structured JSON output when parsing is needed
|
|
4345
|
+
|
|
4346
|
+
**Attribution:** Always prefix your comments and task descriptions with "[Bugzy]:" to clearly identify actions taken by the Bugzy integration. For example:
|
|
4347
|
+
- Comment: "[Bugzy]: Test evidence shows the login form fails on Chrome 120..."
|
|
4348
|
+
- Task description: "[Bugzy]: Reproduction steps: 1. Navigate to..."
|
|
4349
|
+
Do NOT prefix task names \u2014 keep them clean (e.g. "Bug: Login timeout").
|
|
4350
|
+
|
|
4351
|
+
**Core Responsibilities:**
|
|
4352
|
+
|
|
4353
|
+
1. **Task Creation & Management**: Generate detailed tasks with reproduction steps, environment details, and test evidence. Include severity assessment and proper project/section assignment.
|
|
4354
|
+
|
|
4355
|
+
2. **Duplicate Detection**: Before creating new tasks, always search for existing similar tasks to avoid duplicates and link related work.
|
|
4356
|
+
|
|
4357
|
+
3. **Lifecycle Management**: Track task status, mark tasks complete when verified, add comments with test findings and status updates.
|
|
4358
|
+
|
|
4359
|
+
4. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
4360
|
+
|
|
4361
|
+
**Memory Sections for Issue Tracker (Asana)**:
|
|
4362
|
+
- Asana workspace GID, project GIDs, and section mappings
|
|
4363
|
+
- Recently reported tasks with their GIDs and status
|
|
4364
|
+
- Search queries that work well for finding duplicates
|
|
4365
|
+
- Task naming conventions and description templates
|
|
4366
|
+
- Project-specific workflows and assignee mappings
|
|
4367
|
+
|
|
4368
|
+
**Operational Workflow:**
|
|
4369
|
+
|
|
4370
|
+
1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/issue-tracker.md\` to load your Asana configuration and recent task history
|
|
4371
|
+
|
|
4372
|
+
2. **Duplicate Detection**:
|
|
4373
|
+
- Check memory for recently reported similar tasks
|
|
4374
|
+
- Use \`asana-cli task search --query "error keywords"\` to search
|
|
4375
|
+
- Look for matching names, descriptions, or error messages
|
|
4376
|
+
- If duplicate found, add a comment to the existing task instead
|
|
4377
|
+
|
|
4378
|
+
3. **Task Creation**:
|
|
4379
|
+
- Use the project GID from memory
|
|
4380
|
+
- Include comprehensive details: reproduction steps, expected vs actual behavior, environment
|
|
4381
|
+
- Set appropriate assignee and due date when known
|
|
4382
|
+
- Add test evidence and screenshots references in the description
|
|
4383
|
+
|
|
4384
|
+
4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
4385
|
+
|
|
4386
|
+
Specifically for issue-tracker (Asana), consider updating:
|
|
4387
|
+
- **Created Tasks**: Add newly created tasks with their GIDs
|
|
4388
|
+
- **Project Mappings**: Track which projects map to which areas
|
|
4389
|
+
- **Search Patterns**: Save effective search queries
|
|
4390
|
+
- **Assignee Mappings**: Track who handles what areas
|
|
4391
|
+
- Update pattern library with new issue types
|
|
4392
|
+
|
|
4393
|
+
**Memory File Structure** (\`.bugzy/runtime/memory/issue-tracker.md\`):
|
|
4394
|
+
\`\`\`markdown
|
|
4395
|
+
# Issue Tracker Memory
|
|
4396
|
+
|
|
4397
|
+
## Last Updated: [timestamp]
|
|
4398
|
+
|
|
4399
|
+
## Asana Configuration
|
|
4400
|
+
- Workspace GID: 12345
|
|
4401
|
+
- Default Project GID: 67890
|
|
4402
|
+
- Project: My Project
|
|
4403
|
+
|
|
4404
|
+
## Project Mappings
|
|
4405
|
+
- Auth issues \u2192 Project "Auth" (GID: 11111)
|
|
4406
|
+
- Payment issues \u2192 Project "Payments" (GID: 22222)
|
|
4407
|
+
- UI issues \u2192 Project "Frontend" (GID: 33333)
|
|
4408
|
+
|
|
4409
|
+
## Assignee Mappings
|
|
4410
|
+
- Auth bugs \u2192 user GID 44444
|
|
4411
|
+
- Payment bugs \u2192 user GID 55555
|
|
4412
|
+
|
|
4413
|
+
## Recent Tasks (Last 30 days)
|
|
4414
|
+
- [Date] GID 98765: Login timeout on Chrome - Status: Open
|
|
4415
|
+
- [Date] GID 98766: Payment validation error - Status: Completed
|
|
4416
|
+
|
|
4417
|
+
## Effective Search Queries
|
|
4418
|
+
- Login issues: --query "login" --project 11111
|
|
4419
|
+
- Payment bugs: --query "payment" --project 22222
|
|
4420
|
+
- Recent failures: --query "fail" (no project filter)
|
|
4421
|
+
|
|
4422
|
+
## Issue Patterns
|
|
4423
|
+
- Timeout errors: Usually infrastructure-related
|
|
4424
|
+
- Validation failures: Often missing edge case handling
|
|
4425
|
+
- Browser-specific: Test across Chrome, Firefox, Safari
|
|
4426
|
+
\`\`\`
|
|
4427
|
+
|
|
4428
|
+
**Task Creation Standards:**
|
|
4429
|
+
|
|
4430
|
+
- Always search before creating to prevent duplicates
|
|
4431
|
+
- Task names: \`Bug: [Component] Short description\` or \`[Type]: Short description\`
|
|
4432
|
+
- Description includes: reproduction steps, expected behavior, actual behavior, environment details, test evidence
|
|
4433
|
+
- Set assignee when the responsible team member is known
|
|
4434
|
+
- Set due date for urgent/critical bugs
|
|
4435
|
+
|
|
4436
|
+
**Quality Assurance:**
|
|
4437
|
+
|
|
4438
|
+
- Verify project GIDs are current
|
|
4439
|
+
- Update task status after verification
|
|
4440
|
+
- Maintain accurate recent task list in memory
|
|
4441
|
+
- Prune old patterns that no longer apply
|
|
4442
|
+
|
|
4443
|
+
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
|
+
|
|
4445
|
+
// src/subagents/templates/issue-tracker/notion.ts
|
|
4446
|
+
var FRONTMATTER14 = {
|
|
4316
4447
|
name: "issue-tracker",
|
|
4317
4448
|
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.
|
|
4318
4449
|
user: "The submit button on the checkout page doesn't work on mobile Safari"
|
|
@@ -4324,7 +4455,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
|
|
|
4324
4455
|
model: "haiku",
|
|
4325
4456
|
color: "red"
|
|
4326
4457
|
};
|
|
4327
|
-
var
|
|
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.
|
|
4328
4459
|
|
|
4329
4460
|
**Core Responsibilities:**
|
|
4330
4461
|
|
|
@@ -4471,7 +4602,7 @@ Your memory file grows more valuable over time:
|
|
|
4471
4602
|
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.`;
|
|
4472
4603
|
|
|
4473
4604
|
// src/subagents/templates/issue-tracker/slack.ts
|
|
4474
|
-
var
|
|
4605
|
+
var FRONTMATTER15 = {
|
|
4475
4606
|
name: "issue-tracker",
|
|
4476
4607
|
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.
|
|
4477
4608
|
user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
|
|
@@ -4483,7 +4614,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
|
|
|
4483
4614
|
model: "sonnet",
|
|
4484
4615
|
color: "red"
|
|
4485
4616
|
};
|
|
4486
|
-
var
|
|
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.
|
|
4487
4618
|
|
|
4488
4619
|
**Core Responsibilities:**
|
|
4489
4620
|
|
|
@@ -4705,7 +4836,7 @@ Maintain organized issue tracking:
|
|
|
4705
4836
|
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.`;
|
|
4706
4837
|
|
|
4707
4838
|
// src/subagents/templates/changelog-historian/github.ts
|
|
4708
|
-
var
|
|
4839
|
+
var FRONTMATTER16 = {
|
|
4709
4840
|
name: "changelog-historian",
|
|
4710
4841
|
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.
|
|
4711
4842
|
user: "The checkout flow test is failing in staging. What changed recently?"
|
|
@@ -4717,7 +4848,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
|
|
|
4717
4848
|
model: "haiku",
|
|
4718
4849
|
color: "gray"
|
|
4719
4850
|
};
|
|
4720
|
-
var
|
|
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.
|
|
4721
4852
|
|
|
4722
4853
|
## Core Responsibilities
|
|
4723
4854
|
|
|
@@ -4889,19 +5020,23 @@ var TEMPLATES = {
|
|
|
4889
5020
|
frontmatter: FRONTMATTER12,
|
|
4890
5021
|
content: CONTENT12
|
|
4891
5022
|
},
|
|
4892
|
-
|
|
5023
|
+
asana: {
|
|
4893
5024
|
frontmatter: FRONTMATTER13,
|
|
4894
5025
|
content: CONTENT13
|
|
4895
5026
|
},
|
|
4896
|
-
|
|
5027
|
+
notion: {
|
|
4897
5028
|
frontmatter: FRONTMATTER14,
|
|
4898
5029
|
content: CONTENT14
|
|
5030
|
+
},
|
|
5031
|
+
slack: {
|
|
5032
|
+
frontmatter: FRONTMATTER15,
|
|
5033
|
+
content: CONTENT15
|
|
4899
5034
|
}
|
|
4900
5035
|
},
|
|
4901
5036
|
"changelog-historian": {
|
|
4902
5037
|
github: {
|
|
4903
|
-
frontmatter:
|
|
4904
|
-
content:
|
|
5038
|
+
frontmatter: FRONTMATTER16,
|
|
5039
|
+
content: CONTENT16
|
|
4905
5040
|
}
|
|
4906
5041
|
}
|
|
4907
5042
|
};
|
|
@@ -4949,6 +5084,13 @@ var INTEGRATIONS = {
|
|
|
4949
5084
|
integrationType: "oauth"
|
|
4950
5085
|
// Uses Nango with API key auth for PAT
|
|
4951
5086
|
},
|
|
5087
|
+
asana: {
|
|
5088
|
+
id: "asana",
|
|
5089
|
+
name: "Asana",
|
|
5090
|
+
provider: "asana",
|
|
5091
|
+
// No requiredMCP — uses asana-mcp-server CLI (CLI tool), not MCP server
|
|
5092
|
+
integrationType: "oauth"
|
|
5093
|
+
},
|
|
4952
5094
|
notion: {
|
|
4953
5095
|
id: "notion",
|
|
4954
5096
|
name: "Notion",
|
|
@@ -5053,6 +5195,7 @@ var SUBAGENTS = {
|
|
|
5053
5195
|
INTEGRATIONS.jira,
|
|
5054
5196
|
INTEGRATIONS["jira-server"],
|
|
5055
5197
|
INTEGRATIONS["azure-devops"],
|
|
5198
|
+
INTEGRATIONS.asana,
|
|
5056
5199
|
INTEGRATIONS.notion,
|
|
5057
5200
|
INTEGRATIONS.slack
|
|
5058
5201
|
],
|