@bugzy-ai/bugzy 1.12.2 → 1.12.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.cjs +97 -56
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +97 -56
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +97 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +97 -56
- package/dist/index.js.map +1 -1
- package/dist/tasks/index.cjs +97 -56
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +97 -56
- package/dist/tasks/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -767,9 +767,9 @@ var init_process_event = __esm({
|
|
|
767
767
|
processEventTask = {
|
|
768
768
|
slug: TASK_SLUGS.PROCESS_EVENT,
|
|
769
769
|
name: "Process Event",
|
|
770
|
-
description: "Process
|
|
770
|
+
description: "Process webhook events by analyzing for QA relevance and queuing proposed actions for team confirmation",
|
|
771
771
|
frontmatter: {
|
|
772
|
-
description: "Process
|
|
772
|
+
description: "Process webhook events by analyzing for QA relevance and queuing proposed actions for team confirmation",
|
|
773
773
|
"argument-hint": "[event payload or description]"
|
|
774
774
|
},
|
|
775
775
|
steps: [
|
|
@@ -779,7 +779,9 @@ var init_process_event = __esm({
|
|
|
779
779
|
title: "Process Event Overview",
|
|
780
780
|
content: `# Process Event Command
|
|
781
781
|
|
|
782
|
-
Process
|
|
782
|
+
Process webhook events from integrated systems by analyzing event content, determining appropriate QA actions, and queuing them for team confirmation.
|
|
783
|
+
|
|
784
|
+
**This task does NOT execute actions directly.** It proposes actions via the blocked-task-queue and notifies the team for confirmation. Only knowledge base updates and event history logging are performed directly.`
|
|
783
785
|
},
|
|
784
786
|
// Step 2: Security Notice (library)
|
|
785
787
|
"security-notice",
|
|
@@ -802,7 +804,7 @@ Process various types of events using intelligent pattern matching and historica
|
|
|
802
804
|
- **Source Control**: GitHub, GitLab
|
|
803
805
|
- **Communication Tools**: Slack
|
|
804
806
|
|
|
805
|
-
**Event structure and semantics vary by source.**
|
|
807
|
+
**Event structure and semantics vary by source.** Use the inline event-action reference patterns and historical context to determine actions.
|
|
806
808
|
|
|
807
809
|
#### Event Context to Extract:
|
|
808
810
|
- **What happened**: The core event (test failed, PR merged, etc.)
|
|
@@ -923,42 +925,30 @@ Read \`.bugzy/runtime/memory/event-history.md\` to:
|
|
|
923
925
|
- List \`./test-cases/\` for existing tests
|
|
924
926
|
- Check \`.bugzy/runtime/knowledge-base.md\` for past insights
|
|
925
927
|
|
|
926
|
-
#### 2.4
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
**
|
|
931
|
-
-
|
|
932
|
-
-
|
|
933
|
-
- \`
|
|
934
|
-
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
**
|
|
938
|
-
|
|
939
|
-
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
-
|
|
943
|
-
-
|
|
944
|
-
|
|
945
|
-
**
|
|
946
|
-
|
|
947
|
-
-
|
|
948
|
-
|
|
949
|
-
-
|
|
950
|
-
|
|
951
|
-
**Step 4: If No Handler Exists:**
|
|
952
|
-
Do NOT guess or apply generic logic. Instead:
|
|
953
|
-
1. Inform the user that no handler exists for this event source
|
|
954
|
-
2. Ask how this event type should be processed
|
|
955
|
-
3. Suggest creating a handler file at \`.bugzy/runtime/handlers/{source}.md\`
|
|
956
|
-
|
|
957
|
-
**Project-Specific Configuration:**
|
|
958
|
-
Handlers reference \`.bugzy/runtime/project-context.md\` for project-specific rules like:
|
|
959
|
-
- Which status transitions trigger verify-changes
|
|
960
|
-
- Which resolutions should update the knowledge base
|
|
961
|
-
- Which transitions to ignore`
|
|
928
|
+
#### 2.4 Event-Action Reference Patterns
|
|
929
|
+
|
|
930
|
+
Use these as reference patterns for common events. The webhook routing system already handles events with specific default tasks (e.g., deployment_status \u2192 /run-tests). Process-event receives events that need analysis.
|
|
931
|
+
|
|
932
|
+
**Jira Events:**
|
|
933
|
+
- **Status \u2192 "Ready to Test" / "In Testing" / "Ready for QA"**: Propose \`/verify-changes\` with issue context
|
|
934
|
+
- **Resolution: "Not a Bug" / "Won't Fix" / "User Error"**: Update knowledge base directly with the learning (no queue needed)
|
|
935
|
+
- **Bug created with relevant labels**: Propose \`/generate-test-cases\` to update related test coverage, confirm with team
|
|
936
|
+
- **Backlog \u2192 To Do**: No QA action needed, log to event history only
|
|
937
|
+
|
|
938
|
+
**GitHub Events:**
|
|
939
|
+
- **PR merged (routed to process-event)**: Propose \`/verify-changes\` for the merged changes
|
|
940
|
+
- **Issue closed as "won't fix"**: Update knowledge base directly with the learning
|
|
941
|
+
- **Issue created/updated**: Analyze for QA relevance, propose actions if applicable
|
|
942
|
+
|
|
943
|
+
**Recall.ai Events (Meeting Transcripts):**
|
|
944
|
+
- **QA-relevant content found**: Propose appropriate follow-up tasks (e.g., \`/generate-test-cases\`, \`/verify-changes\`)
|
|
945
|
+
- **No QA content** (HR meeting, offsite planning, etc.): Skip \u2014 log to event history only
|
|
946
|
+
|
|
947
|
+
**Other Events:**
|
|
948
|
+
- Analyze for QA relevance based on knowledge base and project context
|
|
949
|
+
- If action needed, propose appropriate task. If not, log and skip.
|
|
950
|
+
|
|
951
|
+
Check \`.bugzy/runtime/project-context.md\` for project-specific context that may inform action decisions.`
|
|
962
952
|
},
|
|
963
953
|
// Step 8: Intelligent Event Analysis (inline)
|
|
964
954
|
{
|
|
@@ -978,17 +968,16 @@ Don't just match patterns - analyze the event within the full context:
|
|
|
978
968
|
**Example Contextual Analysis**:
|
|
979
969
|
\`\`\`
|
|
980
970
|
Event: Jira issue PROJ-456 moved to "Ready for QA"
|
|
981
|
-
+
|
|
971
|
+
+ Reference Pattern: "Ready for QA" status suggests /verify-changes
|
|
982
972
|
+ History: This issue was previously in "In Progress" for 3 days
|
|
983
973
|
+ Knowledge: Related PR #123 merged yesterday
|
|
984
|
-
= Decision:
|
|
974
|
+
= Decision: Propose /verify-changes with issue context and PR reference
|
|
985
975
|
\`\`\`
|
|
986
976
|
|
|
987
977
|
**Pattern Recognition with Context**:
|
|
988
|
-
- An issue resolution depends on
|
|
978
|
+
- An issue resolution depends on the event-action reference patterns and project context
|
|
989
979
|
- A duplicate event (same issue, same transition) should be skipped
|
|
990
980
|
- Events from different sources about the same change should be correlated
|
|
991
|
-
- Handler instructions take precedence over generic assumptions
|
|
992
981
|
|
|
993
982
|
#### 3.2 Generate Semantic Queries
|
|
994
983
|
Based on event type and content, generate 3-5 specific search queries:
|
|
@@ -1014,7 +1003,7 @@ Generate tasks based on event analysis, using examples from memory as reference.
|
|
|
1014
1003
|
Analyze the event in context of ALL available information to decide what actions to take:
|
|
1015
1004
|
|
|
1016
1005
|
**Consider the Full Context**:
|
|
1017
|
-
- What
|
|
1006
|
+
- What do the event-action reference patterns suggest for this event type?
|
|
1018
1007
|
- How does this relate to current knowledge?
|
|
1019
1008
|
- What's the state of related issues in external systems?
|
|
1020
1009
|
- Is this part of a larger pattern we've been seeing?
|
|
@@ -1022,17 +1011,17 @@ Analyze the event in context of ALL available information to decide what actions
|
|
|
1022
1011
|
|
|
1023
1012
|
**Contextual Decision Making**:
|
|
1024
1013
|
The same event type can require different actions based on context:
|
|
1025
|
-
- If
|
|
1014
|
+
- If reference pattern suggests verification -> Propose /verify-changes (queue for confirmation)
|
|
1026
1015
|
- If this issue was already processed (check event history) -> Skip to avoid duplicates
|
|
1027
|
-
- If related PR exists in knowledge base -> Include PR context in actions
|
|
1016
|
+
- If related PR exists in knowledge base -> Include PR context in proposed actions
|
|
1028
1017
|
- If this is a recurring pattern from the same source -> Consider flagging for review
|
|
1029
|
-
- If
|
|
1018
|
+
- If no clear action for this event type -> Analyze context or skip
|
|
1030
1019
|
|
|
1031
1020
|
**Dynamic Task Selection**:
|
|
1032
1021
|
Based on the contextual analysis, decide which tasks make sense:
|
|
1033
1022
|
- **extract_learning**: When the event reveals something new about the system
|
|
1034
1023
|
- **update_test_plan**: When our understanding of what to test has changed
|
|
1035
|
-
- **
|
|
1024
|
+
- **propose_generate_test_cases**: When tests need to reflect new reality (queued for confirmation)
|
|
1036
1025
|
- **report_bug**: When we have a legitimate, impactful, reproducible issue
|
|
1037
1026
|
- **skip_action**: When context shows no action needed (e.g., known issue, already fixed)
|
|
1038
1027
|
|
|
@@ -1074,13 +1063,64 @@ The issue-tracker agent will handle all aspects of issue tracking including dupl
|
|
|
1074
1063
|
// Step 12: Execute Tasks (inline)
|
|
1075
1064
|
{
|
|
1076
1065
|
inline: true,
|
|
1077
|
-
title: "
|
|
1078
|
-
content: `### Step 5:
|
|
1066
|
+
title: "Queue Proposed Actions and Notify Team",
|
|
1067
|
+
content: `### Step 5: Queue Proposed Actions and Notify Team
|
|
1068
|
+
|
|
1069
|
+
#### 5.1 Categorize Determined Actions
|
|
1070
|
+
|
|
1071
|
+
Separate actions into two categories:
|
|
1072
|
+
|
|
1073
|
+
**Queued Actions** (require team confirmation):
|
|
1074
|
+
- \`/verify-changes\`, \`/generate-test-cases\`, \`/run-tests\`, \`/explore-application\`
|
|
1075
|
+
- Any task that modifies tests, runs automation, or takes significant action
|
|
1076
|
+
|
|
1077
|
+
**Direct Actions** (execute immediately):
|
|
1078
|
+
- Knowledge base updates and learnings
|
|
1079
|
+
- Event history logging
|
|
1080
|
+
- Event processor memory updates
|
|
1081
|
+
- Skip decisions
|
|
1082
|
+
|
|
1083
|
+
#### 5.2 Execute Direct Actions
|
|
1084
|
+
|
|
1085
|
+
Update \`.bugzy/runtime/knowledge-base.md\` directly for learnings (e.g., "Not a Bug" resolutions).
|
|
1086
|
+
|
|
1087
|
+
#### 5.3 Queue Action Tasks
|
|
1088
|
+
|
|
1089
|
+
For each proposed action task, append one row to \`.bugzy/runtime/blocked-task-queue.md\`:
|
|
1090
|
+
|
|
1091
|
+
| Task Slug | Question | Original Args |
|
|
1092
|
+
|-----------|----------|---------------|
|
|
1093
|
+
| /verify-changes | Verify PROJ-456 changes (moved to Ready for QA)? Related PR #123. | \`{"issue": "PROJ-456", "context": "Jira Ready to Test"}\` |
|
|
1094
|
+
|
|
1095
|
+
Rules:
|
|
1096
|
+
1. Read file first (create if doesn't exist)
|
|
1097
|
+
2. Each action gets its own row
|
|
1098
|
+
3. **Question** must be clear and include enough context for team to decide
|
|
1099
|
+
4. **Original Args** must include event source, IDs, and relevant context as JSON
|
|
1100
|
+
|
|
1101
|
+
#### 5.4 Notify Team
|
|
1102
|
+
|
|
1103
|
+
{{INVOKE_TEAM_COMMUNICATOR}} to share the outcome:
|
|
1104
|
+
|
|
1105
|
+
**If actions were queued:**
|
|
1106
|
+
- What event was processed
|
|
1107
|
+
- What actions are proposed (with brief reasoning)
|
|
1108
|
+
- These are awaiting confirmation
|
|
1109
|
+
|
|
1110
|
+
**If no actions queued (KB-only update or skip):**
|
|
1111
|
+
- What event was processed
|
|
1112
|
+
- What was learned or why it was skipped
|
|
1113
|
+
- That no action is needed from the team
|
|
1114
|
+
|
|
1115
|
+
#### 5.5 Complete Task
|
|
1079
1116
|
|
|
1080
|
-
|
|
1081
|
-
|
|
1117
|
+
After queuing and notifying, the task is DONE. Do NOT:
|
|
1118
|
+
- Execute /verify-changes, /run-tests, /generate-test-cases directly
|
|
1119
|
+
- Wait for team response (messaging infrastructure handles that)
|
|
1120
|
+
- Create or modify test files
|
|
1121
|
+
- Run Playwright tests
|
|
1082
1122
|
|
|
1083
|
-
#### 5.
|
|
1123
|
+
#### 5.6 Update Event Processor Memory
|
|
1084
1124
|
If new patterns discovered, append to \`.bugzy/runtime/memory/event-processor.md\`:
|
|
1085
1125
|
\`\`\`markdown
|
|
1086
1126
|
### Pattern: [New Pattern Name]
|
|
@@ -1090,7 +1130,7 @@ If new patterns discovered, append to \`.bugzy/runtime/memory/event-processor.md
|
|
|
1090
1130
|
**Example**: [This event]
|
|
1091
1131
|
\`\`\`
|
|
1092
1132
|
|
|
1093
|
-
#### 5.
|
|
1133
|
+
#### 5.7 Update Event History
|
|
1094
1134
|
Append to \`.bugzy/runtime/memory/event-history.md\`:
|
|
1095
1135
|
\`\`\`markdown
|
|
1096
1136
|
## [Timestamp] - Event #[ID]
|
|
@@ -1163,7 +1203,8 @@ Create files if they don't exist:
|
|
|
1163
1203
|
- Adjust responses based on business priorities and risk
|
|
1164
1204
|
|
|
1165
1205
|
### Smart Task Generation
|
|
1166
|
-
-
|
|
1206
|
+
- NEVER execute action tasks directly \u2014 all action tasks go through blocked-task-queue for team confirmation
|
|
1207
|
+
- Knowledge base updates and event history logging are the only direct operations
|
|
1167
1208
|
- Document why each decision was made with full context
|
|
1168
1209
|
- Skip redundant actions (e.g., duplicate events, already-processed issues)
|
|
1169
1210
|
- Escalate appropriately based on pattern recognition
|