@gotgenes/pi-anthropic-auth 0.4.1 → 0.4.6

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
@@ -4,7 +4,7 @@
4
4
  [![CI](https://img.shields.io/github/actions/workflow/status/gotgenes/pi-anthropic-auth/ci.yml?style=flat&logo=github&label=CI)](https://github.com/gotgenes/pi-anthropic-auth/actions/workflows/ci.yml)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?style=flat&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
7
- [![pnpm](https://img.shields.io/badge/pnpm-%3E%3D9-F69220?style=flat&logo=pnpm&logoColor=white)](https://pnpm.io/)
7
+ [![pnpm](https://img.shields.io/badge/pnpm-%3E%3D10-F69220?style=flat&logo=pnpm&logoColor=white)](https://pnpm.io/)
8
8
  [![Pi Package](https://img.shields.io/badge/Pi-Package-6366F1?style=flat)](https://pi.mariozechner.at/)
9
9
 
10
10
  A [Pi](https://pi.mariozechner.at/) extension that improves compatibility with Anthropic Claude Pro/Max OAuth (i.e., your Claude subscription) while preserving Pi's normal Anthropic behavior.
@@ -1,4 +1,4 @@
1
- import type { OAuthCredentials, OAuthLoginCallbacks } from "@mariozechner/pi-ai";
1
+ import type { OAuthCredentials, OAuthLoginCallbacks } from "@earendil-works/pi-ai";
2
2
  export declare function mergeRefreshedCredentials(credentials: OAuthCredentials, refreshed: Partial<OAuthCredentials>): OAuthCredentials;
3
3
  export declare const anthropicOAuthOverride: {
4
4
  readonly name: "Anthropic (Claude Pro/Max)";
@@ -1,4 +1,4 @@
1
- import { loginAnthropic, refreshAnthropicToken, } from "@mariozechner/pi-ai/oauth";
1
+ import { loginAnthropic, refreshAnthropicToken, } from "@earendil-works/pi-ai/oauth";
2
2
  export function mergeRefreshedCredentials(credentials, refreshed) {
3
3
  return {
4
4
  ...credentials,
@@ -44,7 +44,7 @@ export declare const CLAUDE_CODE_IDENTITY_PREFIX = "You are Claude Code, Anthrop
44
44
  * too far from what Anthropic expects, OAuth requests may be rejected or
45
45
  * counted incorrectly.
46
46
  */
47
- export declare const CLAUDE_CODE_VERSION = "2.1.108";
47
+ export declare const CLAUDE_CODE_VERSION = "2.1.119";
48
48
  /** Salt used in the billing header suffix hash. */
49
49
  export declare const BILLING_HEADER_SALT = "59cf53e54c78";
50
50
  /** Character positions sampled from the first user message for the billing hash. */
package/dist/constants.js CHANGED
@@ -61,7 +61,7 @@ export const CLAUDE_CODE_IDENTITY_PREFIX = "You are Claude Code, Anthropic's off
61
61
  * too far from what Anthropic expects, OAuth requests may be rejected or
62
62
  * counted incorrectly.
63
63
  */
64
- export const CLAUDE_CODE_VERSION = "2.1.108";
64
+ export const CLAUDE_CODE_VERSION = "2.1.119";
65
65
  /** Salt used in the billing header suffix hash. */
66
66
  export const BILLING_HEADER_SALT = "59cf53e54c78";
67
67
  /** Character positions sampled from the first user message for the billing hash. */
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
2
  export default function (pi: ExtensionAPI): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gotgenes/pi-anthropic-auth",
3
- "version": "0.4.1",
3
+ "version": "0.4.6",
4
4
  "description": "Pi extension package for Anthropic OAuth compatibility",
5
5
  "author": {
6
6
  "name": "Chris Lasher"
@@ -30,34 +30,33 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "scripts": {
34
- "build": "tsc -p tsconfig.build.json",
35
- "check": "tsc -p tsconfig.check.json --noEmit",
36
- "lint": "biome check .",
37
- "lint:fix": "biome check --write .",
38
- "lint:md": "markdownlint-cli2 '*.md'",
39
- "lint:all": "pnpm run lint && pnpm run lint:md",
40
- "format": "biome format --write .",
41
- "test": "vitest run",
42
- "test:watch": "vitest",
43
- "prepublishOnly": "pnpm run check && pnpm run test && pnpm run build"
44
- },
45
33
  "pi": {
46
34
  "extensions": [
47
35
  "./dist/index.js"
48
36
  ]
49
37
  },
50
38
  "peerDependencies": {
51
- "@mariozechner/pi-ai": "*",
52
- "@mariozechner/pi-coding-agent": "*"
39
+ "@earendil-works/pi-ai": "*",
40
+ "@earendil-works/pi-coding-agent": "*"
53
41
  },
54
42
  "devDependencies": {
55
- "@anthropic-ai/sdk": "^0.52.0",
56
- "@biomejs/biome": "^2.4.12",
57
- "@mariozechner/pi-ai": "^0.68.0",
58
- "@mariozechner/pi-coding-agent": "^0.68.0",
59
- "markdownlint-cli2": "^0.22.0",
43
+ "@anthropic-ai/sdk": "^0.95.0",
44
+ "@biomejs/biome": "^2.4.14",
45
+ "@earendil-works/pi-ai": "^0.74.0",
46
+ "@earendil-works/pi-coding-agent": "^0.74.0",
47
+ "markdownlint-cli2": "^0.22.1",
60
48
  "typescript": "^6.0.3",
61
49
  "vitest": "^4.1.5"
50
+ },
51
+ "scripts": {
52
+ "build": "tsc -p tsconfig.build.json",
53
+ "check": "tsc -p tsconfig.check.json --noEmit",
54
+ "lint": "biome check .",
55
+ "lint:fix": "biome check --write .",
56
+ "lint:md": "markdownlint-cli2 '*.md'",
57
+ "lint:all": "pnpm run lint && pnpm run lint:md",
58
+ "format": "biome format --write .",
59
+ "test": "vitest run",
60
+ "test:watch": "vitest"
62
61
  }
63
- }
62
+ }