@todoforai/image-api 2.2.2 → 2.2.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/dist/index.js +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2126,6 +2126,26 @@ var require_commander = __commonJS((exports) => {
|
|
|
2126
2126
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
2127
2127
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
2128
2128
|
});
|
|
2129
|
+
// package.json
|
|
2130
|
+
var package_default = {
|
|
2131
|
+
name: "@todoforai/image-api",
|
|
2132
|
+
version: "2.2.3",
|
|
2133
|
+
description: "AI image generation and editing through TODOforAI (gpt-image)",
|
|
2134
|
+
type: "module",
|
|
2135
|
+
bin: {
|
|
2136
|
+
"tfa-imagegen": "dist/index.js"
|
|
2137
|
+
},
|
|
2138
|
+
dependencies: {
|
|
2139
|
+
commander: "^14.0.3"
|
|
2140
|
+
},
|
|
2141
|
+
files: [
|
|
2142
|
+
"dist"
|
|
2143
|
+
],
|
|
2144
|
+
scripts: {
|
|
2145
|
+
build: "bun build src/index.ts --outdir dist --target node --format esm && sed -i '' -e '1s|#!/usr/bin/env bun|#!/usr/bin/env node|' dist/index.js 2>/dev/null || sed -i '1s|#!/usr/bin/env bun|#!/usr/bin/env node|' dist/index.js",
|
|
2146
|
+
prepublishOnly: "bun run build"
|
|
2147
|
+
}
|
|
2148
|
+
};
|
|
2129
2149
|
|
|
2130
2150
|
// ../node_modules/.bun/commander@14.0.3/node_modules/commander/esm.mjs
|
|
2131
2151
|
var import__ = __toESM(require_commander(), 1);
|
|
@@ -2287,7 +2307,7 @@ var editCommand = new Command2("edit").description(`Edit one or more images via
|
|
|
2287
2307
|
|
|
2288
2308
|
// src/index.ts
|
|
2289
2309
|
program.name("tfa-imagegen").description(`Image generation & editing CLI via TODOFORAI backend.
|
|
2290
|
-
` + "Models (--model): nano-banana (default, $0.02, general), gpt-image-2 (best for infographics/text-heavy), nano-banana-pro ($0.15, complex composition). Also: nano-banana-lite ($0.04, fastest, 1K only).").version(
|
|
2310
|
+
` + "Models (--model): nano-banana (default, $0.02, general), gpt-image-2 (best for infographics/text-heavy), nano-banana-pro ($0.15, complex composition). Also: nano-banana-lite ($0.04, fastest, 1K only).").version(package_default.version);
|
|
2291
2311
|
program.addCommand(generateCommand);
|
|
2292
2312
|
program.addCommand(editCommand);
|
|
2293
2313
|
program.parse();
|