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.
- package/dist/index.js +4 -0
- 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
|
});
|