@kervnet/opencode-kiro-auth 1.7.15 → 1.7.16

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/constants.js CHANGED
@@ -26,7 +26,7 @@ export const KIRO_CONSTANTS = {
26
26
  DEFAULT_REGION: 'us-east-1',
27
27
  AXIOS_TIMEOUT: 120000,
28
28
  USER_AGENT: 'KiroIDE',
29
- KIRO_VERSION: '0.7.5',
29
+ KIRO_VERSION: '1.25.0',
30
30
  CHAT_TRIGGER_TYPE_MANUAL: 'MANUAL',
31
31
  ORIGIN_AI_EDITOR: 'AI_EDITOR'
32
32
  };
@@ -37,8 +37,8 @@ export const MODEL_MAPPING = {
37
37
  'claude-sonnet-4-5-20250929': 'CLAUDE_SONNET_4_5_20250929_V1_0',
38
38
  'claude-opus-4-5': 'CLAUDE_OPUS_4_5_20251101_V1_0',
39
39
  'claude-opus-4-5-thinking': 'CLAUDE_OPUS_4_5_20251101_V1_0',
40
- 'claude-opus-4-6': 'anthropic.claude-opus-4-6-v1',
41
- 'claude-opus-4-6-thinking': 'anthropic.claude-opus-4-6-v1',
40
+ 'claude-opus-4-6': 'claude-opus-4.6',
41
+ 'claude-opus-4-6-thinking': 'claude-opus-4.6',
42
42
  'claude-sonnet-4-20250514': 'CLAUDE_SONNET_4_20250514_V1_0',
43
43
  'claude-3-7-sonnet-20250219': 'CLAUDE_3_7_SONNET_20250219_V1_0',
44
44
  'qwen3-coder-480b': 'qwen3-coder-480b'
@@ -50,15 +50,9 @@ export class ErrorHandler {
50
50
  }
51
51
  }
52
52
  if (response.status === 429) {
53
- const w = parseInt(response.headers.get('retry-after') || '60') * 1000;
54
- this.accountManager.markRateLimited(account, w);
55
- await this.repository.batchSave(this.accountManager.getAccounts());
56
- const count = this.accountManager.getAccountCount();
57
- if (count > 1) {
58
- showToast(`Rate limited (${account.email}). Switching account...`, 'warning');
59
- return { shouldRetry: true, switchAccount: true };
60
- }
61
- showToast(`Rate limited. Waiting ${Math.ceil(w / 1000)}s...`, 'warning');
53
+ const retryAfter = parseInt(response.headers.get('retry-after') || '5');
54
+ const w = Math.min(retryAfter, 5) * 1000;
55
+ showToast(`Rate limited. Retrying in ${Math.ceil(w / 1000)}s...`, 'warning');
62
56
  await this.sleep(w);
63
57
  return { shouldRetry: true };
64
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kervnet/opencode-kiro-auth",
3
- "version": "1.7.15",
3
+ "version": "1.7.16",
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",