pi-anthropic-oauth 0.1.12 → 0.1.13

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
@@ -11,7 +11,7 @@ Use Claude Pro/Max in Pi with browser OAuth.
11
11
  - Claude Code-compatible OAuth headers and prompt shaping
12
12
  - No API key or extra usage needed.
13
13
  - Uses Pi's Anthropic model registry
14
- - Adds Claude Opus 4.7 by default
14
+ - Adds Claude Opus 4.8 by default
15
15
  - Auto-creates `~/.Claude Code` → `~/.pi` symlink when missing
16
16
 
17
17
  ## Quick start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-anthropic-oauth",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Claude Pro/Max OAuth extension for Pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -11,9 +11,9 @@ import type { OAuthCredentials } from "@earendil-works/pi-ai";
11
11
  import { loginAnthropic, refreshAnthropicToken } from "./auth.js";
12
12
  import { streamAnthropicOAuth } from "./stream.js";
13
13
 
14
- const DEFAULT_OPUS_4_7: NonNullable<ProviderConfig["models"]>[number] = {
15
- id: "claude-opus-4-7",
16
- name: "Claude Opus 4.7",
14
+ const DEFAULT_OPUS_4_8: NonNullable<ProviderConfig["models"]>[number] = {
15
+ id: "claude-opus-4-8",
16
+ name: "Claude Opus 4.8",
17
17
  api: "anthropic-messages",
18
18
  reasoning: true,
19
19
  input: ["text", "image"],
@@ -50,8 +50,8 @@ function getAnthropicModels(): NonNullable<ProviderConfig["models"]> {
50
50
  compat: model.compat,
51
51
  }));
52
52
 
53
- if (!models.some((model) => model.id === DEFAULT_OPUS_4_7.id)) {
54
- models.push(DEFAULT_OPUS_4_7);
53
+ if (!models.some((model) => model.id === DEFAULT_OPUS_4_8.id)) {
54
+ models.push(DEFAULT_OPUS_4_8);
55
55
  }
56
56
 
57
57
  return models;