@xiaoqiong0v0/opencode-file-tool 1.1.0 → 1.1.1
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/i18n.js +13 -4
- package/package.json +1 -1
package/dist/i18n.js
CHANGED
|
@@ -41,15 +41,24 @@ export const TX = {
|
|
|
41
41
|
uncached: { zh: "未缓存", en: "uncached" },
|
|
42
42
|
uncached_hint: { zh: "文件未缓存(id={id}),请先启用缓存再操作", en: "File not cached (id={id}), enable cache first" },
|
|
43
43
|
cmd_desc: { zh: "文件缓存管理 + 多模型配置(视觉/文生图/文生视频/文生语音)", en: "File cache manager + multi-model config (vision/image/video/tts)" },
|
|
44
|
-
cmd_template: { zh: "直接调用 file_tool
|
|
44
|
+
cmd_template: { zh: "直接调用 file_tool。`list-cache input` 看用户图片,`list-cache image|video|tts` 看生成产物,`list-provider` 列出模型,`set-provider [类型:]模型名` 切换,`enable/disable` 临时开关,`enable-save/disable-save` 持久化,`status` 查看状态。", en: "Call file_tool. `list-cache input` user images, `list-cache image|video|tts` generated, `list-provider` list models, `set-provider [type:]model` switch, `enable/disable` temp, `enable-save/disable-save` persist, `status` show state." },
|
|
45
45
|
};
|
|
46
46
|
export const DESC = {
|
|
47
|
-
analyze_image: {
|
|
47
|
+
analyze_image: {
|
|
48
|
+
zh: "用多模态模型分析图片。file_id:类型:id,类型: input=用户图片/image=生成图。先用 list-cache 拿 ID 再分析。",
|
|
49
|
+
en: "Analyze image with multimodal model. file_id:type:id; types: input=user image/image=generated. Get ID via list-cache first.",
|
|
50
|
+
},
|
|
48
51
|
text_to_image: { zh: "文生图:根据文本提示生成图片,结果缓存并返回 file_id:类型:id,可用 analyze_image 查看。", en: "Text-to-image: generate an image from a prompt, cached and returned as file_id:type:id." },
|
|
49
52
|
text_to_video: { zh: "文生视频:根据文本提示生成视频(异步提交+轮询),结果缓存并返回 file_id:类型:id。", en: "Text-to-video: generate a video from a prompt (async submit+poll), cached and returned as file_id:type:id." },
|
|
50
53
|
text_to_speech: { zh: "文生语音:将文本转为语音(TTS),结果缓存并返回 file_id:类型:id。", en: "Text-to-speech: convert text to audio, cached and returned as file_id:type:id." },
|
|
51
|
-
file_tool: {
|
|
52
|
-
|
|
54
|
+
file_tool: {
|
|
55
|
+
zh: "文件缓存管理。类型: input=用户图片, image/video/tts=生成产物。查看用户图片用 `list-cache input`;生成产物用 `list-cache image|video|tts`。file_id:类型:id 供 analyze_image 分析。",
|
|
56
|
+
en: "File cache. Types: input=user images, image/video/tts=generated. View user images via `list-cache input`; generated via `list-cache image|video|tts`. file_id:type:id for analyze_image.",
|
|
57
|
+
},
|
|
58
|
+
file_tool_args: {
|
|
59
|
+
zh: "list-cache [类型] [数量]: input=用户图片(最常用)/image/video/tts=生成产物; list-provider; set-provider [类型:]模型; enable/disable; enable-save/disable-save; status; main 前缀查主会话",
|
|
60
|
+
en: "list-cache [type] [count]: input=user images(common)/image/video/tts=generated; list-provider; set-provider [type:]model; enable/disable; enable-save/disable-save; status; main prefix for root session",
|
|
61
|
+
},
|
|
53
62
|
analyze_args_source: { zh: "file_path=file_id:类型:id(如 file_id:image:2)", en: "file_path=file_id:type:id (e.g. file_id:image:2)" },
|
|
54
63
|
analyze_args_data: { zh: "file_id:类型:id 或 base64", en: "file_id:type:id or base64" },
|
|
55
64
|
analyze_args_prompt: { zh: "分析提示", en: "prompt" },
|
package/package.json
CHANGED