@magpie-community/opencode-kiro-auth 0.1.10 → 0.1.11

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/index.mjs +4 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -85,7 +85,8 @@ request:
85
85
  tool calls and usage. When Kiro reports only how full the context is,
86
86
  input tokens are estimated from that.
87
87
  - Thinking (Claude models and Auto) is asked for the way kiro-cli asks, in
88
- the prompt, with a budget: low 10k, medium 20k, high 30k, max 50k. The
88
+ the prompt, with a budget: low 10k, medium 20k, high 30k, xhigh and max
89
+ 50k (as magpie's built-in Kiro: #120). The
89
90
  `<thinking>` block of the reply comes back as thinking.
90
91
  - Kiro's failures keep their meaning:
91
92
  - input too long → 400
package/index.mjs CHANGED
@@ -503,7 +503,9 @@ function account(client) {
503
503
  const windows = new Map() // a model's context, as Kiro last listed it
504
504
 
505
505
  const thinks = (id) => /claude/i.test(id) || id === "auto"
506
- const BUDGETS = { low: 10000, medium: 20000, high: 30000, max: 50000 }
506
+ // the levels a thinking model offers, as the built-in thinks them (xhigh as
507
+ // long as max: #120)
508
+ const BUDGETS = { low: 10000, medium: 20000, high: 30000, xhigh: 50000, max: 50000 }
507
509
 
508
510
  function configModel(m) {
509
511
  return {
@@ -1516,4 +1518,4 @@ export async function KiroAuthPlugin({ client } = {}) {
1516
1518
  }
1517
1519
 
1518
1520
  // for tests
1519
- export const _internal = { generate, refresh, usageOf, buildKiro, events, reply, failure, toolID, toolName, toolNames, thinking, readCLI, readIDE, regionOf, planName, frames }
1521
+ export const _internal = { generate, refresh, usageOf, buildKiro, events, reply, failure, toolID, toolName, toolNames, thinking, configModel, runtimeModel, readCLI, readIDE, regionOf, planName, frames }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-kiro-auth",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Kiro subscriptions (Free, Pro, Pro+, Power) in OpenCode and magpie",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",