@ai-agent-tools/picgen 0.1.0-alpha.8 → 0.1.0-alpha.9
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/README.md +2 -2
- package/dist/cli.js +5 -5
- package/docs/release-alpha.md +1 -1
- package/package.json +1 -1
- package/skills/picgen/SKILL.md +32 -2
package/README.md
CHANGED
|
@@ -54,8 +54,8 @@ npx -y skills add ai-agent-tools/picgen --skill picgen -g -y --copy
|
|
|
54
54
|
picgen skill install codex
|
|
55
55
|
picgen update check
|
|
56
56
|
picgen doctor --json
|
|
57
|
-
picgen create --dry-run "
|
|
58
|
-
picgen create --yes "
|
|
57
|
+
picgen create --dry-run --preset fast-draft "一张简洁的 PicGen 测试图"
|
|
58
|
+
picgen create --yes --preset fast-draft "一张简洁的 PicGen 测试图"
|
|
59
59
|
picgen create --dry-run --provider gemini_official --reference ./reference.png "基于参考图生成一张品牌海报"
|
|
60
60
|
picgen create --yes --provider gemini_official --reference ./reference.png "基于参考图生成一张品牌海报"
|
|
61
61
|
picgen provider list
|
package/dist/cli.js
CHANGED
|
@@ -1054,7 +1054,7 @@ import { homedir as homedir2 } from "os";
|
|
|
1054
1054
|
|
|
1055
1055
|
// src/version.ts
|
|
1056
1056
|
var PACKAGE_NAME = "@ai-agent-tools/picgen";
|
|
1057
|
-
var VERSION = "0.1.0-alpha.
|
|
1057
|
+
var VERSION = "0.1.0-alpha.9";
|
|
1058
1058
|
|
|
1059
1059
|
// src/commands/update.ts
|
|
1060
1060
|
var UPDATE_CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -1331,8 +1331,8 @@ function describeEnvValue(name, value, source, path) {
|
|
|
1331
1331
|
};
|
|
1332
1332
|
}
|
|
1333
1333
|
function maskSecret(value) {
|
|
1334
|
-
if (value.length <=
|
|
1335
|
-
return `${value.slice(0,
|
|
1334
|
+
if (value.length <= 11) return "*".repeat(value.length);
|
|
1335
|
+
return `${value.slice(0, 7)}...${value.slice(-4)}`;
|
|
1336
1336
|
}
|
|
1337
1337
|
|
|
1338
1338
|
// src/commands/key.ts
|
|
@@ -1784,10 +1784,10 @@ function formatQuickstart() {
|
|
|
1784
1784
|
" picgen doctor --json",
|
|
1785
1785
|
"",
|
|
1786
1786
|
"Preview before spending quota:",
|
|
1787
|
-
' picgen create --dry-run "\u4E00\u5F20\
|
|
1787
|
+
' picgen create --dry-run --preset fast-draft "\u4E00\u5F20\u7B80\u6D01\u7684 PicGen \u6D4B\u8BD5\u56FE"',
|
|
1788
1788
|
"",
|
|
1789
1789
|
"Generate after confirmation:",
|
|
1790
|
-
' picgen create --yes "\u4E00\u5F20\
|
|
1790
|
+
' picgen create --yes --preset fast-draft "\u4E00\u5F20\u7B80\u6D01\u7684 PicGen \u6D4B\u8BD5\u56FE"',
|
|
1791
1791
|
"",
|
|
1792
1792
|
"Use a reference image:",
|
|
1793
1793
|
' picgen create --dry-run --reference ./reference.png "\u57FA\u4E8E\u53C2\u8003\u56FE\u751F\u6210\u4E00\u5F20\u54C1\u724C\u6D77\u62A5"',
|
package/docs/release-alpha.md
CHANGED
package/package.json
CHANGED
package/skills/picgen/SKILL.md
CHANGED
|
@@ -103,6 +103,36 @@ Use Gemini providers for reference-image generation in Alpha. The OpenAI-compati
|
|
|
103
103
|
|
|
104
104
|
PicGen routes by provider capabilities. When reference images are provided, agents may omit `--provider` and let PicGen select a provider that supports `reference-image`, unless the user explicitly requested a provider.
|
|
105
105
|
|
|
106
|
+
## First Smoke Test
|
|
107
|
+
|
|
108
|
+
After configuring a provider, run the first test generation with a low-cost, fast, one-image plan. Do not use `poster`, `product-shot`, `social-cover`, premium modes, large sizes, or multi-image presets for initial verification.
|
|
109
|
+
|
|
110
|
+
For Gemini providers, prefer the flash image model for the first test:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
picgen create --dry-run --provider gemini_proxy --preset fast-draft --model gemini-3.1-flash-image-preview "一张简洁的 PicGen 测试图,白色背景,少量蓝绿色科技感点缀"
|
|
114
|
+
picgen create --yes --provider gemini_proxy --preset fast-draft --model gemini-3.1-flash-image-preview "一张简洁的 PicGen 测试图,白色背景,少量蓝绿色科技感点缀"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
For OpenAI-compatible providers:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
picgen create --dry-run --provider openai_proxy --preset fast-draft "一张简洁的 PicGen 测试图,白色背景,少量蓝绿色科技感点缀"
|
|
121
|
+
picgen create --yes --provider openai_proxy --preset fast-draft "一张简洁的 PicGen 测试图,白色背景,少量蓝绿色科技感点缀"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Present the dry-run preview and ask for confirmation before the real generation unless the user explicitly asked to generate immediately. The first smoke test should generate one image.
|
|
125
|
+
|
|
126
|
+
## After Provider Success
|
|
127
|
+
|
|
128
|
+
After one provider is configured and the first smoke test succeeds, tell the user the provider is ready and ask whether they want to add another channel as a fallback. Example:
|
|
129
|
+
|
|
130
|
+
```text
|
|
131
|
+
Gemini 渠道已经配置并测试成功。你还可以继续添加另一个渠道作为备用,例如 OpenAI-compatible。要继续添加吗?
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
If the user says yes, repeat provider setup and smoke testing for the next channel. If the user says no, stop setup and tell them PicGen is ready to use.
|
|
135
|
+
|
|
106
136
|
## Preferences and Overrides
|
|
107
137
|
|
|
108
138
|
Treat `picgen create` flags as one-off overrides. They must not change user preferences:
|
|
@@ -157,14 +187,14 @@ Explicit:
|
|
|
157
187
|
Confirmation:
|
|
158
188
|
|
|
159
189
|
```text
|
|
160
|
-
|
|
190
|
+
我可以先用 PicGen 做一次轻量测试生成,默认只出 1 张,确认工具和渠道都可用。要我现在开始吗?
|
|
161
191
|
```
|
|
162
192
|
|
|
163
193
|
Generation preview:
|
|
164
194
|
|
|
165
195
|
```text
|
|
166
196
|
生成预览:
|
|
167
|
-
|
|
197
|
+
我将使用当前渠道生成 1 张轻量测试图,保存到本地。
|
|
168
198
|
|
|
169
199
|
确认后开始生成。
|
|
170
200
|
```
|