@bugzy-ai/bugzy 1.18.5 → 1.19.1
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 +332 -257
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +334 -259
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +193 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +193 -201
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs +145 -10
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js +145 -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 +9 -89
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +9 -89
- package/dist/tasks/index.js.map +1 -1
- package/package.json +95 -95
- package/templates/init/.bugzy/runtime/hooks/pre-compact.sh +53 -0
- package/templates/init/.bugzy/runtime/hooks/session-start.sh +68 -0
- package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
- package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +140 -97
- package/templates/init/.bugzy/runtime/project-context.md +35 -35
- package/templates/init/.bugzy/runtime/subagent-memory-guide.md +122 -87
- 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 -28
- 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.cjs
CHANGED
|
@@ -2120,8 +2120,131 @@ Your memory file becomes more valuable over time:
|
|
|
2120
2120
|
|
|
2121
2121
|
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.`;
|
|
2122
2122
|
|
|
2123
|
-
// src/subagents/templates/issue-tracker/
|
|
2123
|
+
// src/subagents/templates/issue-tracker/asana.ts
|
|
2124
2124
|
var FRONTMATTER13 = {
|
|
2125
|
+
name: "issue-tracker",
|
|
2126
|
+
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.
|
|
2127
|
+
user: "3 tests failed in the checkout flow - payment validation is broken"
|
|
2128
|
+
assistant: "I'll use the issue-tracker agent to create Asana tasks for these failures with detailed reproduction steps and test evidence."
|
|
2129
|
+
<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.
|
|
2130
|
+
user: "Task 1234567890 has been verified on staging"
|
|
2131
|
+
assistant: "Let me use the issue-tracker agent to mark the task as complete and add verification comments."
|
|
2132
|
+
<commentary>Use the issue-tracker agent to update task status and document QA validation results.</commentary></example>`,
|
|
2133
|
+
model: "sonnet",
|
|
2134
|
+
color: "red"
|
|
2135
|
+
};
|
|
2136
|
+
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.
|
|
2137
|
+
|
|
2138
|
+
**Important: CLI-First Approach**
|
|
2139
|
+
|
|
2140
|
+
Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compact output optimized for agent consumption and avoids MCP schema overhead.
|
|
2141
|
+
|
|
2142
|
+
**Primary Interface \u2014 CLI Commands (via Bash):**
|
|
2143
|
+
|
|
2144
|
+
- **Search tasks**: \`asana-cli task search --query "login bug" [--project GID] [--assignee GID]\`
|
|
2145
|
+
- **Get task details**: \`asana-cli task get <gid>\`
|
|
2146
|
+
- **Create task**: \`asana-cli task create --name "Bug: ..." --project GID [--description "..."] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
2147
|
+
- **Update task**: \`asana-cli task update <gid> [--name "..."] [--completed] [--assignee GID] [--due YYYY-MM-DD]\`
|
|
2148
|
+
- **Add comment**: \`asana-cli task comment <gid> --body "Test evidence: ..."\`
|
|
2149
|
+
- **List projects**: \`asana-cli project list\`
|
|
2150
|
+
- **All commands**: Add \`--json\` for structured JSON output when parsing is needed
|
|
2151
|
+
|
|
2152
|
+
**Core Responsibilities:**
|
|
2153
|
+
|
|
2154
|
+
1. **Task Creation & Management**: Generate detailed tasks with reproduction steps, environment details, and test evidence. Include severity assessment and proper project/section assignment.
|
|
2155
|
+
|
|
2156
|
+
2. **Duplicate Detection**: Before creating new tasks, always search for existing similar tasks to avoid duplicates and link related work.
|
|
2157
|
+
|
|
2158
|
+
3. **Lifecycle Management**: Track task status, mark tasks complete when verified, add comments with test findings and status updates.
|
|
2159
|
+
|
|
2160
|
+
4. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
2161
|
+
|
|
2162
|
+
**Memory Sections for Issue Tracker (Asana)**:
|
|
2163
|
+
- Asana workspace GID, project GIDs, and section mappings
|
|
2164
|
+
- Recently reported tasks with their GIDs and status
|
|
2165
|
+
- Search queries that work well for finding duplicates
|
|
2166
|
+
- Task naming conventions and description templates
|
|
2167
|
+
- Project-specific workflows and assignee mappings
|
|
2168
|
+
|
|
2169
|
+
**Operational Workflow:**
|
|
2170
|
+
|
|
2171
|
+
1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/issue-tracker.md\` to load your Asana configuration and recent task history
|
|
2172
|
+
|
|
2173
|
+
2. **Duplicate Detection**:
|
|
2174
|
+
- Check memory for recently reported similar tasks
|
|
2175
|
+
- Use \`asana-cli task search --query "error keywords"\` to search
|
|
2176
|
+
- Look for matching names, descriptions, or error messages
|
|
2177
|
+
- If duplicate found, add a comment to the existing task instead
|
|
2178
|
+
|
|
2179
|
+
3. **Task Creation**:
|
|
2180
|
+
- Use the project GID from memory
|
|
2181
|
+
- Include comprehensive details: reproduction steps, expected vs actual behavior, environment
|
|
2182
|
+
- Set appropriate assignee and due date when known
|
|
2183
|
+
- Add test evidence and screenshots references in the description
|
|
2184
|
+
|
|
2185
|
+
4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "issue-tracker")}
|
|
2186
|
+
|
|
2187
|
+
Specifically for issue-tracker (Asana), consider updating:
|
|
2188
|
+
- **Created Tasks**: Add newly created tasks with their GIDs
|
|
2189
|
+
- **Project Mappings**: Track which projects map to which areas
|
|
2190
|
+
- **Search Patterns**: Save effective search queries
|
|
2191
|
+
- **Assignee Mappings**: Track who handles what areas
|
|
2192
|
+
- Update pattern library with new issue types
|
|
2193
|
+
|
|
2194
|
+
**Memory File Structure** (\`.bugzy/runtime/memory/issue-tracker.md\`):
|
|
2195
|
+
\`\`\`markdown
|
|
2196
|
+
# Issue Tracker Memory
|
|
2197
|
+
|
|
2198
|
+
## Last Updated: [timestamp]
|
|
2199
|
+
|
|
2200
|
+
## Asana Configuration
|
|
2201
|
+
- Workspace GID: 12345
|
|
2202
|
+
- Default Project GID: 67890
|
|
2203
|
+
- Project: My Project
|
|
2204
|
+
|
|
2205
|
+
## Project Mappings
|
|
2206
|
+
- Auth issues \u2192 Project "Auth" (GID: 11111)
|
|
2207
|
+
- Payment issues \u2192 Project "Payments" (GID: 22222)
|
|
2208
|
+
- UI issues \u2192 Project "Frontend" (GID: 33333)
|
|
2209
|
+
|
|
2210
|
+
## Assignee Mappings
|
|
2211
|
+
- Auth bugs \u2192 user GID 44444
|
|
2212
|
+
- Payment bugs \u2192 user GID 55555
|
|
2213
|
+
|
|
2214
|
+
## Recent Tasks (Last 30 days)
|
|
2215
|
+
- [Date] GID 98765: Login timeout on Chrome - Status: Open
|
|
2216
|
+
- [Date] GID 98766: Payment validation error - Status: Completed
|
|
2217
|
+
|
|
2218
|
+
## Effective Search Queries
|
|
2219
|
+
- Login issues: --query "login" --project 11111
|
|
2220
|
+
- Payment bugs: --query "payment" --project 22222
|
|
2221
|
+
- Recent failures: --query "fail" (no project filter)
|
|
2222
|
+
|
|
2223
|
+
## Issue Patterns
|
|
2224
|
+
- Timeout errors: Usually infrastructure-related
|
|
2225
|
+
- Validation failures: Often missing edge case handling
|
|
2226
|
+
- Browser-specific: Test across Chrome, Firefox, Safari
|
|
2227
|
+
\`\`\`
|
|
2228
|
+
|
|
2229
|
+
**Task Creation Standards:**
|
|
2230
|
+
|
|
2231
|
+
- Always search before creating to prevent duplicates
|
|
2232
|
+
- Task names: \`Bug: [Component] Short description\` or \`[Type]: Short description\`
|
|
2233
|
+
- Description includes: reproduction steps, expected behavior, actual behavior, environment details, test evidence
|
|
2234
|
+
- Set assignee when the responsible team member is known
|
|
2235
|
+
- Set due date for urgent/critical bugs
|
|
2236
|
+
|
|
2237
|
+
**Quality Assurance:**
|
|
2238
|
+
|
|
2239
|
+
- Verify project GIDs are current
|
|
2240
|
+
- Update task status after verification
|
|
2241
|
+
- Maintain accurate recent task list in memory
|
|
2242
|
+
- Prune old patterns that no longer apply
|
|
2243
|
+
|
|
2244
|
+
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.`;
|
|
2245
|
+
|
|
2246
|
+
// src/subagents/templates/issue-tracker/notion.ts
|
|
2247
|
+
var FRONTMATTER14 = {
|
|
2125
2248
|
name: "issue-tracker",
|
|
2126
2249
|
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.
|
|
2127
2250
|
user: "The submit button on the checkout page doesn't work on mobile Safari"
|
|
@@ -2133,7 +2256,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
|
|
|
2133
2256
|
model: "haiku",
|
|
2134
2257
|
color: "red"
|
|
2135
2258
|
};
|
|
2136
|
-
var
|
|
2259
|
+
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.
|
|
2137
2260
|
|
|
2138
2261
|
**Core Responsibilities:**
|
|
2139
2262
|
|
|
@@ -2280,7 +2403,7 @@ Your memory file grows more valuable over time:
|
|
|
2280
2403
|
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.`;
|
|
2281
2404
|
|
|
2282
2405
|
// src/subagents/templates/issue-tracker/slack.ts
|
|
2283
|
-
var
|
|
2406
|
+
var FRONTMATTER15 = {
|
|
2284
2407
|
name: "issue-tracker",
|
|
2285
2408
|
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.
|
|
2286
2409
|
user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
|
|
@@ -2292,7 +2415,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
|
|
|
2292
2415
|
model: "sonnet",
|
|
2293
2416
|
color: "red"
|
|
2294
2417
|
};
|
|
2295
|
-
var
|
|
2418
|
+
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.
|
|
2296
2419
|
|
|
2297
2420
|
**Core Responsibilities:**
|
|
2298
2421
|
|
|
@@ -2514,7 +2637,7 @@ Maintain organized issue tracking:
|
|
|
2514
2637
|
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.`;
|
|
2515
2638
|
|
|
2516
2639
|
// src/subagents/templates/changelog-historian/github.ts
|
|
2517
|
-
var
|
|
2640
|
+
var FRONTMATTER16 = {
|
|
2518
2641
|
name: "changelog-historian",
|
|
2519
2642
|
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.
|
|
2520
2643
|
user: "The checkout flow test is failing in staging. What changed recently?"
|
|
@@ -2526,7 +2649,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
|
|
|
2526
2649
|
model: "haiku",
|
|
2527
2650
|
color: "gray"
|
|
2528
2651
|
};
|
|
2529
|
-
var
|
|
2652
|
+
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.
|
|
2530
2653
|
|
|
2531
2654
|
## Core Responsibilities
|
|
2532
2655
|
|
|
@@ -2698,19 +2821,23 @@ var TEMPLATES = {
|
|
|
2698
2821
|
frontmatter: FRONTMATTER12,
|
|
2699
2822
|
content: CONTENT12
|
|
2700
2823
|
},
|
|
2701
|
-
|
|
2824
|
+
asana: {
|
|
2702
2825
|
frontmatter: FRONTMATTER13,
|
|
2703
2826
|
content: CONTENT13
|
|
2704
2827
|
},
|
|
2705
|
-
|
|
2828
|
+
notion: {
|
|
2706
2829
|
frontmatter: FRONTMATTER14,
|
|
2707
2830
|
content: CONTENT14
|
|
2831
|
+
},
|
|
2832
|
+
slack: {
|
|
2833
|
+
frontmatter: FRONTMATTER15,
|
|
2834
|
+
content: CONTENT15
|
|
2708
2835
|
}
|
|
2709
2836
|
},
|
|
2710
2837
|
"changelog-historian": {
|
|
2711
2838
|
github: {
|
|
2712
|
-
frontmatter:
|
|
2713
|
-
content:
|
|
2839
|
+
frontmatter: FRONTMATTER16,
|
|
2840
|
+
content: CONTENT16
|
|
2714
2841
|
}
|
|
2715
2842
|
}
|
|
2716
2843
|
};
|
|
@@ -2758,6 +2885,13 @@ var INTEGRATIONS = {
|
|
|
2758
2885
|
integrationType: "oauth"
|
|
2759
2886
|
// Uses Nango with API key auth for PAT
|
|
2760
2887
|
},
|
|
2888
|
+
asana: {
|
|
2889
|
+
id: "asana",
|
|
2890
|
+
name: "Asana",
|
|
2891
|
+
provider: "asana",
|
|
2892
|
+
// No requiredMCP — uses asana-mcp-server CLI (CLI tool), not MCP server
|
|
2893
|
+
integrationType: "oauth"
|
|
2894
|
+
},
|
|
2761
2895
|
notion: {
|
|
2762
2896
|
id: "notion",
|
|
2763
2897
|
name: "Notion",
|
|
@@ -2862,6 +2996,7 @@ var SUBAGENTS = {
|
|
|
2862
2996
|
INTEGRATIONS.jira,
|
|
2863
2997
|
INTEGRATIONS["jira-server"],
|
|
2864
2998
|
INTEGRATIONS["azure-devops"],
|
|
2999
|
+
INTEGRATIONS.asana,
|
|
2865
3000
|
INTEGRATIONS.notion,
|
|
2866
3001
|
INTEGRATIONS.slack
|
|
2867
3002
|
],
|