pi-anthropic-oauth 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-anthropic-oauth",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Claude Pro/Max OAuth extension for Pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,12 +37,12 @@
37
37
  "@anthropic-ai/sdk": "^0.52.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@mariozechner/pi-ai": "*",
41
- "@mariozechner/pi-coding-agent": "*"
40
+ "@earendil-works/pi-ai": "*",
41
+ "@earendil-works/pi-coding-agent": "*"
42
42
  },
43
43
  "devDependencies": {
44
- "@mariozechner/pi-ai": "^0.66.1",
45
- "@mariozechner/pi-coding-agent": "^0.66.1",
44
+ "@earendil-works/pi-ai": "^0.74.0",
45
+ "@earendil-works/pi-coding-agent": "^0.74.0",
46
46
  "typescript": "^5.9.3"
47
47
  }
48
48
  }
package/src/auth.ts CHANGED
@@ -2,7 +2,7 @@ import { createServer } from "node:http";
2
2
  import type {
3
3
  OAuthCredentials,
4
4
  OAuthLoginCallbacks,
5
- } from "@mariozechner/pi-ai";
5
+ } from "@earendil-works/pi-ai";
6
6
 
7
7
  const CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
8
8
  const AUTHORIZE_URL = "https://claude.ai/oauth/authorize";
package/src/convert.ts CHANGED
@@ -18,7 +18,7 @@ import type {
18
18
  Tool,
19
19
  ToolCall,
20
20
  ToolResultMessage,
21
- } from "@mariozechner/pi-ai";
21
+ } from "@earendil-works/pi-ai";
22
22
  import { sanitizeSurrogates } from "./prompt.js";
23
23
 
24
24
  export type IndexedBlock =
package/src/index.ts CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  ModelRegistry,
7
7
  type ExtensionAPI,
8
8
  type ProviderConfig,
9
- } from "@mariozechner/pi-coding-agent";
10
- import type { OAuthCredentials } from "@mariozechner/pi-ai";
9
+ } from "@earendil-works/pi-coding-agent";
10
+ 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
 
package/src/prompt.ts CHANGED
@@ -2,7 +2,7 @@ const CLAUDE_CODE_IDENTITY =
2
2
  "You are Claude Code, Anthropic's official CLI for Claude.";
3
3
  const PI_REMOVAL_ANCHORS = [
4
4
  "pi-coding-agent",
5
- "@mariozechner/pi-coding-agent",
5
+ "@earendil-works/pi-coding-agent",
6
6
  "badlogic/pi-mono",
7
7
  ] as const;
8
8
 
package/src/stream.ts CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  type SimpleStreamOptions,
12
12
  type StopReason,
13
13
  streamSimpleAnthropic,
14
- } from "@mariozechner/pi-ai";
14
+ } from "@earendil-works/pi-ai";
15
15
  import { isClaudeOAuthAccessToken, USER_AGENT } from "./auth.js";
16
16
  import {
17
17
  convertPiMessagesToAnthropic,