praxis-agent 0.63.0 → 0.63.1

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.
@@ -23,7 +23,11 @@ export function anthropicModelAliasOverridesFromEnvironment(environment) {
23
23
  }
24
24
  export function resolveAnthropicModelAlias(model, overrides = {}) {
25
25
  const longContext = model.endsWith('[1m]');
26
- const family = longContext ? model.slice(0, -'[1m]'.length) : model;
26
+ const family = model === 'best'
27
+ ? 'opus'
28
+ : longContext
29
+ ? model.slice(0, -'[1m]'.length)
30
+ : model;
27
31
  if (family !== 'sonnet' && family !== 'opus' && family !== 'haiku') {
28
32
  return model;
29
33
  }
@@ -232,9 +232,10 @@ class NativeProviderRegistry {
232
232
  if (this.target.providerId !== 'anthropic' ||
233
233
  this.target.protocol !== 'anthropic-messages')
234
234
  return false;
235
- if (modelId !== 'sonnet' && modelId !== 'opus' && modelId !== 'haiku')
235
+ const family = modelId === 'best' ? 'opus' : modelId;
236
+ if (family !== 'sonnet' && family !== 'opus' && family !== 'haiku')
236
237
  return false;
237
- const override = this.options.anthropicModelAliasOverrides?.[modelId];
238
+ const override = this.options.anthropicModelAliasOverrides?.[family];
238
239
  return override !== undefined && override.trim().length > 0;
239
240
  }
240
241
  resolveTarget(target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "praxis-agent",
3
- "version": "0.63.0",
3
+ "version": "0.63.1",
4
4
  "description": "Local-first, single-user general agent for the command line.",
5
5
  "license": "MIT",
6
6
  "author": "wuqisen",