@2en/clawly-plugins 1.24.4 → 1.24.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.
Files changed (2) hide show
  1. package/config-setup.ts +6 -4
  2. 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 (pc.defaultModel && !defaults.model) {
83
- defaults.model = {primary: `${PROVIDER_NAME}/${pc.defaultModel}`}
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 && pc.defaultModel) {
239
- tts.summaryModel = `${PROVIDER_NAME}/${pc.defaultModel}`
240
+ if (tts.summaryModel === undefined) {
241
+ tts.summaryModel = DEFAULT_MODEL
240
242
  dirty = true
241
243
  }
242
244
  if (tts.modelOverrides === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2en/clawly-plugins",
3
- "version": "1.24.4",
3
+ "version": "1.24.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "repository": {