@heyamiko/amiko-cli 0.6.2 → 0.6.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 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75932,7 +75932,7 @@ function registerSearchCommand(program2) {
|
|
|
75932
75932
|
// src/commands/image.ts
|
|
75933
75933
|
var TREASURY2 = "FPiZAf3jEnNfCwfvbv46jdPfHbmSepD4Q6iHiLJDQXvb";
|
|
75934
75934
|
function registerImageCommand(program2) {
|
|
75935
|
-
program2.command("image <prompt>").alias("img").description("Generate an image with DALL-E — costs
|
|
75935
|
+
program2.command("image <prompt>").alias("img").description("Generate an image with DALL-E — costs 5 AMIKO").option("--size <size>", "Image size: 1024x1024, 1024x1792, 1792x1024", "1024x1024").option("--quality <q>", "Quality: standard or hd", "standard").option("--model <model>", "Model: dall-e-3 or dall-e-2", "dall-e-3").option("--raw", "Output raw JSON").action(async (prompt2, opts) => {
|
|
75936
75936
|
const spinner = ora("Generating image...").start();
|
|
75937
75937
|
try {
|
|
75938
75938
|
const config2 = loadConfig();
|
|
@@ -75952,7 +75952,7 @@ function registerImageCommand(program2) {
|
|
|
75952
75952
|
console.error(error("No Solana wallet for AMIKO payment."));
|
|
75953
75953
|
process.exit(1);
|
|
75954
75954
|
}
|
|
75955
|
-
spinner.text = "Paying
|
|
75955
|
+
spinner.text = "Paying 5 AMIKO...";
|
|
75956
75956
|
const transferRes = await fetch(`${billingBase2}/api/crossmint/wallets/${encodeURIComponent(solanaWallet)}/transfer`, {
|
|
75957
75957
|
method: "POST",
|
|
75958
75958
|
headers: {
|
|
@@ -75961,7 +75961,7 @@ function registerImageCommand(program2) {
|
|
|
75961
75961
|
},
|
|
75962
75962
|
body: JSON.stringify({
|
|
75963
75963
|
to: TREASURY2,
|
|
75964
|
-
amount: "
|
|
75964
|
+
amount: "5",
|
|
75965
75965
|
token: "AMIKO",
|
|
75966
75966
|
chain: "solana"
|
|
75967
75967
|
})
|
|
@@ -76021,7 +76021,7 @@ function registerImageCommand(program2) {
|
|
|
76021
76021
|
}
|
|
76022
76022
|
}
|
|
76023
76023
|
console.log("");
|
|
76024
|
-
console.log(success("Paid
|
|
76024
|
+
console.log(success("Paid 5 AMIKO") + dim(` tx: ${txHash.slice(0, 16)}...`));
|
|
76025
76025
|
} catch (err) {
|
|
76026
76026
|
spinner.stop();
|
|
76027
76027
|
console.error(error(err instanceof Error ? err.message : "Image generation failed"));
|