opencode-claude-auth 2.1.6 → 2.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 CHANGED
@@ -55,11 +55,12 @@ Just run OpenCode. The plugin handles auth automatically — it reads your Claud
55
55
 
56
56
  ## Supported models
57
57
 
58
- 13 supported models. Run `pnpm run test:models` to verify against your account.
58
+ 14 supported models. Run `pnpm run test:models` to verify against your account.
59
59
 
60
60
  | Model |
61
61
  | -------------------------- |
62
62
  | claude-fable-5 |
63
+ | claude-fable-5-1 |
63
64
  | claude-haiku-4-5 |
64
65
  | claude-haiku-4-5-20251001 |
65
66
  | claude-opus-4-5 |
@@ -1,5 +1,5 @@
1
1
  export const config = {
2
- ccVersion: "2.1.217",
2
+ ccVersion: "2.1.257",
3
3
  baseBetas: [
4
4
  "claude-code-20250219",
5
5
  "oauth-2025-04-20",
@@ -14,19 +14,19 @@ export const config = {
14
14
  "context-1m-2025-08-07",
15
15
  "interleaved-thinking-2025-05-14",
16
16
  ],
17
- // NOTE: getModelOverride is first-match-wins. The "sonnet" key must stay
18
- // ahead of "4-6"/"4-7": it shields claude-sonnet-4-6 from the "4-6"
19
- // effort add-override, and its exclude strips effort if a user supplies
20
- // it via ANTHROPIC_BETA_FLAGS. Do not remove it as inert the split is
21
- // pinned by the "effort beta" test in betas.test.ts.
17
+ // NOTE: getModelOverride is first-match-wins. Keep "haiku" ahead of any
18
+ // "4-5" add so claude-haiku-4-5 never receives effort. "opus-4-5" is
19
+ // more specific than a bare "4-5" would be (sonnet-4-5 still omits
20
+ // effort). Pinned by the "effort beta" test in betas.test.ts from
21
+ // Claude CLI 2.1.257 intercept traffic.
22
22
  modelOverrides: {
23
- sonnet: {
24
- exclude: ["effort-2025-11-24"],
25
- },
26
23
  haiku: {
27
24
  exclude: ["effort-2025-11-24"],
28
25
  disableEffort: true,
29
26
  },
27
+ "opus-4-5": {
28
+ add: ["effort-2025-11-24"],
29
+ },
30
30
  "4-6": {
31
31
  add: ["effort-2025-11-24"],
32
32
  },
@@ -1 +1 @@
1
- {"version":3,"file":"model-config.js","sourceRoot":"","sources":["../src/model-config.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,MAAM,GAAgB;IACjC,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE;QACT,sBAAsB;QACtB,kBAAkB;QAClB,iCAAiC;QACjC,iCAAiC;QACjC,+BAA+B;QAC/B,yBAAyB;QACzB,iCAAiC;QACjC,+BAA+B;KAChC;IACD,gBAAgB,EAAE;QAChB,uBAAuB;QACvB,iCAAiC;KAClC;IACD,yEAAyE;IACzE,oEAAoE;IACpE,wEAAwE;IACxE,wEAAwE;IACxE,qDAAqD;IACrD,cAAc,EAAE;QACd,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,mBAAmB,CAAC;SAC/B;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,aAAa,EAAE,IAAI;SACpB;QACD,KAAK,EAAE;YACL,GAAG,EAAE,CAAC,mBAAmB,CAAC;SAC3B;QACD,KAAK,EAAE;YACL,GAAG,EAAE,CAAC,mBAAmB,CAAC;SAC3B;KACF;CACF,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,CAAA;IACnC,KAAK,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QACxE,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,OAAO,QAAQ,CAAA;IAC9C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
1
+ {"version":3,"file":"model-config.js","sourceRoot":"","sources":["../src/model-config.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,MAAM,GAAgB;IACjC,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE;QACT,sBAAsB;QACtB,kBAAkB;QAClB,iCAAiC;QACjC,iCAAiC;QACjC,+BAA+B;QAC/B,yBAAyB;QACzB,iCAAiC;QACjC,+BAA+B;KAChC;IACD,gBAAgB,EAAE;QAChB,uBAAuB;QACvB,iCAAiC;KAClC;IACD,wEAAwE;IACxE,qEAAqE;IACrE,mEAAmE;IACnE,kEAAkE;IAClE,wCAAwC;IACxC,cAAc,EAAE;QACd,KAAK,EAAE;YACL,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,aAAa,EAAE,IAAI;SACpB;QACD,UAAU,EAAE;YACV,GAAG,EAAE,CAAC,mBAAmB,CAAC;SAC3B;QACD,KAAK,EAAE;YACL,GAAG,EAAE,CAAC,mBAAmB,CAAC;SAC3B;QACD,KAAK,EAAE;YACL,GAAG,EAAE,CAAC,mBAAmB,CAAC;SAC3B;KACF;CACF,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,CAAA;IACnC,KAAK,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QACxE,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,OAAO,QAAQ,CAAA;IAC9C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-claude-auth",
3
- "version": "2.1.6",
3
+ "version": "2.2.0",
4
4
  "description": "OpenCode plugin that uses your Claude Code credentials — no separate login needed.",
5
5
  "keywords": [
6
6
  "anthropic",