Skip to content

Commit 0511865

Browse files
committed
release: v1.2.2
1 parent a243e9f commit 0511865

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This repo is a CortexKit-maintained Anthropic auth monorepo for OpenCode and Pi. The OpenCode package is a fork of the original `@ex-machina/opencode-anthropic-auth` plugin, so older entries below the initial CortexKit release are inherited from upstream package history.
44

5+
## 1.2.2
6+
7+
### Patch Changes
8+
9+
- Add jitter to OpenCode and fallback-account background OAuth refresh timers so concurrent OpenCode processes do not all refresh at the same due timestamp.
10+
- Harden the cross-process main OAuth refresh lock so a process cannot steal a lock while another process is still initializing it, preventing duplicate refresh requests that can consume a rotated refresh token and leave the loser with `invalid_grant`.
11+
- When a main OAuth refresh is already in progress, wait briefly and re-read OpenCode auth so followers can join the successful token rotation instead of failing immediately.
12+
513
## 1.2.1
614

715
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cortexkit/anthropic-auth-core",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/opencode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cortexkit/opencode-anthropic-auth",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"type": "module",
55
"repository": {
66
"type": "git",
@@ -41,6 +41,6 @@
4141
"@opencode-ai/plugin": "*"
4242
},
4343
"dependencies": {
44-
"@cortexkit/anthropic-auth-core": "1.2.1"
44+
"@cortexkit/anthropic-auth-core": "1.2.2"
4545
}
4646
}

packages/pi/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cortexkit/pi-anthropic-auth",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"type": "module",
55
"repository": {
66
"type": "git",
@@ -35,7 +35,7 @@
3535
"prepublishOnly": "bun run build"
3636
},
3737
"dependencies": {
38-
"@cortexkit/anthropic-auth-core": "1.2.1"
38+
"@cortexkit/anthropic-auth-core": "1.2.2"
3939
},
4040
"peerDependencies": {
4141
"@earendil-works/pi-ai": "*",

0 commit comments

Comments
 (0)