fluxy-bot 0.5.31 → 0.5.33

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": "fluxy-bot",
3
- "version": "0.5.31",
3
+ "version": "0.5.33",
4
4
  "description": "Self-hosted, self-evolving AI agent with its own dashboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -188,6 +188,7 @@ export async function startFluxyAgentQuery(
188
188
  }
189
189
  } catch {}
190
190
 
191
+ let stderrBuf = '';
191
192
  const claudeQuery = query({
192
193
  prompt: sdkPrompt,
193
194
  options: {
@@ -200,9 +201,11 @@ export async function startFluxyAgentQuery(
200
201
  systemPrompt: enrichedPrompt,
201
202
  plugins: plugins.length ? plugins : undefined,
202
203
  mcpServers,
204
+ stderr: (chunk: string) => { stderrBuf += chunk; },
203
205
  env: {
204
206
  ...process.env as Record<string, string>,
205
207
  CLAUDE_CODE_OAUTH_TOKEN: oauthToken,
208
+ CLAUDE_CODE_BUBBLEWRAP: '1',
206
209
  },
207
210
  },
208
211
  });
@@ -261,8 +264,10 @@ export async function startFluxyAgentQuery(
261
264
  }
262
265
  } catch (err: any) {
263
266
  if (!abortController.signal.aborted) {
264
- log.warn(`Fluxy agent error (${conversationId}): ${err.message}`);
265
- onMessage('bot:error', { conversationId, error: err.message });
267
+ const detail = stderrBuf.trim();
268
+ const msg = detail ? `${err.message}\n\nCLI stderr:\n${detail}` : err.message;
269
+ log.warn(`Fluxy agent error (${conversationId}): ${msg}`);
270
+ onMessage('bot:error', { conversationId, error: msg });
266
271
  }
267
272
  } finally {
268
273
  activeQueries.delete(conversationId);