opencode-tui-image-clipboard-fix 1.0.11 → 1.0.12
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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -148,7 +148,7 @@ export const ImageClipboardFix = async ({ client, directory }) => {
|
|
|
148
148
|
// 如果有图片路径,替换文本中的占位符
|
|
149
149
|
if (imagePaths && imagePaths.size > 0) {
|
|
150
150
|
const textPart = parts.find((p) => p.type === "text");
|
|
151
|
-
if (textPart && textPart.text) {
|
|
151
|
+
if (textPart && textPart.text && !textPart.text.includes("[Image Reference:")) {
|
|
152
152
|
textPart.text = modifyTextContent(textPart.text, imagePaths);
|
|
153
153
|
}
|
|
154
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-tui-image-clipboard-fix",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"displayName": "Image Clipboard Fix",
|
|
6
6
|
"description": "OpenCode TUI plugin to fix image paste issues - saves clipboard images locally and replaces [Image N] with file paths",
|