@exaudeus/workrail 0.2.5-beta.7 → 0.3.0
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/package.json
CHANGED
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
"User has the MR title, purpose, and any relevant ticket numbers.",
|
|
9
9
|
"The agent has access to file-reading tools."
|
|
10
10
|
],
|
|
11
|
+
"clarificationPrompts": [
|
|
12
|
+
"Provide the associated ticket ID(s)/link(s) and paste full text if possible.",
|
|
13
|
+
"Provide links (or attach) any dev plan, design/architecture doc, or BRD relevant to this MR.",
|
|
14
|
+
"Provide the code diff (paste content or give a file path)."
|
|
15
|
+
],
|
|
11
16
|
"metaGuidance": [
|
|
12
17
|
"The ultimate goal is to assist, not replace, a human reviewer. The human owns the final merge decision.",
|
|
13
18
|
"All feedback should be constructive and actionable. Explain the 'why' behind suggestions.",
|
|
@@ -57,7 +62,9 @@
|
|
|
57
62
|
"**[Trivial]:** For minor fixes (typos, docs). This will run a condensed, single-phase review.",
|
|
58
63
|
"**[Standard]:** For typical features or bug fixes. This uses the full, multi-phase review process.",
|
|
59
64
|
"**[High-Risk]:** For major architectural changes or features touching sensitive code. This follows the full process with maximum diligence."
|
|
60
|
-
]
|
|
65
|
+
],
|
|
66
|
+
"functionReferences": ["initReviewDoc()", "logRevision()"],
|
|
67
|
+
"requireConfirmation": true
|
|
61
68
|
},
|
|
62
69
|
{
|
|
63
70
|
"id": "phase-1-context",
|
|
@@ -65,16 +72,20 @@
|
|
|
65
72
|
"prompt": "My goal is to ensure I fully understand the MR before the deep analysis. Based on the context you provided, I will perform the following tasks:\n\n1. **Summarize Goal:** Briefly summarize what I understand to be the primary goal and scope of this MR.\n2. **File Overview:** List all changed files (added, modified, deleted) and provide a one-sentence summary of the changes for each.\n3. **Initial Questions:** Formulate any immediate questions I have about the MR's purpose or requirements.\n4. **Confirmation Gate:** Does my summary accurately reflect the MR's goal? Please confirm before I proceed.\n\nI will also update the live review document with the Changed Files table and the Context summary.",
|
|
66
73
|
"agentRole": "You are a thorough code review analyst specializing in requirement comprehension and change impact assessment. Your strength is quickly understanding the intent and scope of code changes while identifying potential gaps in understanding early in the review process.",
|
|
67
74
|
"guidance": [
|
|
68
|
-
"This is a critical sanity check. If the agent's summary is incorrect, correct it now to prevent a flawed review. This step is skipped for 'Trivial' reviews."
|
|
75
|
+
"This is a critical sanity check. If the agent's summary is incorrect, correct it now to prevent a flawed review. This step is skipped for 'Trivial' reviews.",
|
|
76
|
+
"Doc writes: update only 'Context Summary' and 'Changed Files' sections; do not add 'Questions' or extra headings.",
|
|
77
|
+
"Ask any clarifying questions in chat only; do not write them into the doc.",
|
|
78
|
+
"Do not create placeholders for issues (Critical/Major/Minor) in this step."
|
|
69
79
|
],
|
|
70
80
|
"runCondition": { "var": "complexity", "not_equals": "Trivial" },
|
|
71
|
-
"requireConfirmation": true
|
|
81
|
+
"requireConfirmation": true,
|
|
82
|
+
"functionReferences": ["upsertSection()", "appendChangedFileRow()", "logRevision()"]
|
|
72
83
|
},
|
|
73
84
|
|
|
74
85
|
{
|
|
75
86
|
"id": "phase-1a-llm-context-gathering",
|
|
76
87
|
"title": "Phase 1a: Comprehensive Context Gathering",
|
|
77
|
-
"prompt": "To perform a thorough review, I need more than just the code diff. Please provide the following:\n\n1. **
|
|
88
|
+
"prompt": "To perform a thorough review, I need more than just the code diff. Please provide the following:\n\n1. **Ticket(s):** Link(s) and, if possible, paste the full text (requirements, acceptance criteria).\n2. **Dev/Design Docs:** Dev plan; design/architecture docs; and any BRD or decision records relevant to this MR.\n3. **Technical Context:** If this change relies on other parts of the codebase, provide relevant code snippets or file contents; include coding standards or module conventions if available.\n\nI will synthesize this information to build a comprehensive context for my review.\n\n**Confirmation & Gating:**\n- After you confirm that I have the right context (or explicitly instruct me to skip), I will set `contextGatheringComplete = true` or `skipContextGathering = true` accordingly.\n- I will not proceed to deeper analysis until one of these is set.",
|
|
78
89
|
"agentRole": "You are a context-aware analyst ensuring you have all necessary information before starting a deep review.",
|
|
79
90
|
"guidance": ["A high-quality review depends on high-quality context. The more information provided here, the more accurate the review will be."],
|
|
80
91
|
"runCondition": { "var": "complexity", "not_equals": "Trivial" },
|