opencode-tui-image-clipboard-fix 1.0.5 → 1.0.6

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.d.ts CHANGED
@@ -82,5 +82,7 @@ type Plugin = (input: PluginInput) => Promise<{
82
82
  * 3. 在发送给模型时替换 [Image N] 占位符为实际文件路径(不影响界面显示)
83
83
  * 4. 移除 FilePart,只保留文本(避免不支持图片的模型报错)
84
84
  */
85
- export declare const ImageStoragePlugin: Plugin;
85
+ export declare const ImageStoragePlugin: Plugin & {
86
+ name: string;
87
+ };
86
88
  export default ImageStoragePlugin;
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ const messageImagePaths = new Map();
54
54
  * 3. 在发送给模型时替换 [Image N] 占位符为实际文件路径(不影响界面显示)
55
55
  * 4. 移除 FilePart,只保留文本(避免不支持图片的模型报错)
56
56
  */
57
- const ImageStoragePlugin = async ({ client, directory }) => {
57
+ exports.ImageStoragePlugin = Object.assign(async ({ client, directory }) => {
58
58
  const config = {
59
59
  ...DEFAULT_CONFIG,
60
60
  };
@@ -212,6 +212,5 @@ const ImageStoragePlugin = async ({ client, directory }) => {
212
212
  },
213
213
  },
214
214
  };
215
- };
216
- exports.ImageStoragePlugin = ImageStoragePlugin;
215
+ }, { name: "image-clipboard-fix" });
217
216
  exports.default = exports.ImageStoragePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-tui-image-clipboard-fix",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "OpenCode TUI plugin to fix image paste/drag issues - saves images locally and replaces [Image N] with file paths",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",