@2en/clawly-plugins 1.24.4 → 1.24.6
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.
- package/config-setup.ts +6 -4
- package/internal/hooks/auto-update.ts +1 -1
- package/package.json +1 -1
package/config-setup.ts
CHANGED
|
@@ -40,6 +40,8 @@ function toPC(api: PluginApi): ConfigPluginConfig {
|
|
|
40
40
|
return (api.pluginConfig ?? {}) as ConfigPluginConfig
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
const DEFAULT_MODEL = `${PROVIDER_NAME}/anthropic/claude-sonnet-4.6`
|
|
44
|
+
|
|
43
45
|
// ---------------------------------------------------------------------------
|
|
44
46
|
// Domain helpers — each returns true when config was mutated
|
|
45
47
|
// ---------------------------------------------------------------------------
|
|
@@ -79,8 +81,8 @@ export function patchAgent(config: Record<string, unknown>, pc: ConfigPluginConf
|
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
// model: set-if-missing
|
|
82
|
-
if (
|
|
83
|
-
defaults.model = {primary:
|
|
84
|
+
if (!defaults.model) {
|
|
85
|
+
defaults.model = {primary: DEFAULT_MODEL}
|
|
84
86
|
dirty = true
|
|
85
87
|
}
|
|
86
88
|
|
|
@@ -235,8 +237,8 @@ export function patchTts(config: Record<string, unknown>, pc: ConfigPluginConfig
|
|
|
235
237
|
tts.provider = 'elevenlabs'
|
|
236
238
|
dirty = true
|
|
237
239
|
}
|
|
238
|
-
if (tts.summaryModel === undefined
|
|
239
|
-
tts.summaryModel =
|
|
240
|
+
if (tts.summaryModel === undefined) {
|
|
241
|
+
tts.summaryModel = DEFAULT_MODEL
|
|
240
242
|
dirty = true
|
|
241
243
|
}
|
|
242
244
|
if (tts.modelOverrides === undefined) {
|