@cortexkit/pi-anthropic-auth 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -77,6 +77,7 @@ export default async function cortexKitPiAnthropicAuth(pi, options = {}) {
77
77
  effortHistoryBySession.delete(sessionId);
78
78
  await closePiNativeRuntime(storagePath);
79
79
  });
80
+ // Keep the catalog chat-only even when Pi also accepts image/classifier models.
80
81
  const configuration = {
81
82
  name: 'Anthropic (CortexKit OAuth)',
82
83
  baseUrl: 'https://api.anthropic.com',
@@ -275,8 +276,8 @@ export default async function cortexKitPiAnthropicAuth(pi, options = {}) {
275
276
  getModels: () => (configuration.models ?? []).map((model) => ({
276
277
  ...model,
277
278
  provider: 'anthropic',
278
- api: model.api ?? 'cortexkit-anthropic-messages',
279
- baseUrl: model.baseUrl ?? 'https://api.anthropic.com',
279
+ api: configuration.api,
280
+ baseUrl: configuration.baseUrl,
280
281
  })),
281
282
  // Preserve the legacy provider's simplified option surface for raw calls.
282
283
  stream: (model, context, options) => streamSimple(model, context, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-anthropic-auth",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,11 +36,11 @@
36
36
  "prepublishOnly": "bun run build"
37
37
  },
38
38
  "dependencies": {
39
- "@cortexkit/anthropic-auth-core": "2.0.1"
39
+ "@cortexkit/anthropic-auth-core": "2.0.2"
40
40
  },
41
41
  "peerDependencies": {
42
- "@earendil-works/pi-ai": ">=0.86.1",
43
- "@earendil-works/pi-coding-agent": ">=0.86.1",
44
- "@earendil-works/pi-tui": ">=0.86.1"
42
+ "@earendil-works/pi-ai": ">=0.86.1 <2",
43
+ "@earendil-works/pi-coding-agent": ">=0.86.1 <2",
44
+ "@earendil-works/pi-tui": ">=0.86.1 <2"
45
45
  }
46
46
  }