@heyamiko/amiko-cli 0.5.2 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -75133,6 +75133,17 @@ function resolveAuth(cliConfig) {
75133
75133
  userId: cliConfig.userId
75134
75134
  };
75135
75135
  }
75136
+ const envToken = process.env.AMIKO_USER_TOKEN;
75137
+ if (envToken) {
75138
+ return {
75139
+ mode: "agent",
75140
+ twinId: process.env.AMIKO_TWIN_ID,
75141
+ twinToken: envToken,
75142
+ userId: process.env.AMIKO_USER_ID,
75143
+ billingBase: process.env.API_SERVICE_URL || process.env.BILLING_BASE,
75144
+ platformUrl: process.env.AMIKO_PLATFORM_URL
75145
+ };
75146
+ }
75136
75147
  const agentConfig = loadAgentConfig();
75137
75148
  if (agentConfig?.twinToken) {
75138
75149
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyamiko/amiko-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Amiko CLI — swap tokens, manage credits, bridge cross-chain, and call marketplace agents",
5
5
  "type": "module",
6
6
  "bin": {