@gotgenes/pi-anthropic-auth 0.4.2 → 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/dist/anthropic-oauth.d.ts +1 -1
- package/dist/anthropic-oauth.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +20 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OAuthCredentials, OAuthLoginCallbacks } from "@
|
|
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)";
|
package/dist/anthropic-oauth.js
CHANGED
package/dist/constants.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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 "@
|
|
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.
|
|
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
|
-
"@
|
|
52
|
-
"@
|
|
39
|
+
"@earendil-works/pi-ai": "*",
|
|
40
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
53
41
|
},
|
|
54
42
|
"devDependencies": {
|
|
55
|
-
"@anthropic-ai/sdk": "^0.
|
|
56
|
-
"@biomejs/biome": "^2.4.
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"markdownlint-cli2": "^0.22.
|
|
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
|
+
}
|