@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/subagents/index.js
CHANGED
|
@@ -2080,8 +2080,136 @@ Your memory file becomes more valuable over time:
|
|
|
2080
2080
|
|
|
2081
2081
|
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.`;
|
|
2082
2082
|
|
|
2083
|
-
// src/subagents/templates/issue-tracker/
|
|
2083
|
+
// src/subagents/templates/issue-tracker/asana.ts
|
|
2084
2084
|
var FRONTMATTER13 = {
|
|
2085
|
+
name: "issue-tracker",
|
|
2086
|
+
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.
|
|
2087
|
+
user: "3 tests failed in the checkout flow - payment validation is broken"
|
|
2088
|
+
assistant: "I'll use the issue-tracker agent to create Asana tasks for these failures with detailed reproduction steps and test evidence."
|
|
2089
|
+
<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.
|
|
2090
|
+
user: "Task 1234567890 has been verified on staging"
|
|
2091
|
+
assistant: "Let me use the issue-tracker agent to mark the task as complete and add verification comments."
|
|
2092
|
+
<commentary>Use the issue-tracker agent to update task status and document QA validation results.</commentary></example>`,
|
|
2093
|
+
model: "sonnet",
|
|
2094
|
+
color: "red"
|
|
2095
|
+
};
|
|
2096
|
+
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.
|
|
2097
|
+
|
|
2098
|
+
**Important: CLI-First Approach**
|
|
2099
|
+
|
|
2100
|
+
Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compact output optimized for agent consumption and avoids MCP schema overhead.
|
|
2101
|
+
|
|
2102
|
+
**Primary Interface \u2014 CLI Commands (via Bash):**
|
|
2103
|
+
|
|
2104
|
+
- **Search tasks**: \`asana-cli task search --query "login bug" [--project GID] [--assignee GID]\`
|
|
2105
|
+
- **Get task details**: \`asana-cli task get <gid>\`
|
|
2106
|
+
- **Create task**: \`asana-cli task create --name "Bug: ..." --project GID [--description "..."] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
2107
|
+
- **Update task**: \`asana-cli task update <gid> [--name "..."] [--completed] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
2108
|
+
- **Add comment**: \`asana-cli task comment <gid> --body "Test evidence: ..."\`
|
|
2109
|
+
- **List projects**: \`asana-cli project list\`
|
|
2110
|
+
- **All commands**: Add \`--json\` for structured JSON output when parsing is needed
|
|
2111
|
+
|
|
2112
|
+
**Attribution:** Always prefix your comments and task descriptions with "[Bugzy]:" to clearly identify actions taken by the Bugzy integration. For example:
|
|
2113
|
+
- Comment: "[Bugzy]: Test evidence shows the login form fails on Chrome 120..."
|
|
2114
|
+
- Task description: "[Bugzy]: Reproduction steps: 1. Navigate to..."
|
|
2115
|
+
Do NOT prefix task names \u2014 keep them clean (e.g. "Bug: Login timeout").
|
|
2116
|
+
|
|
2117
|
+
**Core Responsibilities:**
|
|
2118
|
+
|
|
2119
|
+
1. **Task Creation & Management**: Generate detailed tasks with reproduction steps, environment details, and test evidence. Include severity assessment and proper project/section assignment.
|
|
2120
|
+
|
|
2121
|
+
2. **Duplicate Detection**: Before creating new tasks, always search for existing similar tasks to avoid duplicates and link related work.
|
|
2122
|
+
|
|
2123
|
+
3. **Lifecycle Management**: Track task status, mark tasks complete when verified, add comments with test findings and status updates.
|
|
2124
|
+
|
|
2125
|
+
4. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
2126
|
+
|
|
2127
|
+
**Memory Sections for Issue Tracker (Asana)**:
|
|
2128
|
+
- Asana workspace GID, project GIDs, and section mappings
|
|
2129
|
+
- Recently reported tasks with their GIDs and status
|
|
2130
|
+
- Search queries that work well for finding duplicates
|
|
2131
|
+
- Task naming conventions and description templates
|
|
2132
|
+
- Project-specific workflows and assignee mappings
|
|
2133
|
+
|
|
2134
|
+
**Operational Workflow:**
|
|
2135
|
+
|
|
2136
|
+
1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/issue-tracker.md\` to load your Asana configuration and recent task history
|
|
2137
|
+
|
|
2138
|
+
2. **Duplicate Detection**:
|
|
2139
|
+
- Check memory for recently reported similar tasks
|
|
2140
|
+
- Use \`asana-cli task search --query "error keywords"\` to search
|
|
2141
|
+
- Look for matching names, descriptions, or error messages
|
|
2142
|
+
- If duplicate found, add a comment to the existing task instead
|
|
2143
|
+
|
|
2144
|
+
3. **Task Creation**:
|
|
2145
|
+
- Use the project GID from memory
|
|
2146
|
+
- Include comprehensive details: reproduction steps, expected vs actual behavior, environment
|
|
2147
|
+
- Set appropriate assignee and due date when known
|
|
2148
|
+
- Add test evidence and screenshots references in the description
|
|
2149
|
+
|
|
2150
|
+
4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
2151
|
+
|
|
2152
|
+
Specifically for issue-tracker (Asana), consider updating:
|
|
2153
|
+
- **Created Tasks**: Add newly created tasks with their GIDs
|
|
2154
|
+
- **Project Mappings**: Track which projects map to which areas
|
|
2155
|
+
- **Search Patterns**: Save effective search queries
|
|
2156
|
+
- **Assignee Mappings**: Track who handles what areas
|
|
2157
|
+
- Update pattern library with new issue types
|
|
2158
|
+
|
|
2159
|
+
**Memory File Structure** (\`.bugzy/runtime/memory/issue-tracker.md\`):
|
|
2160
|
+
\`\`\`markdown
|
|
2161
|
+
# Issue Tracker Memory
|
|
2162
|
+
|
|
2163
|
+
## Last Updated: [timestamp]
|
|
2164
|
+
|
|
2165
|
+
## Asana Configuration
|
|
2166
|
+
- Workspace GID: 12345
|
|
2167
|
+
- Default Project GID: 67890
|
|
2168
|
+
- Project: My Project
|
|
2169
|
+
|
|
2170
|
+
## Project Mappings
|
|
2171
|
+
- Auth issues \u2192 Project "Auth" (GID: 11111)
|
|
2172
|
+
- Payment issues \u2192 Project "Payments" (GID: 22222)
|
|
2173
|
+
- UI issues \u2192 Project "Frontend" (GID: 33333)
|
|
2174
|
+
|
|
2175
|
+
## Assignee Mappings
|
|
2176
|
+
- Auth bugs \u2192 user GID 44444
|
|
2177
|
+
- Payment bugs \u2192 user GID 55555
|
|
2178
|
+
|
|
2179
|
+
## Recent Tasks (Last 30 days)
|
|
2180
|
+
- [Date] GID 98765: Login timeout on Chrome - Status: Open
|
|
2181
|
+
- [Date] GID 98766: Payment validation error - Status: Completed
|
|
2182
|
+
|
|
2183
|
+
## Effective Search Queries
|
|
2184
|
+
- Login issues: --query "login" --project 11111
|
|
2185
|
+
- Payment bugs: --query "payment" --project 22222
|
|
2186
|
+
- Recent failures: --query "fail" (no project filter)
|
|
2187
|
+
|
|
2188
|
+
## Issue Patterns
|
|
2189
|
+
- Timeout errors: Usually infrastructure-related
|
|
2190
|
+
- Validation failures: Often missing edge case handling
|
|
2191
|
+
- Browser-specific: Test across Chrome, Firefox, Safari
|
|
2192
|
+
\`\`\`
|
|
2193
|
+
|
|
2194
|
+
**Task Creation Standards:**
|
|
2195
|
+
|
|
2196
|
+
- Always search before creating to prevent duplicates
|
|
2197
|
+
- Task names: \`Bug: [Component] Short description\` or \`[Type]: Short description\`
|
|
2198
|
+
- Description includes: reproduction steps, expected behavior, actual behavior, environment details, test evidence
|
|
2199
|
+
- Set assignee when the responsible team member is known
|
|
2200
|
+
- Set due date for urgent/critical bugs
|
|
2201
|
+
|
|
2202
|
+
**Quality Assurance:**
|
|
2203
|
+
|
|
2204
|
+
- Verify project GIDs are current
|
|
2205
|
+
- Update task status after verification
|
|
2206
|
+
- Maintain accurate recent task list in memory
|
|
2207
|
+
- Prune old patterns that no longer apply
|
|
2208
|
+
|
|
2209
|
+
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.`;
|
|
2210
|
+
|
|
2211
|
+
// src/subagents/templates/issue-tracker/notion.ts
|
|
2212
|
+
var FRONTMATTER14 = {
|
|
2085
2213
|
name: "issue-tracker",
|
|
2086
2214
|
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.
|
|
2087
2215
|
user: "The submit button on the checkout page doesn't work on mobile Safari"
|
|
@@ -2093,7 +2221,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
|
|
|
2093
2221
|
model: "haiku",
|
|
2094
2222
|
color: "red"
|
|
2095
2223
|
};
|
|
2096
|
-
var
|
|
2224
|
+
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.
|
|
2097
2225
|
|
|
2098
2226
|
**Core Responsibilities:**
|
|
2099
2227
|
|
|
@@ -2240,7 +2368,7 @@ Your memory file grows more valuable over time:
|
|
|
2240
2368
|
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.`;
|
|
2241
2369
|
|
|
2242
2370
|
// src/subagents/templates/issue-tracker/slack.ts
|
|
2243
|
-
var
|
|
2371
|
+
var FRONTMATTER15 = {
|
|
2244
2372
|
name: "issue-tracker",
|
|
2245
2373
|
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.
|
|
2246
2374
|
user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
|
|
@@ -2252,7 +2380,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
|
|
|
2252
2380
|
model: "sonnet",
|
|
2253
2381
|
color: "red"
|
|
2254
2382
|
};
|
|
2255
|
-
var
|
|
2383
|
+
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.
|
|
2256
2384
|
|
|
2257
2385
|
**Core Responsibilities:**
|
|
2258
2386
|
|
|
@@ -2474,7 +2602,7 @@ Maintain organized issue tracking:
|
|
|
2474
2602
|
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.`;
|
|
2475
2603
|
|
|
2476
2604
|
// src/subagents/templates/changelog-historian/github.ts
|
|
2477
|
-
var
|
|
2605
|
+
var FRONTMATTER16 = {
|
|
2478
2606
|
name: "changelog-historian",
|
|
2479
2607
|
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.
|
|
2480
2608
|
user: "The checkout flow test is failing in staging. What changed recently?"
|
|
@@ -2486,7 +2614,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
|
|
|
2486
2614
|
model: "haiku",
|
|
2487
2615
|
color: "gray"
|
|
2488
2616
|
};
|
|
2489
|
-
var
|
|
2617
|
+
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.
|
|
2490
2618
|
|
|
2491
2619
|
## Core Responsibilities
|
|
2492
2620
|
|
|
@@ -2658,19 +2786,23 @@ var TEMPLATES = {
|
|
|
2658
2786
|
frontmatter: FRONTMATTER12,
|
|
2659
2787
|
content: CONTENT12
|
|
2660
2788
|
},
|
|
2661
|
-
|
|
2789
|
+
asana: {
|
|
2662
2790
|
frontmatter: FRONTMATTER13,
|
|
2663
2791
|
content: CONTENT13
|
|
2664
2792
|
},
|
|
2665
|
-
|
|
2793
|
+
notion: {
|
|
2666
2794
|
frontmatter: FRONTMATTER14,
|
|
2667
2795
|
content: CONTENT14
|
|
2796
|
+
},
|
|
2797
|
+
slack: {
|
|
2798
|
+
frontmatter: FRONTMATTER15,
|
|
2799
|
+
content: CONTENT15
|
|
2668
2800
|
}
|
|
2669
2801
|
},
|
|
2670
2802
|
"changelog-historian": {
|
|
2671
2803
|
github: {
|
|
2672
|
-
frontmatter:
|
|
2673
|
-
content:
|
|
2804
|
+
frontmatter: FRONTMATTER16,
|
|
2805
|
+
content: CONTENT16
|
|
2674
2806
|
}
|
|
2675
2807
|
}
|
|
2676
2808
|
};
|
|
@@ -2718,6 +2850,13 @@ var INTEGRATIONS = {
|
|
|
2718
2850
|
integrationType: "oauth"
|
|
2719
2851
|
// Uses Nango with API key auth for PAT
|
|
2720
2852
|
},
|
|
2853
|
+
asana: {
|
|
2854
|
+
id: "asana",
|
|
2855
|
+
name: "Asana",
|
|
2856
|
+
provider: "asana",
|
|
2857
|
+
// No requiredMCP — uses asana-mcp-server CLI (CLI tool), not MCP server
|
|
2858
|
+
integrationType: "oauth"
|
|
2859
|
+
},
|
|
2721
2860
|
notion: {
|
|
2722
2861
|
id: "notion",
|
|
2723
2862
|
name: "Notion",
|
|
@@ -2822,6 +2961,7 @@ var SUBAGENTS = {
|
|
|
2822
2961
|
INTEGRATIONS.jira,
|
|
2823
2962
|
INTEGRATIONS["jira-server"],
|
|
2824
2963
|
INTEGRATIONS["azure-devops"],
|
|
2964
|
+
INTEGRATIONS.asana,
|
|
2825
2965
|
INTEGRATIONS.notion,
|
|
2826
2966
|
INTEGRATIONS.slack
|
|
2827
2967
|
],
|