opencode-kiro 0.1.7 → 0.2.0
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 +16 -0
- package/dist/server.js +17 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -135,6 +135,22 @@ opencode run -m kiro/auto "hello"
|
|
|
135
135
|
Image input is capability-driven: paste an image path into the TUI prompt and
|
|
136
136
|
image-capable models receive it as an attachment.
|
|
137
137
|
|
|
138
|
+
### Reasoning effort
|
|
139
|
+
|
|
140
|
+
Effort-capable models expose a reasoning-effort toggle: cycle it in opencode with the
|
|
141
|
+
**Cycle model variants** action (default keybind `ctrl+t`). It is **per model**, showing
|
|
142
|
+
each family's native levels:
|
|
143
|
+
|
|
144
|
+
- `claude-opus-4.8`, `claude-opus-4.7`: low / medium / high / xhigh / max
|
|
145
|
+
- `claude-opus-4.6`, `claude-sonnet-4.6`: low / medium / high / max
|
|
146
|
+
|
|
147
|
+
Models without effort control (opus-4.5, sonnet-4.5, haiku, deepseek, glm, qwen, minimax)
|
|
148
|
+
show no effort option. opencode's **Default** (unset) returns the model to its native
|
|
149
|
+
default effort. No config is required: the plugin's `provider.models` hook supplies the
|
|
150
|
+
variants automatically and the chosen level flows to the SDK as
|
|
151
|
+
`providerOptions.kiro.reasoningEffort`. Kiro cannot disable thinking, so even the lowest
|
|
152
|
+
level still produces a reasoning trail.
|
|
153
|
+
|
|
138
154
|
## Credits in the sidebar
|
|
139
155
|
|
|
140
156
|
Kiro is subscription-metered: requests consume **credits**, and the dollar cost
|
package/dist/server.js
CHANGED
|
@@ -91,6 +91,23 @@ var server = async (input) => {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
|
+
},
|
|
95
|
+
provider: {
|
|
96
|
+
id: "kiro",
|
|
97
|
+
// Inject per-model reasoning-effort variants, consumed as providerOptions.kiro.reasoningEffort.
|
|
98
|
+
async models(provider, _ctx) {
|
|
99
|
+
const { reasoningEffortsFor } = await import("kiro-acp-ai-provider");
|
|
100
|
+
for (const model of Object.values(provider.models)) {
|
|
101
|
+
const apiId = model.api?.id;
|
|
102
|
+
if (!apiId) continue;
|
|
103
|
+
const levels = reasoningEffortsFor(apiId);
|
|
104
|
+
if (levels.length === 0) continue;
|
|
105
|
+
model.variants = Object.fromEntries(
|
|
106
|
+
levels.map((level) => [level, { reasoningEffort: level }])
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
return provider.models;
|
|
110
|
+
}
|
|
94
111
|
}
|
|
95
112
|
};
|
|
96
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-kiro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The ACP-compliant Kiro plugin for opencode: auth via the official kiro-cli login, the live Kiro model lineup through the Agent Client Protocol, and TUI credits display",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nacho F. Lizaur (https://github.com/NachoFLizaur)",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@opencode-ai/plugin": "*"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"kiro-acp-ai-provider": "
|
|
45
|
+
"kiro-acp-ai-provider": "2.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@opencode-ai/plugin": "1.16.2",
|