pikiclaw 0.3.71 → 0.3.72
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.
|
@@ -189,9 +189,9 @@ export function claudeContextWindowFromModel(model) {
|
|
|
189
189
|
return null;
|
|
190
190
|
if (id === 'haiku' || /^claude-haiku-/.test(id))
|
|
191
191
|
return 200_000;
|
|
192
|
-
if (id === 'opus' || id === 'sonnet')
|
|
192
|
+
if (id === 'opus' || id === 'sonnet' || id === 'fable')
|
|
193
193
|
return 1_000_000;
|
|
194
|
-
if (/^claude-(opus|sonnet)-/.test(id))
|
|
194
|
+
if (/^claude-(opus|sonnet)-/.test(id) || /^claude-fable-/.test(id))
|
|
195
195
|
return 1_000_000;
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
@@ -2064,6 +2064,7 @@ function hydrateSubAgentBlocksFromSidecar(richMsgs, subAgentsDir) {
|
|
|
2064
2064
|
// Models
|
|
2065
2065
|
// ---------------------------------------------------------------------------
|
|
2066
2066
|
const CLAUDE_MODELS = [
|
|
2067
|
+
{ id: 'claude-fable-5', alias: 'fable' },
|
|
2067
2068
|
{ id: 'claude-opus-4-8', alias: 'opus' },
|
|
2068
2069
|
{ id: 'claude-sonnet-4-6', alias: 'sonnet' },
|
|
2069
2070
|
{ id: 'claude-haiku-4-5-20251001', alias: 'haiku' },
|
package/dist/agent/utils.js
CHANGED
|
@@ -509,6 +509,8 @@ export function modelFamily(model) {
|
|
|
509
509
|
const lower = model?.toLowerCase() || '';
|
|
510
510
|
if (!lower)
|
|
511
511
|
return null;
|
|
512
|
+
if (lower.includes('fable'))
|
|
513
|
+
return 'fable';
|
|
512
514
|
if (lower.includes('opus'))
|
|
513
515
|
return 'opus';
|
|
514
516
|
if (lower.includes('sonnet'))
|
package/dist/bot/commands.js
CHANGED
|
@@ -343,6 +343,8 @@ function claudeModelFamily(modelId) {
|
|
|
343
343
|
const value = normalizeClaudeModelId(modelId).toLowerCase();
|
|
344
344
|
if (!value)
|
|
345
345
|
return null;
|
|
346
|
+
if (value === 'fable' || value.startsWith('claude-fable-'))
|
|
347
|
+
return 'fable';
|
|
346
348
|
if (value === 'opus' || value.startsWith('claude-opus-'))
|
|
347
349
|
return 'opus';
|
|
348
350
|
if (value === 'sonnet' || value.startsWith('claude-sonnet-'))
|
|
@@ -353,7 +355,7 @@ function claudeModelFamily(modelId) {
|
|
|
353
355
|
}
|
|
354
356
|
function isClaudeFamilyAlias(modelId) {
|
|
355
357
|
const v = modelId.trim().toLowerCase();
|
|
356
|
-
return v === 'opus' || v === 'sonnet' || v === 'haiku';
|
|
358
|
+
return v === 'fable' || v === 'opus' || v === 'sonnet' || v === 'haiku';
|
|
357
359
|
}
|
|
358
360
|
export function modelMatchesSelection(agent, selection, currentModel) {
|
|
359
361
|
if (selection === currentModel)
|
package/package.json
CHANGED