@polka-codes/cli 0.9.72 → 0.9.73
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/index.js +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37660,7 +37660,7 @@ var {
|
|
|
37660
37660
|
Help
|
|
37661
37661
|
} = import__.default;
|
|
37662
37662
|
// package.json
|
|
37663
|
-
var version = "0.9.
|
|
37663
|
+
var version = "0.9.73";
|
|
37664
37664
|
|
|
37665
37665
|
// src/commands/code.ts
|
|
37666
37666
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
@@ -84639,7 +84639,8 @@ async function generateText2(input2, context) {
|
|
|
84639
84639
|
}
|
|
84640
84640
|
if ("response" in error46) {
|
|
84641
84641
|
const response = error46.response;
|
|
84642
|
-
if (response.status === 429) {
|
|
84642
|
+
if (response.status === 429 || response.status >= 500) {
|
|
84643
|
+
console.debug(`Request failed with status ${response.status}, retrying...`);
|
|
84643
84644
|
const backoff2 = computeRateLimitBackoffSeconds(i2);
|
|
84644
84645
|
await new Promise((resolve4) => setTimeout(resolve4, backoff2 * 1000));
|
|
84645
84646
|
continue;
|
|
@@ -86779,7 +86780,7 @@ Review iteration ${i2 + 1}/${MAX_REVIEW_RETRIES}`);
|
|
|
86779
86780
|
commitRange: "HEAD~1...HEAD",
|
|
86780
86781
|
changedFiles
|
|
86781
86782
|
};
|
|
86782
|
-
const reviewAgentResult = await step(`review-${iterationCount}-${i2}`, async () => {
|
|
86783
|
+
const reviewAgentResult = await step(`review-${iterationCount}-${i2}`, { retry: 1 }, async () => {
|
|
86783
86784
|
const defaultContext = await getDefaultContext();
|
|
86784
86785
|
const memoryContext = await tools2.getMemoryContext();
|
|
86785
86786
|
const userMessage = `${defaultContext}
|
|
@@ -86823,7 +86824,7 @@ ${highLevelPlan}
|
|
|
86823
86824
|
After an initial implementation, a review found the following issues. Please fix them:
|
|
86824
86825
|
|
|
86825
86826
|
${reviewSummary}`;
|
|
86826
|
-
await step(`fix-${iterationCount}-${i2}`, async () => {
|
|
86827
|
+
await step(`fix-${iterationCount}-${i2}`, { retry: 1 }, async () => {
|
|
86827
86828
|
await codeWorkflow({
|
|
86828
86829
|
task: fixTask,
|
|
86829
86830
|
mode: "noninteractive",
|
|
@@ -86886,7 +86887,7 @@ ${"-".repeat(80)}`);
|
|
|
86886
86887
|
logger.info(`${"-".repeat(80)}`);
|
|
86887
86888
|
logger.info(`${nextTask}
|
|
86888
86889
|
`);
|
|
86889
|
-
await step(`task-${iterationCount}`, async () => {
|
|
86890
|
+
await step(`task-${iterationCount}`, { retry: 1 }, async () => {
|
|
86890
86891
|
const taskWithContext = `You are working on an epic. Here is the full plan:
|
|
86891
86892
|
|
|
86892
86893
|
<plan>
|