opencode-avatar 0.3.13 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +1 -1
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.13",
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",