@yeaft/webchat-agent 1.0.353 → 1.0.355

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.353",
3
+ "version": "1.0.355",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,6 +37,7 @@ function readLocalLlmConfig(dir) {
37
37
  primaryModel: json.primaryModel || null,
38
38
  fastModel: json.fastModel || null,
39
39
  language: json.language || 'en',
40
+ debug: json.debug === true,
40
41
  needsSetup: providers.length === 0 || providers.every(p => p.apiKey === 'proxy' || p.apiKey === '' || (!p.apiKey && !p.credentialProvider)),
41
42
  };
42
43
  }
@@ -174,6 +175,9 @@ export function updateLlmConfig(update, dir) {
174
175
  if (update.language !== undefined) {
175
176
  existing.language = update.language;
176
177
  }
178
+ if (update.debug !== undefined) {
179
+ existing.debug = update.debug === true;
180
+ }
177
181
 
178
182
  // Write back
179
183
  try {
@@ -187,6 +191,7 @@ export function updateLlmConfig(update, dir) {
187
191
  primaryModel: existing.primaryModel || null,
188
192
  fastModel: existing.fastModel || null,
189
193
  language: existing.language || 'en',
194
+ debug: existing.debug === true,
190
195
  };
191
196
  return {
192
197
  ...agentConfig,