@cortexkit/pi-anthropic-auth 2.2.1 → 2.2.3
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/custody.js +4 -1
- package/dist/index.js +5 -6
- package/package.json +2 -2
package/dist/custody.js
CHANGED
|
@@ -16,7 +16,10 @@ export function createPiCustodyCommands() {
|
|
|
16
16
|
const messages = {
|
|
17
17
|
reset: 'Terminal enrollment state cleared. Run setup to enroll Pi again.',
|
|
18
18
|
idle: 'Pi has no enrollment state to reset.',
|
|
19
|
-
|
|
19
|
+
// A pending state may hold a request the vault already stored under
|
|
20
|
+
// this secret; setup replays that secret to resume it. The "Refused:"
|
|
21
|
+
// prefix is how the Pi menu marks the action as not done.
|
|
22
|
+
'refused-pending': 'Refused: An enrollment request may still be in progress. Quit Pi and run setup again; it picks up the same request.',
|
|
20
23
|
'refused-approved': 'Refused: Pi already has an approved enrollment token.',
|
|
21
24
|
busy: 'Pi enrollment is busy in another process.',
|
|
22
25
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLAUDE_FABLE_MYTHOS_5_MODEL_SPECS, CLAUDE_HAIKU_5_5_CONTEXT_WINDOW, CLAUDE_HAIKU_5_5_LONG_CONTEXT_PRICING, CLAUDE_HAIKU_5_5_LONG_CONTEXT_THRESHOLD, CLAUDE_HAIKU_5_5_MAX_OUTPUT_TOKENS, CLAUDE_HAIKU_5_5_MODEL_ID, CLAUDE_HAIKU_5_5_PRICING, CLAUDE_SONNET_5_5_CONTEXT_WINDOW, CLAUDE_SONNET_5_5_MAX_OUTPUT_TOKENS, CLAUDE_SONNET_5_5_MODEL_ID, CLAUDE_SONNET_5_5_PRICING, defaultAdaptiveEffort, getClaudeModelCatalogue, nativeAccountCanServe, readNativeEnrollmentMode, } from '@cortexkit/anthropic-auth-core';
|
|
2
2
|
import { registerCommands } from './commands.js';
|
|
3
3
|
import { collectPiEffortHistory, deriveContextEntries, } from './effort-history.js';
|
|
4
4
|
import { closePiNativeRuntime, getPiNativeRuntime, isNativeMigrationRequired, } from './native.js';
|
|
@@ -85,9 +85,8 @@ export default async function cortexKitPiAnthropicAuth(pi, options = {}) {
|
|
|
85
85
|
api: 'cortexkit-anthropic-messages',
|
|
86
86
|
models: [
|
|
87
87
|
...Object.values(CLAUDE_FABLE_MYTHOS_5_MODEL_SPECS).map((model) => {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
: CLAUDE_FABLE_MYTHOS_5_PRICING;
|
|
88
|
+
const catalogue = getClaudeModelCatalogue(model.id);
|
|
89
|
+
const pricing = catalogue.pricing;
|
|
91
90
|
return {
|
|
92
91
|
id: model.id,
|
|
93
92
|
name: model.name,
|
|
@@ -99,8 +98,8 @@ export default async function cortexKitPiAnthropicAuth(pi, options = {}) {
|
|
|
99
98
|
cacheRead: pricing.cacheRead,
|
|
100
99
|
cacheWrite: pricing.cacheWrite5m,
|
|
101
100
|
},
|
|
102
|
-
contextWindow:
|
|
103
|
-
maxTokens:
|
|
101
|
+
contextWindow: catalogue.contextWindow,
|
|
102
|
+
maxTokens: catalogue.maxOutputTokens,
|
|
104
103
|
};
|
|
105
104
|
}),
|
|
106
105
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/pi-anthropic-auth",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"prepublishOnly": "bun run build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cortexkit/anthropic-auth-core": "2.2.
|
|
39
|
+
"@cortexkit/anthropic-auth-core": "2.2.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@earendil-works/pi-ai": ">=0.86.1 <2",
|