next-issue 6.6.28 → 6.6.29
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/fix.mjs +1 -1
- package/dist/prompts.mjs +3 -2
- package/package.json +1 -1
package/dist/fix.mjs
CHANGED
|
@@ -40,7 +40,7 @@ export async function fixRound(job, reason, detail, earlier, kind) {
|
|
|
40
40
|
}
|
|
41
41
|
export async function runFixer(job, reason, detail, earlier, kind) {
|
|
42
42
|
const { issue, log } = job;
|
|
43
|
-
const result = await log.step('fix', { reason, cause: kind, ...fixBudget(job, kind) }, () => runRole(job, 'fixer', fixPrompt(issue, reason, detail, earlier, kind, job.reply), CODING));
|
|
43
|
+
const result = await log.step('fix', { reason, cause: kind, ...fixBudget(job, kind) }, () => runRole(job, 'fixer', fixPrompt(issue, job.comments, reason, detail, earlier, kind, job.reply), CODING));
|
|
44
44
|
return result.text;
|
|
45
45
|
}
|
|
46
46
|
function fixBudget(job, kind) {
|
package/dist/prompts.mjs
CHANGED
|
@@ -135,9 +135,10 @@ function earlierBlock(earlier) {
|
|
|
135
135
|
].join('\n')
|
|
136
136
|
: '';
|
|
137
137
|
}
|
|
138
|
-
export function fixPrompt(issue, reason, detail, earlier, kind, reply = []) {
|
|
138
|
+
export function fixPrompt(issue, comments, reason, detail, earlier, kind, reply = []) {
|
|
139
139
|
return paragraphs([
|
|
140
|
-
|
|
140
|
+
'You are the fixer. Correct the work for the issue below.',
|
|
141
|
+
issueBlock(issue, comments),
|
|
141
142
|
`## Reason\n${reason}`,
|
|
142
143
|
`## Detail\n${detail}`,
|
|
143
144
|
earlierBlock(earlier),
|