@heyamiko/amiko-cli 0.5.5 → 0.5.6
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75249,7 +75249,7 @@ function registerCreditsCommand(program2) {
|
|
|
75249
75249
|
const spinner2 = ora("Fetching credit balance...").start();
|
|
75250
75250
|
try {
|
|
75251
75251
|
let balance = null;
|
|
75252
|
-
const billingToken = auth.platformKey || auth.privyToken;
|
|
75252
|
+
const billingToken = auth.platformKey || auth.twinToken || auth.privyToken;
|
|
75253
75253
|
const base2 = auth.billingBase || "https://billing.heyamiko.com";
|
|
75254
75254
|
if (billingToken) {
|
|
75255
75255
|
try {
|
|
@@ -75286,7 +75286,7 @@ function registerCreditsCommand(program2) {
|
|
|
75286
75286
|
const agentWallets = (auth.agentWallets || []).filter((w5) => w5.source === "agent");
|
|
75287
75287
|
if (agentWallets.length > 0 && auth.billingBase) {
|
|
75288
75288
|
const spinner3 = ora("Fetching wallet balances...").start();
|
|
75289
|
-
const billingAuth = auth.platformKey || auth.privyToken;
|
|
75289
|
+
const billingAuth = auth.platformKey || auth.twinToken || auth.privyToken;
|
|
75290
75290
|
try {
|
|
75291
75291
|
spinner3.stop();
|
|
75292
75292
|
console.log(label("Agent Wallets", ""));
|
|
@@ -75356,7 +75356,7 @@ function registerCreditsCommand(program2) {
|
|
|
75356
75356
|
console.error(error("Billing service not configured. Run: amiko connect"));
|
|
75357
75357
|
process.exit(1);
|
|
75358
75358
|
}
|
|
75359
|
-
const authToken = auth.platformKey || auth.privyToken;
|
|
75359
|
+
const authToken = auth.platformKey || auth.twinToken || auth.privyToken;
|
|
75360
75360
|
if (!authToken) {
|
|
75361
75361
|
spinner.stop();
|
|
75362
75362
|
console.error(error("No API key or auth token. Run: amiko connect"));
|