@cortexkit/anthropic-auth-core 2.5.4 → 2.5.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/cachekeep-store.d.ts +48 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +752 -320
- package/dist/internal-types/claustrum/roster.d.ts +2 -0
- package/dist/internal-types/store/index.d.ts +1 -1
- package/dist/internal-types/store/limits-namespace.d.ts +7 -1
- package/dist/internal-types/store/pool.d.ts +1 -1
- package/dist/turn-end-note.d.ts +7 -0
- package/package.json +2 -2
|
@@ -120,6 +120,8 @@ export interface VaultRosterLockContext {
|
|
|
120
120
|
}
|
|
121
121
|
export interface MutateVaultRosterOptions {
|
|
122
122
|
signal?: AbortSignal;
|
|
123
|
+
/** Runs under the roster lock once published, even if a later step fails. Must not throw. */
|
|
124
|
+
onPublished?: () => void;
|
|
123
125
|
/**
|
|
124
126
|
* Runs when the new roster is fully staged on disk, immediately before the
|
|
125
127
|
* rename that publishes it, so a caller can confirm a lease of its own at
|
|
@@ -3,7 +3,7 @@ export type { PoolFailureKind, PoolFailurePhase, PoolOperation, } from './errors
|
|
|
3
3
|
export { PoolOperationError, PoolReentryError } from './errors.js';
|
|
4
4
|
export type { PoolLogger } from './hooks.js';
|
|
5
5
|
export { countUnknownIdentityRows, DUPLICATE_IDENTITY_REASON, } from './identity.js';
|
|
6
|
-
export type { PoolLimitsMutator, PoolLimitsRow } from './limits-namespace.js';
|
|
6
|
+
export type { PoolLimitsMutator, PoolLimitsRow, PoolLimitsWriteOptions, } from './limits-namespace.js';
|
|
7
7
|
export type { HoldPoint, InitializeOutcome, WriteStep } from './mutate.js';
|
|
8
8
|
export type { OpenPoolStoreOptions, PoolLoad, PoolStore, } from './pool.js';
|
|
9
9
|
export { openPoolStore } from './pool.js';
|
|
@@ -3,5 +3,11 @@ import type { PoolRow } from './schema.js';
|
|
|
3
3
|
/** Row IDs, credential epochs and identities only; mutators never receive credentials. */
|
|
4
4
|
export type PoolLimitsRow = Pick<PoolRow, 'id' | 'credentialEpoch' | 'identity'>;
|
|
5
5
|
export type PoolLimitsMutator = (envelope: unknown, rows: readonly PoolLimitsRow[]) => unknown | Promise<unknown>;
|
|
6
|
+
/** Publication bookkeeping runs under the same locks as the namespace merge. */
|
|
7
|
+
export interface PoolLimitsWriteOptions {
|
|
8
|
+
readonly beforePublish?: () => void;
|
|
9
|
+
/** Runs once publication happened, even if a later step fails. Must not throw. */
|
|
10
|
+
readonly onPublished?: () => void;
|
|
11
|
+
}
|
|
6
12
|
/** A namespace merge and its check of current row bindings share one locked config snapshot. */
|
|
7
|
-
export declare function updatePoolLimitsNamespace(rt: StoreRuntime, mutator: PoolLimitsMutator): Promise<void>;
|
|
13
|
+
export declare function updatePoolLimitsNamespace(rt: StoreRuntime, mutator: PoolLimitsMutator, options?: PoolLimitsWriteOptions): Promise<void>;
|
|
@@ -202,7 +202,7 @@ export interface PoolStore {
|
|
|
202
202
|
* onPersisted/onFailure hook or a pull, but not in a lock-held mutator.
|
|
203
203
|
* Optional so existing structural implementations remain compatible.
|
|
204
204
|
*/
|
|
205
|
-
updateLimitsNamespace?(mutator: PoolLimitsMutator): Promise<void>;
|
|
205
|
+
updateLimitsNamespace?(mutator: PoolLimitsMutator, options?: import('./limits-namespace.js').PoolLimitsWriteOptions): Promise<void>;
|
|
206
206
|
/**
|
|
207
207
|
* Records the identity a lookup found for the row's credential. Since
|
|
208
208
|
* 0.3.1 it takes the credential epoch the lookup was issued for, and
|
package/dist/turn-end-note.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare const TURN_END_NOTE_CONTENT = "Your reply above has already reach
|
|
|
8
8
|
* mid-conversation-system-clear-at beta that Claude Code sends for these models.
|
|
9
9
|
*/
|
|
10
10
|
export declare function supportsTurnEndNote(model: unknown): boolean;
|
|
11
|
+
/** Apply after our own turn-end notes, so runner notes land before them. */
|
|
12
|
+
export declare function applyRunnerTurnNotes(body: Record<string, unknown>, options: {
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
/** Raw model id supplied by the host, not the wire body model. */
|
|
15
|
+
modelId: string;
|
|
16
|
+
isOAuth: boolean;
|
|
17
|
+
}): number;
|
|
11
18
|
/**
|
|
12
19
|
* Call only on OAuth histories, after effort-marker validation and stripping.
|
|
13
20
|
* Map configured host names with the same stateless mapping used for history,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/anthropic-auth-core",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "bun run build"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@cortexkit/common-auth": "0.
|
|
33
|
+
"@cortexkit/common-auth": "0.38.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@cortexkit/claustrum-client": "0.13.0",
|