@ai-agent-forge/plugin-image-generation 0.88.1 → 0.88.3
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/MANUAL.md +14 -0
- package/agent-forge.json +1 -1
- package/package.json +3 -2
- package/plugin.json +4 -1
package/MANUAL.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# image-generation 能力手册(AI 用)
|
|
2
|
+
|
|
3
|
+
文生图与图编辑。两个工具:`image_generate`(prompt 文生图)、`image_edit`(输入图 + 指令编辑)。
|
|
4
|
+
|
|
5
|
+
## 模型从哪来
|
|
6
|
+
|
|
7
|
+
取值链(高→低):工具参数显式 `provider`/`model` → settings.json `capabilities.imageGeneration` 槽位 → env/主模型推断/唯一候选自动推断。**凭据**走 host 的 auth.json(该 provider 必须已配置 apiKey/baseUrl;未配置会得到结构化的 credentials 错误,提示用户先 `/login` 或补配置,不要重试)。
|
|
8
|
+
|
|
9
|
+
## 使用要点
|
|
10
|
+
|
|
11
|
+
1. prompt 写清主体/风格/构图;编辑任务给明确的输入图路径与修改指令。
|
|
12
|
+
2. 生成结果是文件产物(落盘路径在工具结果里),把路径告诉用户,不要把 base64 贴进对话。
|
|
13
|
+
3. 未配置槽位时的错误消息含全部三种配置方式,照转给用户即可。
|
|
14
|
+
4. **图片下载走标准代理环境变量**(`HTTPS_PROXY`/`HTTP_PROXY`,curl 同款约定)。供应商返回的图床 URL 若在宿主网络不可直连,启动 agent-forge 时带代理 env,否则 image_generate 会失败在下载阶段;此时可如实用 bash + 代理取 `b64_json` 变通,但要如实说明工具本体失败。
|
package/agent-forge.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-agent-forge/plugin-image-generation",
|
|
3
|
-
"version": "0.88.
|
|
3
|
+
"version": "0.88.3",
|
|
4
4
|
"description": "Image generation capability plugin for Agent Forge (image_generate / image_edit tools)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
|
+
"MANUAL.md",
|
|
16
17
|
"agent-forge.json",
|
|
17
18
|
"plugin.json",
|
|
18
19
|
"README.md"
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"typebox": "1.3.27",
|
|
48
49
|
"undici": "8.9.0",
|
|
49
|
-
"@ai-agent-forge/plugin-sdk": "^0.88.
|
|
50
|
+
"@ai-agent-forge/plugin-sdk": "^0.88.3"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"shx": "0.4.0",
|
package/plugin.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "agent-forge.plugin.image-generation",
|
|
3
|
-
"version": "0.88.
|
|
3
|
+
"version": "0.88.3",
|
|
4
4
|
"apiVersion": "1-draft",
|
|
5
5
|
"entry": "./dist/entry.js",
|
|
6
6
|
"hostVersion": ">=0.84.4",
|
|
7
|
+
"description": "图像生成:文生图/图编辑两工具,经生图槽位与 providers 配置取模型,配图任务时挂载",
|
|
8
|
+
"activation": "on-demand",
|
|
9
|
+
"manual": "./MANUAL.md",
|
|
7
10
|
"requiredCapabilities": [
|
|
8
11
|
"tools"
|
|
9
12
|
],
|