@kervnet/opencode-kiro-auth 1.7.20 → 1.7.21
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.
|
@@ -122,14 +122,12 @@ export class RequestHandler {
|
|
|
122
122
|
return transformToCodeWhisperer(url, body, model, auth, think, budget, reductionFactor);
|
|
123
123
|
}
|
|
124
124
|
handleSuccessfulRequest(acc) {
|
|
125
|
-
if (acc.failCount
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
this.repository.save(acc).catch(() => { });
|
|
132
|
-
}
|
|
125
|
+
if (acc.failCount || acc.unhealthyReason) {
|
|
126
|
+
acc.failCount = 0;
|
|
127
|
+
acc.isHealthy = true;
|
|
128
|
+
delete acc.unhealthyReason;
|
|
129
|
+
delete acc.recoveryTime;
|
|
130
|
+
this.repository.save(acc).catch(() => { });
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
133
|
logRequest(prep, acc, timestamp) {
|
package/package.json
CHANGED