zoa-wallet 0.3.6 → 0.3.7

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/README.md CHANGED
@@ -42,7 +42,7 @@ zoa chains
42
42
  zoa prices
43
43
 
44
44
  # Link wallet to Agenteur (or other apps)
45
- zoa link agenteur --api-key <YOUR_API_KEY>
45
+ zoa link agenteur <YOUR_API_KEY>
46
46
  ```
47
47
 
48
48
  ## Command Reference
@@ -177,17 +177,24 @@ zoa api remove
177
177
  Connect your ZOA wallet to external apps like Agenteur using EIP-191 signed proof of ownership.
178
178
 
179
179
  ```bash
180
- # Link to Agenteur (interactive prompts for API key and password)
180
+ # Link to Agenteur — pass API key directly
181
+ zoa link agenteur ak_your_key_here
182
+
183
+ # Interactive (prompts for API key and password)
181
184
  zoa link agenteur
182
185
 
183
- # Non-interactive with all flags
186
+ # Fully non-interactive
187
+ zoa link agenteur ak_your_key_here --password mypassword
188
+
189
+ # Or with --api-key flag
184
190
  zoa link agenteur --api-key ak_your_key_here --password mypassword
185
191
  ```
186
192
 
187
- | Flag | Description |
193
+ | Argument / Flag | Description |
188
194
  |------|-------------|
189
195
  | `<app>` | App name to link to (currently: `agenteur`) |
190
- | `--api-key <key>` | API key from the target app's dashboard |
196
+ | `[api-key]` | API key as a positional argument (simplest) |
197
+ | `--api-key <key>` | API key via flag (alternative) |
191
198
  | `--password <pw>` | Wallet password (skip prompt) |
192
199
 
193
200
  **How it works:**
@@ -219,7 +226,7 @@ zoa config set <key> <value>
219
226
  | Send SOL on Solana | `zoa send --chain solana --to ABC... --amount 1.5 --password pw --yes` |
220
227
  | Check balance (Base only) | `zoa balance --chain base --password pw` |
221
228
  | Export EVM private key | `zoa export --type key --chain evm --password pw` |
222
- | Link to Agenteur | `zoa link agenteur --api-key ak_... --password pw` |
229
+ | Link to Agenteur | `zoa link agenteur ak_... --password pw` |
223
230
  | Get JSON balances | `zoa --json balance --password pw` |
224
231
  | Get JSON prices | `zoa --json prices --tokens "ethereum,solana"` |
225
232
 
@@ -320,7 +327,7 @@ zoa --json send --batch "0xA:0.01,0xB:0.02" --chain base --password pw --yes
320
327
 
321
328
  **Link wallet:**
322
329
  ```bash
323
- zoa --json link agenteur --api-key ak_your_key --password pw
330
+ zoa --json link agenteur ak_your_key --password pw
324
331
  ```
325
332
  ```json
326
333
  {
package/dist/index.mjs CHANGED
@@ -49816,14 +49816,16 @@ var APP_ENDPOINTS = {
49816
49816
  agenteur: "https://agenteur.xyz/api/v1/wallet/link"
49817
49817
  };
49818
49818
  function registerLinkCommand(program2) {
49819
- program2.command("link <app>").description("Link your ZOA wallet to an external app").option("--api-key <key>", "API key for the target app").option("--password <password>", "Wallet password (non-interactive)").action(async (app, opts) => {
49819
+ program2.command("link <app> [api-key]").description("Link your ZOA wallet to an external app").option("--api-key <key>", "API key for the target app").option("--password <password>", "Wallet password (non-interactive)").action(async (app, positionalKey, opts) => {
49820
49820
  try {
49821
49821
  const appName = app.toLowerCase();
49822
49822
  if (!SUPPORTED_APPS.includes(appName)) {
49823
49823
  throw new Error(`Unsupported app: "${app}". Supported apps: ${SUPPORTED_APPS.join(", ")}`);
49824
49824
  }
49825
49825
  let apiKey;
49826
- if (opts.apiKey) {
49826
+ if (positionalKey) {
49827
+ apiKey = positionalKey;
49828
+ } else if (opts.apiKey) {
49827
49829
  apiKey = opts.apiKey;
49828
49830
  } else {
49829
49831
  const config2 = await loadConfig();
@@ -51234,7 +51236,7 @@ program.hook("preAction", async (_thisCommand, actionCommand) => {
51234
51236
  }
51235
51237
  }
51236
51238
  });
51237
- program.name("zoa").description("ZOA Wallet \u2014 API-First Crypto Wallet for Power-traders, Developers, & AI Agents").version("0.3.6");
51239
+ program.name("zoa").description("ZOA Wallet \u2014 API-First Crypto Wallet for Power-traders, Developers, & AI Agents").version("0.3.7");
51238
51240
  registerWalletCommand(program);
51239
51241
  registerBalanceCommand(program);
51240
51242
  registerSendCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zoa-wallet",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "API-First Crypto Wallet CLI for Power-traders, Developers, & AI Agents. Manage multi-chain wallets from your terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",