{"_id":"@ai-agent-tools/picgen","_rev":"15-e8edca2c8827a1d994a109567ab2214e","name":"@ai-agent-tools/picgen","dist-tags":{"latest":"0.1.0-alpha.20"},"versions":{"0.1.0-alpha.0":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.0","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.0","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"f28017a05e1860b162c4105cc013bd9e54d13594","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.0.tgz","fileCount":11,"integrity":"sha512-qld1mkYhfS+eA7wqKYbBge5G9Dnnc8p5HagvYy2FnowZHB5GxKFwNwY8Hh9iqhXdYjM26h8MvMvHZotE+4nLjQ==","signatures":[{"sig":"MEUCIQCJuDF41YNKW187t/h//95O54urkmcX6EgPNRwUDn/jdAIgXCSl8nLqdGO8j7kLjWMrSMAdZYittYX/6cWu4gwsxm4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95355},"type":"module","engines":{"node":">=20"},"gitHead":"29f2ced6c073f1813872a9a97d657304f6838afb","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.0_1782998551633_0.6912167064574795","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.1":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.1","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.1","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"9f6497b22fe31bed0a3e55fbe2e24aa92a31c21b","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.1.tgz","fileCount":11,"integrity":"sha512-p4qI1R402CeGepkdrdlLcqfknlF8pGoOsrtUOfD4ATlWicgVmhbTWdPXeeOdGPp2ZEb5ryMEyP0rQ9l/ejQ7jQ==","signatures":[{"sig":"MEYCIQCZaH7u/I+hrNlVIq/Sw6LAkCX0kHDWYgfRIT8jX69k5AIhAKIvDqhAdveF6Xhwf27RzKWJ2LY7YBQYNcJB5HCDJP/a","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100795},"type":"module","engines":{"node":">=20"},"gitHead":"16c8a3f6376c3f902a274d7751117ae37055edcc","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.1_1782999040138_0.7782442410570316","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.2":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.2","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.2","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"9e32979538d232376d624fce3433ff4c626142fc","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.2.tgz","fileCount":11,"integrity":"sha512-5LqdFpRAmTWpTcr4oF7IPVtr3XfH2dCFEIMoneJd4BBE7D+7z4Ss+t081fWdrb+thFRhtuORzia0zYdytO8Oeg==","signatures":[{"sig":"MEYCIQCbdZUi3jTs7KFYxL+E7x0OqAXeao+X4ecTalTN8w4+kgIhAJ1rCgO73L5qpdGMKkuMiuW0dOt76IDRJdoQ3aWK1/JU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100968},"type":"module","engines":{"node":">=20"},"gitHead":"cd7d3182f30efecc5dea917fe006ef840ab73e9f","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.2_1782999373709_0.5595280777714804","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.3":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.3","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.3","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"b48744f38c8853bd552c78b72ca0c9f3465d65e5","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.3.tgz","fileCount":11,"integrity":"sha512-0JYXqGhY9thDlBQmE9DU9MC88eu/+5LoSk4ZAh3an0RZju6D6dqKYfANslVhuYOCyXbIYYypzTck2SPeKOlLig==","signatures":[{"sig":"MEUCIDZmVIu23DwijCaKAX2z7z5Gh59mQ//HNm0lFbDqK6zIAiEA2mPbsBeBC2S8E5fvMPy8TQSgV6H257jYefhrNN8HYTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":103466},"type":"module","engines":{"node":">=20"},"gitHead":"a5cd3d96a3c3bd074eceee1737a958046194e0a1","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.3_1783000315381_0.3119098438520165","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.4":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.4","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.4","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"f58933a69b2fb6ea0e20e5f6aacb37d5be917461","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.4.tgz","fileCount":11,"integrity":"sha512-l15I397x4/bvzZfM1wPah0puBh6uLW38Og6TDbZoOprwsyKyrUKiZfdD7mpyYhTjZrve7iR7d/I3M/ALhP0QhQ==","signatures":[{"sig":"MEYCIQDLFL4T3zpyimYTS/VuVu2S2GP++u+gG9204rBv9aIfdAIhAItfD6ncftbF+21j8ozr3ACQ7P2i1Q8s5H4vgQLpfF5p","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":107655},"type":"module","engines":{"node":">=20"},"gitHead":"9f32bd31ba79fd0b4b16ce5206d5ce83f42b8fc0","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.4_1783000847397_0.9391228188119305","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.7":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.7","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.7","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"ebd4c2761c5e0ce2560488283b1ae93444bad011","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.7.tgz","fileCount":11,"integrity":"sha512-51IupefhJ82FuzjFEfoWhAY4YTqKl1TT6sPEyD/6A1DddMKaBzbnct68oczvnr737qta+L/eAmGzI+kBvVm5yQ==","signatures":[{"sig":"MEUCICnA8LoQxotldpm47MqZsBuNldpoOIWZAA/wJ/I6bdqNAiEAsQGs/1SePS1/XyonPKGUFenyBZdh5oX66gbpiFLjyoY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118483},"type":"module","engines":{"node":">=20"},"gitHead":"2f83b2ae6b7553c6117327b94f5ed9b341bb16e5","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.7_1783043606940_0.08028057935559296","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.8":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.8","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.8","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"ce588cd45dd357b4c9ed6533e8ad3b14b89842fb","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.8.tgz","fileCount":11,"integrity":"sha512-YvCkYlvgnPBPBBOXl7zfQU3Z9jZmn5aVSS2bfr3uR1E3GaGU0kmwyrn9DUFZMjy0XRqrA8lbXw2aegVQHHnn7g==","signatures":[{"sig":"MEQCIGouOs20GubguFazidnAp8jIKh1pQEeqbb/GF9NX9CDQAiBNLMISANj8tusaTQBsRcfUGtMBMnPst3U5zFhx6yOG0g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123526},"type":"module","engines":{"node":">=20"},"gitHead":"d9d575b262f55f2b7b78e1c1f27a7867ec06cfc2","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.8_1783046424398_0.6475560252443777","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.9":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.9","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.9","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"7d3c9207276e850305edf8cdc3e751b68973d599","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.9.tgz","fileCount":11,"integrity":"sha512-egTHzlPwj8gqYi10Z66jI74A/Q+w/J6KDlR0lxmNUOfpop37vdx9CuyeeEwNWqDJ3M1d7qWSQQP3CpqyCdv9Tw==","signatures":[{"sig":"MEUCICrTG0b56eoutMxbRwQt49jr+kcf3Asp4q9WnltD9XgJAiEAmgRfwX9Fay6vAqLx/zspxzQRAOxkf5aK0Kyi/cVuJrg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125359},"type":"module","engines":{"node":">=20"},"gitHead":"b4379042134cf42b12205e8fa8ecf2c75dfe514d","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.9_1783048589227_0.016074679590572627","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.10":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.10","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.10","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"9247db7b52e3b8f212e0adf6a2e8bc7028675a15","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.10.tgz","fileCount":12,"integrity":"sha512-ZtZ4bOp3ulQ37DsmS8/JKqJzV7qU+r7Dgt3FQIG3IyRrR+A1kpvGrQ03f1p1mpv6SwM5KocJsf2Ppj3J4iGBEw==","signatures":[{"sig":"MEUCIFJugg9Gc2SXimxOE7WPzJmJYZkgj5iXj/NwK27j3rFsAiEA9AZ31OA1k7zHcKQOI4dSdkx0ioIzGXKCOV4SV7S4pmc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":173630},"type":"module","engines":{"node":">=20"},"gitHead":"67a2d2e10db6b6f5eb823520c9a4cb949ac3df4e","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.10_1783060220050_0.5828714729379971","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.11":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.11","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.11","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"0b9f51bcd094bf86a7a145ea35ccebbab4694070","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.11.tgz","fileCount":12,"integrity":"sha512-05nOBakkZlKDmtdoyL2qQA6zsZWR+tKMEqgpjfFqUVRr5IAqRCIhEZQt5AI0KcdVNOSAdJHzgfK+TUPgySlUXw==","signatures":[{"sig":"MEQCIBoMDumd6x8e2pdGT/Evr22NHhf7iAVmNIBiRXK8wvgRAiBQ/28Rjc+TFMvGu50/D+nyRinNPRV2woP1Kdh9YgkJ1w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":185050},"type":"module","engines":{"node":">=20"},"gitHead":"ce4f5b7447970e5c66e722b372cafeb397083aa6","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"},"_npmVersion":"10.9.2","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.11_1783308740799_0.8637971876003789","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.16":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.16","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.16","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"homepage":"https://github.com/ai-agent-tools/picgen#readme","bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"11328b9564a58a78b2babb145f8f4c0b3befd9c7","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.16.tgz","fileCount":12,"integrity":"sha512-p9ailCwN3GZwYfEwfIFSmbnkDYKRBENLBvnn+bs0NctTlGuX2gzG47CowGzwdXDyARdJmNvmmHf0xnPVazDdnA==","signatures":[{"sig":"MEYCIQCMpO+UwMKbDRXZn5YCT3oMlpJYx/5hB3XQXs+9NaWMRQIhALQdzSP2Aomzzu/kwnT8b+sQq2KyWgjCbU/14VWlhu7Z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-agent-tools%2fpicgen@0.1.0-alpha.16","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":186459},"type":"module","engines":{"node":">=20"},"gitHead":"ecf969485a00e234e360c085d454862464d12ad8","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb3752a3-e315-44f3-acbb-8ff46d6466a0"}},"repository":{"url":"git+https://github.com/ai-agent-tools/picgen.git","type":"git"},"_npmVersion":"11.18.0","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.16_1783313903096_0.3915358184768274","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.17":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.17","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.17","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"homepage":"https://github.com/ai-agent-tools/picgen#readme","bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"ff2d5d9ffd52a86a2b26ddc0ab326a57a15d3f23","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.17.tgz","fileCount":12,"integrity":"sha512-jd4kTrEp78fjDRFTBB8Ng04G39EdgD1kloCphVCtY5gRcz2QiRazx2l7kdU2wEKdeL/ahUmTbEH+1axj+pkMPA==","signatures":[{"sig":"MEUCIQDB7UtnkbveeohEfAbnC94ikDnrC+Wxy/DKpdvvAHru/QIgaXiI/RxBtZGhw8LexkG16RuPDB7PejKwG0xWuIZJEwA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-agent-tools%2fpicgen@0.1.0-alpha.17","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":187657},"type":"module","engines":{"node":">=20"},"gitHead":"288eedbf6fe22ac47a9fa286dd3b783463d077a9","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb3752a3-e315-44f3-acbb-8ff46d6466a0"}},"repository":{"url":"git+https://github.com/ai-agent-tools/picgen.git","type":"git"},"_npmVersion":"11.18.0","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.17_1783319018494_0.7011844924076254","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.18":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.18","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.18","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"homepage":"https://github.com/ai-agent-tools/picgen#readme","bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"adb5b4ad5fbfc1f9a03c907f5bdd729d363c5133","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.18.tgz","fileCount":12,"integrity":"sha512-cqags57+4gGi4lw2rT1EX8te+sZ0oHy80cTMdyD6FQpJC+tNm6qquE2/IEsordETMKy3+ddJvLnGZwBPC93mzQ==","signatures":[{"sig":"MEUCIQDL0RkCmJ3162qoin9Cqky46GtYG5lrzUrNiOcPC9NbdQIgDdXJyRTsHKtodVY7Vc6T1yKr7WEna8B1GjPxFx1vlYU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-agent-tools%2fpicgen@0.1.0-alpha.18","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":188311},"type":"module","engines":{"node":">=20"},"gitHead":"09c497ecf29f9acf1b11ad69314ace9f583e8e14","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb3752a3-e315-44f3-acbb-8ff46d6466a0"}},"repository":{"url":"git+https://github.com/ai-agent-tools/picgen.git","type":"git"},"_npmVersion":"11.18.0","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.18_1783320812600_0.7899995686867736","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.19":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.19","keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","_id":"@ai-agent-tools/picgen@0.1.0-alpha.19","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"homepage":"https://github.com/ai-agent-tools/picgen#readme","bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"bin":{"picgen":"dist/cli.js"},"dist":{"shasum":"fdfb07581bc57d0e98771102b1216550a6fe4610","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.19.tgz","fileCount":12,"integrity":"sha512-nnpkabmPt5pz/cy903p1b81q/+kqvYdLXimDp4ZFJJEhnbMAQYx7UKOYj3bv6c3ngraA2Tvi9Syc8jdfwrFpJA==","signatures":[{"sig":"MEUCIHfxkQtG1e68cSP261X3asj3DNRQ0nfYafIJ02bbygtBAiEA0lGwjiSkbw6B1pBSZP2GBy+v0vOdDpqGTrSsjZrJbN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-agent-tools%2fpicgen@0.1.0-alpha.19","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":204451},"type":"module","engines":{"node":">=20"},"gitHead":"cdf0b48bdab11574698b09e082af0ed1cfab343a","scripts":{"dev":"tsx src/cli.ts","lint":"eslint .","test":"vitest run","build":"npm run sync-version && tsup","version":"npm run sync-version && git add src/version.ts package.json package-lock.json","typecheck":"tsc --noEmit","sync-version":"node scripts/sync-version.mjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb3752a3-e315-44f3-acbb-8ff46d6466a0"}},"repository":{"url":"git+https://github.com/ai-agent-tools/picgen.git","type":"git"},"_npmVersion":"12.0.1","description":"A lightweight image generation connector for AI agents.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"zod":"^3.24.1","yaml":"^2.7.0","dotenv":"^17.4.2","commander":"^13.1.0","@inquirer/prompts":"^7.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.3.5","eslint":"^9.18.0","vitest":"^2.1.8","typescript":"^5.7.3","@types/node":"^22.10.7"},"_npmOperationalInternal":{"tmp":"tmp/picgen_0.1.0-alpha.19_1783934670648_0.04185186948296149","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.20":{"name":"@ai-agent-tools/picgen","version":"0.1.0-alpha.20","description":"A lightweight image generation connector for AI agents.","type":"module","repository":{"type":"git","url":"git+https://github.com/ai-agent-tools/picgen.git"},"homepage":"https://github.com/ai-agent-tools/picgen#readme","bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"bin":{"picgen":"dist/cli.js"},"publishConfig":{"access":"public"},"scripts":{"build":"npm run sync-version && tsup","dev":"tsx src/cli.ts","typecheck":"tsc --noEmit","lint":"eslint .","test":"vitest run","mock:openai":"node scripts/mock-openai-provider.mjs","sync-version":"node scripts/sync-version.mjs","version":"npm run sync-version && git add src/version.ts package.json package-lock.json"},"keywords":["agent","image-generation","openai","gemini","cli"],"license":"MIT","dependencies":{"@inquirer/prompts":"^7.3.2","commander":"^13.1.0","dotenv":"^17.4.2","undici":"^6.28.0","yaml":"^2.7.0","zod":"^3.24.1"},"devDependencies":{"@types/node":"^22.10.7","eslint":"^9.18.0","tsup":"^8.3.5","tsx":"^4.19.2","typescript":"^5.7.3","vitest":"^2.1.8"},"engines":{"node":">=20"},"gitHead":"a95fcb7634934167680cd75c2864ad817240306d","_id":"@ai-agent-tools/picgen@0.1.0-alpha.20","_nodeVersion":"24.18.0","_npmVersion":"12.0.1","dist":{"integrity":"sha512-oDy0J8WzDa0FeLadoTpHQryzKuKtZe55o5kRAuK5FD/Mz+AbLP/BI4T5effo1CLfuP0OcZ3oXDnSeQTAJheuoQ==","shasum":"bce3b79c3001fd25e636e45c495b41112b3f6ed0","tarball":"https://registry.npmjs.org/@ai-agent-tools/picgen/-/picgen-0.1.0-alpha.20.tgz","fileCount":14,"unpackedSize":211520,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-agent-tools%2fpicgen@0.1.0-alpha.20","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID+tqOat2YdRj6v/f1ATWFXE0pXUvJFbJZZsmnNtzQVuAiEArk5P//S519P+T8RHBVL6Dw5z2Q/CvrvR/hW+9IiEobE="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bb3752a3-e315-44f3-acbb-8ff46d6466a0"}},"directories":{},"maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/picgen_0.1.0-alpha.20_1785152067748_0.7958244914441786"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-02T13:22:31.447Z","modified":"2026-07-27T11:34:28.212Z","0.1.0-alpha.0":"2026-07-02T13:22:31.791Z","0.1.0-alpha.1":"2026-07-02T13:30:40.316Z","0.1.0-alpha.2":"2026-07-02T13:36:13.857Z","0.1.0-alpha.3":"2026-07-02T13:51:55.548Z","0.1.0-alpha.4":"2026-07-02T14:00:47.593Z","0.1.0-alpha.7":"2026-07-03T01:53:27.074Z","0.1.0-alpha.8":"2026-07-03T02:40:24.568Z","0.1.0-alpha.9":"2026-07-03T03:16:29.382Z","0.1.0-alpha.10":"2026-07-03T06:30:20.202Z","0.1.0-alpha.11":"2026-07-06T03:32:20.989Z","0.1.0-alpha.16":"2026-07-06T04:58:23.288Z","0.1.0-alpha.17":"2026-07-06T06:23:38.626Z","0.1.0-alpha.18":"2026-07-06T06:53:32.753Z","0.1.0-alpha.19":"2026-07-13T09:24:30.796Z","0.1.0-alpha.20":"2026-07-27T11:34:27.890Z"},"bugs":{"url":"https://github.com/ai-agent-tools/picgen/issues"},"license":"MIT","homepage":"https://github.com/ai-agent-tools/picgen#readme","keywords":["agent","image-generation","openai","gemini","cli"],"repository":{"type":"git","url":"git+https://github.com/ai-agent-tools/picgen.git"},"description":"A lightweight image generation connector for AI agents.","maintainers":[{"name":"ai-agent-tools","email":"ryan.mb@foxmail.com"}],"readme":"# PicGen\n\nPicGen is a lightweight image generation connector for AI agents. It lets Codex and similar agents turn the current conversation context into images through user-owned providers and API keys.\n\nAlpha goals:\n\n- TypeScript Node.js CLI\n- OpenAI-compatible `/v1/images/generations` and `/v1/images/edits` adapter\n- Gemini image API adapter\n- Reference-image and mask-guided image editing\n- `provider + preset + routing` configuration\n- `picgen setup`, `picgen doctor`, `picgen create --dry-run`\n- Local web interface with settings, generation, and history\n- Local Codex skill instructions\n\n## Development\n\nProject conventions are documented in [AGENTS.md](./AGENTS.md).\n\n```bash\nnpm install\nnpm run dev -- --help\nnpm run typecheck\nnpm run build\n```\n\n## Install\n\n```bash\nnode -v\nnpm -v\nnpm install -g @ai-agent-tools/picgen\nnpx -y skills add ai-agent-tools/picgen --skill picgen -g -y --copy\npicgen skill install codex\npicgen --help\npicgen quickstart\npicgen open\n```\n\nUse `npx -y skills add ...` for cross-agent skill installation when supported. `picgen skill install codex` is a Codex-only fallback that copies the bundled skill into `~/.codex/skills/picgen`.\n\nAgent trial prompt:\n\n```text\n请帮我安装并配置 PicGen 生图工具。请先阅读并按这个指南执行：https://raw.githubusercontent.com/ai-agent-tools/picgen/refs/heads/main/docs/agent-install.md 。你负责判断是否在本机持久环境、安装 CLI 和 skill、引导我配置 provider/API key，并先预览生成方案，等我确认后再生成测试图。不要让我理解命令细节，也不要让我把 API key 发到聊天里。\n```\n\nFor agent-assisted installation, see [docs/agent-install.md](./docs/agent-install.md). For first-user rollout, see [docs/release-alpha.md](./docs/release-alpha.md).\n\n## Commands\n\n```bash\npicgen setup\npicgen quickstart\npicgen open\nnpx -y skills add ai-agent-tools/picgen --skill picgen -g -y --copy\npicgen skill install codex\npicgen update check\npicgen doctor --json\npicgen create --dry-run --preset fast-draft \"一张简洁的 PicGen 测试图\"\npicgen create --yes --preset fast-draft \"一张简洁的 PicGen 测试图\"\npicgen create --n 2 --size 1088x576 --quality low \"生成两张横版活动 banner\"\npicgen create --aspect-ratio 16:9 --size medium \"生成一张横版封面\"\npicgen create --dry-run --reference ./reference.png \"基于参考图生成一张品牌海报\"\npicgen create --yes --reference ./reference.png \"基于参考图生成一张品牌海报\"\npicgen create --dry-run --reference ./room.png --mask ./mask.png \"只把沙发换成蓝色\"\npicgen provider list\npicgen provider add\npicgen provider quick-add gemini-proxy --host https://www.pandai.vip --prefer\npicgen key set PICGEN_GEMINI_PROXY_KEY --clipboard\npicgen key set PICGEN_GEMINI_PROXY_KEY --stdin\npicgen key list --json\npicgen provider test openai_official --json\npicgen provider prefer gemini_official\npicgen provider disable gemini_proxy\npicgen provider remove gemini_proxy\npicgen mode prefer premium\npicgen preset prefer poster\n```\n\n`picgen setup` is repeatable. Use it to quick-add a common provider/channel, choose the default provider, choose the default generation preference, test providers, or add a custom provider/channel.\n\nQuick-add setup asks only for the essentials: provider name, host URL, API key environment variable, and model list with recommended defaults. Advanced custom setup is still available when you need to choose protocol and channel manually.\n\nReal `picgen create` calls ask for confirmation before contacting a provider. Use `--yes` only when you want to skip that CLI confirmation.\n\n`picgen open` starts a local web interface at `127.0.0.1`, defaulting to port `8188`. It is a foreground local server: keep the terminal open while using the page, and press Ctrl+C to close it. The page can configure multiple providers, save API keys to PicGen's managed env file, preview generation plans, generate images, and browse saved history under `outputs/picgen`.\n\n`--reference <path>` can be repeated to pass local reference images. OpenAI-compatible providers use `/v1/images/edits` with multipart `image[]` uploads for reference-image generation, while Gemini providers pass references through `generateContent`. `--mask <path>` can be used with `--reference` for local edits: OpenAI-compatible providers send a native multipart `mask` file to `/v1/images/edits`; Gemini providers use the mask as an additional guide image with explicit edit instructions.\n\nOne-off generation settings such as `--n`, `--size`, `--aspect-ratio`, `--quality`, and `--output-format` override preset defaults without changing user preferences. For OpenAI-compatible providers, PicGen normalizes requested `WIDTHxHEIGHT` sizes to satisfy current model rules before sending the request. For example, `1088x576` may be sent as `1120x592` because it is below the current minimum pixel budget. The provider may still return a nearby but different final pixel size; PicGen saves that provider result as-is and does not resize, crop, pad, or stretch the image. When multiple images are requested, PicGen sends OpenAI-compatible requests as multiple one-image calls for better third-party channel compatibility. Gemini providers receive `aspectRatio` plus `imageSize`; exact pixel sizes are converted to the closest supported ratio and usually `1K` for speed and cost.\n\nGemini generation requests ask for image-only responses with `responseModalities: [\"IMAGE\"]`. Provider health checks still use a text-only request so they can verify host, key, model, and endpoint readiness without triggering image generation.\n\n## Configuration\n\nBy default PicGen reads and writes:\n\n```text\n~/.picgen/config.yaml\n```\n\nYou can override it for development:\n\n```bash\nPICGEN_CONFIG=/path/to/picgen.yaml npm run dev -- doctor\n```\n\nPicGen also loads `.env` from the current working directory:\n\n```text\nOPENAI_API_KEY=...\nGEMINI_API_KEY=...\n```\n\nFor non-technical users, `picgen setup` can save API keys for you in:\n\n```text\n~/.picgen/.env\n```\n\nPicGen loads this managed env file automatically. Shell environment variables take priority, and a project `.env` can override the managed file for local testing.\n\nEach provider should have its own `api_key_env` value. When adding another provider of the same type, PicGen assigns a new key name by default, such as `PICGEN_GEMINI_PROXY_2_KEY`, so multiple channels do not overwrite each other's API keys.\n\nOlder configs that reused the same `api_key_env` across multiple providers are migrated automatically when PicGen loads the config. PicGen keeps the first provider unchanged, assigns unique key names to the later providers, and copies the existing key value into the managed env file when the value is available.\n\nWhen agents inspect key configuration, they should use `picgen key list/show` so chat output only contains masked key status. To inspect or edit the full saved key directly, open `~/.picgen/.env`; a project `.env` in the current directory may override it, and shell environment variables take highest priority.\n\nYou can start from the included example:\n\n```bash\ncp .env.example .env\n```\n\nProvider `base_url` values should be host-only. Do not include `/v1` or `/v1beta`; PicGen adds protocol paths automatically.\n\nProviders may optionally set `test_model` in `~/.picgen/config.yaml` when health checks should use a lightweight model instead of the first generation model.\n\nGeneration requests use adaptive provider timeouts: fast draft requests allow 120s, balanced requests allow 180s, and high quality or large requests allow 300s. If a third-party channel is slower, override it with `PICGEN_PROVIDER_TIMEOUT_MS`:\n\n```bash\nPICGEN_PROVIDER_TIMEOUT_MS=450000 picgen create --yes --preset poster \"一张产品发布会主视觉\"\n```\n\nProviders expose capabilities such as `text-to-image`, `reference-image`, `multi-reference-image`, `mask-guided-edit`, and `native-inpaint`. Old configs that omit older capabilities are upgraded from the provider protocol when PicGen loads config. OpenAI-compatible providers support text generation plus image edits through `/v1/images/edits`; Gemini supports references and mask-guided edits through `generateContent`.\n\nGenerated image data and provider-only fields such as base64 image payloads and Gemini thought signatures are redacted from metadata. PicGen keeps the generated assets as local image files and keeps stdout compact for agent workflows.\n\n## Updates\n\nCheck npm for the latest PicGen version:\n\n```bash\npicgen update check\n```\n\n`picgen doctor` and `picgen quickstart` may show a lightweight update hint. PicGen caches update checks for 24 hours. Disable update checks with:\n\n```bash\nPICGEN_DISABLE_UPDATE_CHECK=1 picgen doctor\n```\n\n## Maintainer Release\n\nnpm publishing uses GitHub Actions with npm Trusted Publisher. Normal pushes to `main` do not publish; pushing a `v*` tag triggers `.github/workflows/publish.yml`.\n\n```bash\nnpm run typecheck\nnpm test\nnpm run build\nnpm pack --dry-run\nnpm version prerelease --preid=alpha\ngit push github main --follow-tags\n```\n","readmeFilename":"README.md"}