@hamp10/agentforge 0.2.10 → 0.2.11

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": "@hamp10/agentforge",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "AgentForge worker — connect your machine to agentforge.ai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -450,7 +450,11 @@ export class OllamaAgent extends EventEmitter {
450
450
 
451
451
  // If the tool returned an image (base64), push it as a vision message
452
452
  // so the model can actually see what was captured.
453
+ // Also forward to dashboard so the user sees the screenshot in chat.
453
454
  const isImageResult = typeof result === 'string' && result.startsWith('data:image/');
455
+ if (isImageResult) {
456
+ this.emit('agent_image', { agentId, image: result });
457
+ }
454
458
  if (isImageResult && isVision) {
455
459
  messages.push({
456
460
  role: 'tool',