opencode-avatar 0.3.12 → 0.3.14

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/dist/electron.js CHANGED
@@ -648,7 +648,7 @@ async function generateAvatarForPrompt(prompt, agentBase) {
648
648
  sourceAvatar = path.join(AVATAR_DIR, "avatar.png");
649
649
  }
650
650
  const uploadedUrl = await uploadFile(sourceAvatar, config.falKey);
651
- let fullPrompt = `make a character variant: ${prompt}. The action should be literal - the character should actually be performing the action (writing means writing, typing means typing, etc.), not shown as some abstract Terminal visualization or text output. Maintain the character's original essence and physicality. Keep the background as a solid green screen color. Do not let the green screen color appear in reflections or on the subject.`;
651
+ let fullPrompt = `make a character variant: ${prompt}. The action should be literal - the character should actually be performing the action (writing means writing, typing means typing, etc.), not shown as some abstract Terminal visualization or text output. Maintain the character's original essence and physicality. Keep the background as a solid green screen color. Do not let the green screen color appear in reflections or on the subject. Shadows must not be green.`;
652
652
  if (config.prompt) {
653
653
  fullPrompt += ` ${config.prompt}`;
654
654
  }
package/dist/index.js CHANGED
@@ -311,6 +311,10 @@ var AvatarPlugin = async ({ client }) => {
311
311
  const prompt = getToolPrompt(toolName, toolDescription);
312
312
  idleTriggered = false;
313
313
  isToolActive = true;
314
+ const avatarPath = getAvatarPath(prompt, toolName);
315
+ if (fs.existsSync(avatarPath)) {
316
+ setAvatarViaHttp(prompt, toolName, true);
317
+ }
314
318
  requestAvatarGeneration(prompt, false, toolName).catch((err) => {
315
319
  isToolActive = false;
316
320
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-avatar",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Dynamic desktop avatar plugin for OpenCode that reacts to your coding activities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",