@zhafron/opencode-kiro-auth 1.5.2 → 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 +45 -0
- package/dist/constants.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,6 +61,36 @@ Add the plugin to your `opencode.json` or `opencode.jsonc`:
|
|
|
61
61
|
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
|
|
62
62
|
}
|
|
63
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
|
+
},
|
|
64
94
|
"claude-sonnet-4-5-1m": {
|
|
65
95
|
"name": "Claude Sonnet 4.5 1M",
|
|
66
96
|
"limit": { "context": 1000000, "output": 64000 },
|
|
@@ -101,6 +131,21 @@ This happens when the plugin has no records in `~/.config/opencode/kiro.db`.
|
|
|
101
131
|
|
|
102
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.
|
|
103
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
|
+
|
|
104
149
|
## Configuration
|
|
105
150
|
|
|
106
151
|
The plugin supports extensive configuration options. Edit `~/.config/opencode/kiro.json`:
|
package/dist/constants.js
CHANGED
|
@@ -39,6 +39,10 @@ export const MODEL_MAPPING = {
|
|
|
39
39
|
'claude-sonnet-4-5-1m-thinking': 'CLAUDE_SONNET_4_5_20250929_LONG_V1_0',
|
|
40
40
|
'claude-opus-4-5': 'CLAUDE_OPUS_4_5_20251101_V1_0',
|
|
41
41
|
'claude-opus-4-5-thinking': 'CLAUDE_OPUS_4_5_20251101_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',
|
|
42
46
|
'claude-sonnet-4': 'CLAUDE_SONNET_4_20250514_V1_0',
|
|
43
47
|
'claude-3-7-sonnet': 'CLAUDE_3_7_SONNET_20250219_V1_0',
|
|
44
48
|
'nova-swe': 'AGI_NOVA_SWE_V1_5',
|