@exaudeus/workrail 0.2.5-beta.0 → 0.2.5-beta.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/package.json
CHANGED
|
@@ -17,7 +17,14 @@
|
|
|
17
17
|
"Embrace small, single-purpose pull requests for faster, more thorough reviews.",
|
|
18
18
|
"When citing issues, always try to provide specific file paths and line numbers from the diff.",
|
|
19
19
|
"Maintain the persona of a helpful, collaborative senior engineer.",
|
|
20
|
-
"If at any point you determine that a crucial piece of information is missing, you must pause and ask the user to provide it."
|
|
20
|
+
"If at any point you determine that a crucial piece of information is missing, you must pause and ask the user to provide it.",
|
|
21
|
+
"Auto-advance: after completing each step, immediately get the next step; only pause for explicit requireConfirmation or missing critical inputs.",
|
|
22
|
+
"FunctionReferences are mandatory. When a step lists functionReferences, execute each in the listed order before producing chat output.",
|
|
23
|
+
"FunctionReferences are conceptual (not MCP tools). ‘Execute’ means: read the function’s definition and perform those actions using your available tools; do not look for tools with the same names.",
|
|
24
|
+
"Use each function's definition as the authoritative checklist for how to perform the step and what to produce (doc updates, context vars).",
|
|
25
|
+
"Document I/O: create/update the file at reviewDocPath using file-writing tools. If the agent cannot write files, output the exact doc content with the intended path so the user can save it.",
|
|
26
|
+
"If a function requires inputs that are missing, state exactly what is missing and pause. Otherwise, do not ask for confirmation.",
|
|
27
|
+
"If prompt text and a function definition conflict, prefer the function definition for the how, and the step prompt for the what."
|
|
21
28
|
],
|
|
22
29
|
"functionDefinitions": [
|
|
23
30
|
{
|
|
@@ -132,7 +139,8 @@
|
|
|
132
139
|
"prompt": "Initializing state for progressive depth analysis. Setting analysisDepth = 1, analysisComplete = false, and majorIssuesFound = false.",
|
|
133
140
|
"agentRole": "You are a state manager preparing the workflow for an iterative review process.",
|
|
134
141
|
"guidance": ["This is an automated step to prepare for the analysis loop."],
|
|
135
|
-
"runCondition": { "and": [ { "var": "complexity", "not_equals": "Trivial" }, { "or": [ { "var": "contextGatheringComplete", "equals": true }, { "var": "skipContextGathering", "equals": true } ] } ] }
|
|
142
|
+
"runCondition": { "and": [ { "var": "complexity", "not_equals": "Trivial" }, { "or": [ { "var": "contextGatheringComplete", "equals": true }, { "var": "skipContextGathering", "equals": true } ] } ] },
|
|
143
|
+
"requireConfirmation": false
|
|
136
144
|
},
|
|
137
145
|
{
|
|
138
146
|
"id": "phase-1a-llm-context-gathering",
|
|
@@ -165,7 +173,8 @@
|
|
|
165
173
|
"Cap exemplars (e.g., 3–5 per concern) for speed."
|
|
166
174
|
],
|
|
167
175
|
"runCondition": { "var": "analysisDepth", "equals": 1 },
|
|
168
|
-
"functionReferences": ["discoverModulePatterns()"]
|
|
176
|
+
"functionReferences": ["discoverModulePatterns()"],
|
|
177
|
+
"requireConfirmation": false
|
|
169
178
|
},
|
|
170
179
|
{
|
|
171
180
|
"id": "perform-analysis-pass",
|
|
@@ -176,14 +185,16 @@
|
|
|
176
185
|
"At each depth, focus only on the items in that checklist.",
|
|
177
186
|
"Use Chain-of-Thought reasoning to explain your findings."
|
|
178
187
|
],
|
|
179
|
-
"functionReferences": ["collectNits()", "appendFinding()", "appendMRComment()", "logRevision()"]
|
|
188
|
+
"functionReferences": ["collectNits()", "appendFinding()", "appendMRComment()", "logRevision()"],
|
|
189
|
+
"requireConfirmation": false
|
|
180
190
|
},
|
|
181
191
|
{
|
|
182
192
|
"id": "check-analysis-completion",
|
|
183
193
|
"title": "Check Analysis Completion",
|
|
184
194
|
"prompt": "Checking if the analysis is complete. If no 'Major' or 'Critical' issues were found in the last pass, or if we have reached the maximum depth (3), I will set `analysisComplete = true` to exit the loop. Otherwise, I will increment the `analysisDepth` and continue to the next level of review.",
|
|
185
195
|
"agentRole": "You are an automated process controller determining whether to deepen the analysis or conclude this phase.",
|
|
186
|
-
"guidance": ["This step determines the exit condition for the progressive depth loop."]
|
|
196
|
+
"guidance": ["This step determines the exit condition for the progressive depth loop."],
|
|
197
|
+
"requireConfirmation": false
|
|
187
198
|
}
|
|
188
199
|
]
|
|
189
200
|
},
|
|
@@ -197,7 +208,8 @@
|
|
|
197
208
|
"Avoid re-scanning if `patternCatalog` already exists; reuse it."
|
|
198
209
|
],
|
|
199
210
|
"runCondition": { "var": "complexity", "not_equals": "Trivial" },
|
|
200
|
-
"functionReferences": ["consolidatePatternFindings()", "appendPatternResult()", "upsertSection()", "logRevision()"]
|
|
211
|
+
"functionReferences": ["consolidatePatternFindings()", "appendPatternResult()", "upsertSection()", "logRevision()"],
|
|
212
|
+
"requireConfirmation": false
|
|
201
213
|
},
|
|
202
214
|
{
|
|
203
215
|
"id": "phase-3-impact-analysis",
|
|
@@ -207,7 +219,8 @@
|
|
|
207
219
|
"guidance": [
|
|
208
220
|
"Assessing test coverage is critical. A lack of tests for new logic is often a 'Major' or 'Critical' concern."
|
|
209
221
|
],
|
|
210
|
-
"runCondition": { "and": [ { "var": "complexity", "not_equals": "Trivial" }, { "or": [ { "var": "contextGatheringComplete", "equals": true }, { "var": "skipContextGathering", "equals": true } ] } ] }
|
|
222
|
+
"runCondition": { "and": [ { "var": "complexity", "not_equals": "Trivial" }, { "or": [ { "var": "contextGatheringComplete", "equals": true }, { "var": "skipContextGathering", "equals": true } ] } ] },
|
|
223
|
+
"requireConfirmation": false
|
|
211
224
|
},
|
|
212
225
|
{
|
|
213
226
|
"id": "hygiene-and-inconsistencies",
|
|
@@ -219,7 +232,8 @@
|
|
|
219
232
|
"Write full details to the live doc; in chat, report counts and the doc path."
|
|
220
233
|
],
|
|
221
234
|
"runCondition": { "var": "complexity", "not_equals": "Trivial" },
|
|
222
|
-
"functionReferences": ["discoverHygieneSignals()", "consolidateHygieneFindings()", "appendHygieneFinding()", "appendMRComment()", "upsertSection()", "logRevision()"]
|
|
235
|
+
"functionReferences": ["discoverHygieneSignals()", "consolidateHygieneFindings()", "appendHygieneFinding()", "appendMRComment()", "upsertSection()", "logRevision()"],
|
|
236
|
+
"requireConfirmation": false
|
|
223
237
|
},
|
|
224
238
|
{
|
|
225
239
|
"id": "prepare-nit-appendix",
|
|
@@ -231,7 +245,8 @@
|
|
|
231
245
|
"Keep items concise; avoid repeating Major concerns."
|
|
232
246
|
],
|
|
233
247
|
"runCondition": { "and": [ { "var": "complexity", "not_equals": "Trivial" }, { "or": [ { "var": "contextGatheringComplete", "equals": true }, { "var": "skipContextGathering", "equals": true } ] } ] },
|
|
234
|
-
"functionReferences": ["prepareNitAppendix()", "appendNit()", "upsertSection()", "logRevision()"]
|
|
248
|
+
"functionReferences": ["prepareNitAppendix()", "appendNit()", "upsertSection()", "logRevision()"],
|
|
249
|
+
"requireConfirmation": false
|
|
235
250
|
},
|
|
236
251
|
{
|
|
237
252
|
"id": "finalize-review-document",
|
|
@@ -241,7 +256,8 @@
|
|
|
241
256
|
"guidance": [
|
|
242
257
|
"Write full details to the live doc; keep chat to a concise recap with the doc path."
|
|
243
258
|
],
|
|
244
|
-
"functionReferences": ["finalizeReviewDocument()", "ensureSectionMarkers()", "upsertSection()", "curateMRComments()", "discoverHygieneSignals()", "consolidateHygieneFindings()", "appendHygieneFinding()", "logRevision()"]
|
|
259
|
+
"functionReferences": ["finalizeReviewDocument()", "ensureSectionMarkers()", "upsertSection()", "curateMRComments()", "discoverHygieneSignals()", "consolidateHygieneFindings()", "appendHygieneFinding()", "logRevision()"],
|
|
260
|
+
"requireConfirmation": false
|
|
245
261
|
}
|
|
246
262
|
]
|
|
247
263
|
}
|