@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 && acc.failCount > 0) {
126
- if (!isPermanentError(acc.unhealthyReason)) {
127
- acc.failCount = 0;
128
- acc.isHealthy = true;
129
- delete acc.unhealthyReason;
130
- delete acc.recoveryTime;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kervnet/opencode-kiro-auth",
3
- "version": "1.7.20",
3
+ "version": "1.7.21",
4
4
  "description": "OpenCode plugin for AWS Kiro (CodeWhisperer) with IAM Identity Center profile support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",