@heylemon/lemonade 0.5.3 → 0.5.5

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.
@@ -10,9 +10,11 @@ const CLAUDE_MODEL_ALIASES = {
10
10
  "claude-opus-4-5": "opus",
11
11
  "claude-opus-4": "opus",
12
12
  sonnet: "sonnet",
13
+ "sonnet-4.6": "sonnet",
13
14
  "sonnet-4.5": "sonnet",
14
15
  "sonnet-4.1": "sonnet",
15
16
  "sonnet-4.0": "sonnet",
17
+ "claude-sonnet-4-6": "sonnet",
16
18
  "claude-sonnet-4-5": "sonnet",
17
19
  "claude-sonnet-4-1": "sonnet",
18
20
  "claude-sonnet-4-0": "sonnet",
@@ -1,6 +1,6 @@
1
1
  // Defaults for agent metadata when upstream does not supply them.
2
2
  // Model id uses pi-ai's built-in Anthropic catalog.
3
3
  export const DEFAULT_PROVIDER = "anthropic";
4
- export const DEFAULT_MODEL = "claude-opus-4-5";
5
- // Context window: Opus 4.5 supports ~200k tokens (per pi-ai models.generated.ts).
4
+ export const DEFAULT_MODEL = "claude-sonnet-4-6";
5
+ // Context window: Sonnet 4.6 supports up to 1M tokens (200k default).
6
6
  export const DEFAULT_CONTEXT_TOKENS = 200_000;
@@ -1,4 +1,4 @@
1
- const ANTHROPIC_PREFIXES = ["claude-opus-4-5", "claude-sonnet-4-5", "claude-haiku-4-5"];
1
+ const ANTHROPIC_PREFIXES = ["claude-opus-4-5", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5"];
2
2
  const OPENAI_MODELS = ["gpt-5.2", "gpt-5.0"];
3
3
  const CODEX_MODELS = [
4
4
  "gpt-5.2",
@@ -33,8 +33,14 @@ function normalizeAnthropicModelId(model) {
33
33
  const lower = trimmed.toLowerCase();
34
34
  if (lower === "opus-4.5")
35
35
  return "claude-opus-4-5";
36
+ if (lower === "sonnet-4.6")
37
+ return "claude-sonnet-4-6";
36
38
  if (lower === "sonnet-4.5")
37
39
  return "claude-sonnet-4-5";
40
+ // Strip date suffixes (e.g. claude-sonnet-4-6-20260217 → claude-sonnet-4-6)
41
+ const stripped = trimmed.replace(/-\d{8}$/, "");
42
+ if (stripped !== trimmed)
43
+ return stripped;
38
44
  return trimmed;
39
45
  }
40
46
  function normalizeProviderModelId(provider, model) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.3",
2
+ "version": "0.5.5",
3
3
  "commit": "bdb274db9db6b173eb00625602e3043d8c07e0d2",
4
- "builtAt": "2026-02-26T06:24:57.760Z"
4
+ "builtAt": "2026-02-26T08:45:35.254Z"
5
5
  }
@@ -1 +1 @@
1
- b9c4e1e0c802224de855221042a77031ff6b822b64643ae6db63ec6f58e47a4c
1
+ d03eeb5e4cb32552a79f2a5709a0f77293953becd46da61844a42631f86aa986
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heylemon/lemonade",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "AI gateway CLI for Lemon - local AI assistant with integrations",
5
5
  "publishConfig": {
6
6
  "access": "restricted"