@zhafron/opencode-kiro-auth 1.5.1 → 1.5.3

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/README.md CHANGED
@@ -60,6 +60,46 @@ Add the plugin to your `opencode.json` or `opencode.jsonc`:
60
60
  "medium": { "thinkingConfig": { "thinkingBudget": 16384 } },
61
61
  "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
62
62
  }
63
+ },
64
+ "claude-opus-4-6": {
65
+ "name": "Claude Opus 4.6",
66
+ "limit": { "context": 200000, "output": 64000 },
67
+ "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
68
+ },
69
+ "claude-opus-4-6-thinking": {
70
+ "name": "Claude Opus 4.6 Thinking",
71
+ "limit": { "context": 200000, "output": 64000 },
72
+ "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
73
+ "variants": {
74
+ "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
75
+ "medium": { "thinkingConfig": { "thinkingBudget": 16384 } },
76
+ "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
77
+ }
78
+ },
79
+ "claude-opus-4-6-1m": {
80
+ "name": "Claude Opus 4.6 (1M Context)",
81
+ "limit": { "context": 1000000, "output": 64000 },
82
+ "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
83
+ },
84
+ "claude-opus-4-6-1m-thinking": {
85
+ "name": "Claude Opus 4.6 (1M Context) Thinking",
86
+ "limit": { "context": 1000000, "output": 64000 },
87
+ "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
88
+ "variants": {
89
+ "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
90
+ "medium": { "thinkingConfig": { "thinkingBudget": 16384 } },
91
+ "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
92
+ }
93
+ },
94
+ "claude-sonnet-4-5-1m": {
95
+ "name": "Claude Sonnet 4.5 1M",
96
+ "limit": { "context": 1000000, "output": 64000 },
97
+ "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
98
+ },
99
+ "qwen3-coder-480b": {
100
+ "name": "Qwen3 Coder 480B",
101
+ "limit": { "context": 200000, "output": 64000 },
102
+ "modalities": { "input": ["text"], "output": ["text"] }
63
103
  }
64
104
  }
65
105
  }
@@ -91,6 +131,21 @@ This happens when the plugin has no records in `~/.config/opencode/kiro.db`.
91
131
 
92
132
  Note for IDC/SSO (ODIC): the plugin may temporarily create an account with a placeholder email if it cannot fetch the real email during sync (e.g. offline). It will replace it with the real email once usage/email lookup succeeds.
93
133
 
134
+ ### Error: ERR_INVALID_URL
135
+
136
+ `TypeError [ERR_INVALID_URL]: "undefined/chat/completions" cannot be parsed as a URL`
137
+
138
+ If this happens, check your auth.json in .local/share/opencode. example:
139
+
140
+ ```json
141
+ {
142
+ "kiro": {
143
+ "type": "api",
144
+ "key": "whatever"
145
+ }
146
+ }
147
+ ```
148
+
94
149
  ## Configuration
95
150
 
96
151
  The plugin supports extensive configuration options. Edit `~/.config/opencode/kiro.json`:
package/dist/constants.js CHANGED
@@ -31,14 +31,25 @@ export const KIRO_CONSTANTS = {
31
31
  ORIGIN_AI_EDITOR: 'AI_EDITOR'
32
32
  };
33
33
  export const MODEL_MAPPING = {
34
- 'claude-haiku-4-5': 'claude-haiku-4.5',
34
+ 'claude-haiku-4-5': 'CLAUDE_HAIKU_4_5_20251001_V1_0',
35
+ 'claude-haiku-4-5-thinking': 'CLAUDE_HAIKU_4_5_20251001_V1_0',
35
36
  'claude-sonnet-4-5': 'CLAUDE_SONNET_4_5_20250929_V1_0',
36
37
  'claude-sonnet-4-5-thinking': 'CLAUDE_SONNET_4_5_20250929_V1_0',
37
- 'claude-sonnet-4-5-20250929': 'CLAUDE_SONNET_4_5_20250929_V1_0',
38
+ 'claude-sonnet-4-5-1m': 'CLAUDE_SONNET_4_5_20250929_LONG_V1_0',
39
+ 'claude-sonnet-4-5-1m-thinking': 'CLAUDE_SONNET_4_5_20250929_LONG_V1_0',
38
40
  'claude-opus-4-5': 'CLAUDE_OPUS_4_5_20251101_V1_0',
39
41
  'claude-opus-4-5-thinking': 'CLAUDE_OPUS_4_5_20251101_V1_0',
40
- 'claude-sonnet-4-20250514': 'CLAUDE_SONNET_4_20250514_V1_0',
41
- 'claude-3-7-sonnet-20250219': 'CLAUDE_3_7_SONNET_20250219_V1_0'
42
+ 'claude-opus-4-6': 'CLAUDE_OPUS_4_6_V1',
43
+ 'claude-opus-4-6-thinking': 'CLAUDE_OPUS_4_6_V1',
44
+ 'claude-opus-4-6-1m': 'CLAUDE_OPUS_4_6_LONG_V1',
45
+ 'claude-opus-4-6-1m-thinking': 'CLAUDE_OPUS_4_6_LONG_V1',
46
+ 'claude-sonnet-4': 'CLAUDE_SONNET_4_20250514_V1_0',
47
+ 'claude-3-7-sonnet': 'CLAUDE_3_7_SONNET_20250219_V1_0',
48
+ 'nova-swe': 'AGI_NOVA_SWE_V1_5',
49
+ 'gpt-oss-120b': 'OPENAI_GPT_OSS_120B_1_0',
50
+ 'qwen3-coder-480b': 'QWEN3_CODER_480B_A35B_1_0',
51
+ 'minimax-m2': 'MINIMAX_MINIMAX_M2',
52
+ 'kimi-k2-thinking': 'MOONSHOT_KIMI_K2_THINKING'
42
53
  };
43
54
  export const SUPPORTED_MODELS = Object.keys(MODEL_MAPPING);
44
55
  export const KIRO_AUTH_SERVICE = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhafron/opencode-kiro-auth",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "OpenCode plugin for AWS Kiro (CodeWhisperer) providing access to Claude models",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",