@blockrun/franklin 3.8.6 → 3.8.7

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.
@@ -68,7 +68,7 @@ Rules:
68
68
  export function getExecutorModel(profile) {
69
69
  switch (profile) {
70
70
  case 'premium':
71
- return 'moonshot/kimi-k2.5'; // Medium-tier, reliable execution
71
+ return 'moonshot/kimi-k2.6'; // Medium-tier, reliable execution (256K ctx, vision + reasoning)
72
72
  case 'auto':
73
73
  default:
74
74
  return 'google/gemini-2.5-flash'; // Cheap, fast, good at instructions
@@ -190,6 +190,7 @@ const MODEL_CONTEXT_WINDOWS = {
190
190
  'xai/grok-4-1-fast-reasoning': 131_072,
191
191
  // Others
192
192
  'zai/glm-5.1': 200_000,
193
+ 'moonshot/kimi-k2.6': 256_000,
193
194
  'moonshot/kimi-k2.5': 128_000,
194
195
  'minimax/minimax-m2.7': 128_000,
195
196
  };
package/dist/pricing.js CHANGED
@@ -67,7 +67,8 @@ export const MODEL_PRICING = {
67
67
  // Minimax
68
68
  'minimax/minimax-m2.7': { input: 0.3, output: 1.2 },
69
69
  'minimax/minimax-m2.5': { input: 0.3, output: 1.2 },
70
- // Others
70
+ // Moonshot
71
+ 'moonshot/kimi-k2.6': { input: 0.95, output: 4.0 },
71
72
  'moonshot/kimi-k2.5': { input: 0.6, output: 3.0 },
72
73
  'nvidia/kimi-k2.5': { input: 0.55, output: 2.5 },
73
74
  // PROMOTION (active ~2026-04): flat $0.001/call for all GLM models
@@ -105,7 +105,7 @@ const MODEL_SHORTCUTS = {
105
105
  minimax: 'minimax/minimax-m2.7',
106
106
  // Others
107
107
  glm: 'zai/glm-5.1',
108
- kimi: 'moonshot/kimi-k2.5',
108
+ kimi: 'moonshot/kimi-k2.6',
109
109
  };
110
110
  // Model pricing now uses shared source from src/pricing.ts
111
111
  function detectModelSwitch(parsed) {
@@ -40,15 +40,15 @@ function loadLearnedWeights() {
40
40
  const AUTO_TIERS = {
41
41
  SIMPLE: {
42
42
  primary: 'google/gemini-2.5-flash',
43
- fallback: ['moonshot/kimi-k2.5', 'deepseek/deepseek-chat'],
43
+ fallback: ['moonshot/kimi-k2.6', 'deepseek/deepseek-chat'],
44
44
  },
45
45
  MEDIUM: {
46
46
  primary: 'anthropic/claude-sonnet-4.6',
47
- fallback: ['openai/gpt-5.4', 'google/gemini-3.1-pro', 'moonshot/kimi-k2.5'],
47
+ fallback: ['openai/gpt-5.4', 'google/gemini-3.1-pro', 'moonshot/kimi-k2.6'],
48
48
  },
49
49
  COMPLEX: {
50
50
  primary: 'anthropic/claude-sonnet-4.6',
51
- fallback: ['openai/gpt-5.4', 'anthropic/claude-opus-4.7', 'moonshot/kimi-k2.5'],
51
+ fallback: ['openai/gpt-5.4', 'anthropic/claude-opus-4.7', 'moonshot/kimi-k2.6'],
52
52
  },
53
53
  REASONING: {
54
54
  // Opus 4.7: step-change improvement in agentic coding over 4.6 per
@@ -84,7 +84,7 @@ const ECO_TIERS = {
84
84
  };
85
85
  const PREMIUM_TIERS = {
86
86
  SIMPLE: {
87
- primary: 'moonshot/kimi-k2.5',
87
+ primary: 'moonshot/kimi-k2.6',
88
88
  fallback: ['anthropic/claude-haiku-4.5'],
89
89
  },
90
90
  MEDIUM: {
@@ -58,7 +58,8 @@ export const MODEL_SHORTCUTS = {
58
58
  glm: 'zai/glm-5.1',
59
59
  'glm-turbo': 'zai/glm-5-turbo',
60
60
  'glm5': 'zai/glm-5.1',
61
- kimi: 'moonshot/kimi-k2.5',
61
+ kimi: 'moonshot/kimi-k2.6',
62
+ 'kimi-k2.5': 'moonshot/kimi-k2.5',
62
63
  };
63
64
  /**
64
65
  * Resolve a model name — supports shortcuts.
@@ -125,7 +126,8 @@ export const PICKER_CATEGORIES = [
125
126
  { id: 'openai/gpt-5-nano', shortcut: 'nano', label: 'GPT-5 Nano', price: '$0.05/$0.4' },
126
127
  { id: 'google/gemini-2.5-flash', shortcut: 'flash', label: 'Gemini 2.5 Flash', price: '$0.3/$2.5' },
127
128
  { id: 'deepseek/deepseek-chat', shortcut: 'deepseek', label: 'DeepSeek V3', price: '$0.28/$0.42' },
128
- { id: 'moonshot/kimi-k2.5', shortcut: 'kimi', label: 'Kimi K2.5', price: '$0.6/$3' },
129
+ { id: 'moonshot/kimi-k2.6', shortcut: 'kimi', label: 'Kimi K2.6', price: '$0.95/$4' },
130
+ { id: 'moonshot/kimi-k2.5', shortcut: 'kimi-k2.5', label: 'Kimi K2.5 (legacy)', price: '$0.6/$3' },
129
131
  { id: 'minimax/minimax-m2.7', shortcut: 'minimax', label: 'Minimax M2.7', price: '$0.3/$1.2' },
130
132
  ],
131
133
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/franklin",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
4
4
  "description": "Franklin — The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.",
5
5
  "type": "module",
6
6
  "exports": {