@heyamiko/amiko-cli 0.14.0-beta.1 → 0.14.0-beta.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 +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28644,7 +28644,9 @@ function printCompleted(final, title) {
|
|
|
28644
28644
|
console.log(label("Type", final.assetMime));
|
|
28645
28645
|
console.log("");
|
|
28646
28646
|
if (final.charged) {
|
|
28647
|
-
|
|
28647
|
+
const amt = final.chargeAmount ?? final.costAmiko ?? "?";
|
|
28648
|
+
const tok = final.chargeToken ?? "AMIKO";
|
|
28649
|
+
console.log(success(`Charged ${amt} ${tok}`) + (final.chargeTx ? dim(` tx: ${final.chargeTx.slice(0, 16)}…`) : ""));
|
|
28648
28650
|
} else {
|
|
28649
28651
|
console.log(dim("Not charged (settlement pending or waived)."));
|
|
28650
28652
|
}
|
|
@@ -28715,7 +28717,7 @@ async function submitCreateJob(opts) {
|
|
|
28715
28717
|
console.log(dim(`Usually ready in ${ETA[opts.mode]} — charged only on success. (Also: amiko create media)`));
|
|
28716
28718
|
}
|
|
28717
28719
|
function registerCreateCommand(create2) {
|
|
28718
|
-
create2.command("image <prompt>").description("Generate an image (Create Studio)").option("--model <model>", "Image model", "gpt-image-2").option("--aspect <ratio>", "Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4", "1:1").option("--token <symbol>", "Preferred charge token: AMIKO, USDC, USDT, SOL").option("--raw", "Output raw JSON").option("--yes", "Skip the pre-spend confirmation (required in non-interactive shells)").action(async (prompt, opts) => {
|
|
28720
|
+
create2.command("image <prompt>").description("Generate an image (Create Studio)").option("--model <model>", "Image model: gpt-image-2 (default), gpt-image-1.5/1/1-mini, nano-banana[-pro|-2|-lite] (Google), grok-imagine-image-quality (xAI), image-01 (MiniMax)", "gpt-image-2").option("--aspect <ratio>", "Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4", "1:1").option("--token <symbol>", "Preferred charge token: AMIKO, USDC, USDT, SOL").option("--raw", "Output raw JSON").option("--yes", "Skip the pre-spend confirmation (required in non-interactive shells)").action(async (prompt, opts) => {
|
|
28719
28721
|
await submitCreateJob({
|
|
28720
28722
|
mode: "IMAGE",
|
|
28721
28723
|
summary: `Create image: ${prompt.slice(0, 80)}${prompt.length > 80 ? "…" : ""}`,
|