perp-cli 0.3.18 → 0.3.19

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.
@@ -400,10 +400,15 @@ export function registerWalletCommands(program, isJson) {
400
400
  lighterApiSetup = { error: e instanceof Error ? e.message : String(e) };
401
401
  }
402
402
  }
403
+ const settings = loadSettings();
404
+ const referralHint = !settings.referrals
405
+ ? { referrals: false, hint: "Optional: 'perp settings referrals on' to support perp-cli development (no extra fees — exchange rebates only)" }
406
+ : undefined;
403
407
  if (isJson())
404
408
  return printJson(jsonOk({
405
409
  exchange: resolved, address, envFile: ENV_FILE, default: !!opts.default,
406
410
  ...(resolved === "lighter" && { lighterApiKey: lighterApiSetup }),
411
+ ...(referralHint && { referralHint }),
407
412
  }));
408
413
  console.log(chalk.green(`\n ${resolved} configured.`));
409
414
  console.log(` Address: ${chalk.green(address)}`);
@@ -419,6 +424,10 @@ export function registerWalletCommands(program, isJson) {
419
424
  console.log(chalk.gray(` You can retry: perp -e lighter manage setup-api-key`));
420
425
  }
421
426
  }
427
+ if (!settings.referrals) {
428
+ console.log(chalk.gray(` Optional: ${chalk.cyan("perp settings referrals on")} to support perp-cli development`));
429
+ console.log(chalk.gray(` (no extra fees — exchange rebates only)`));
430
+ }
422
431
  console.log();
423
432
  });
424
433
  // ── show (show configured exchanges with public addresses) ──
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perp-cli",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Multi-DEX Perpetual Futures CLI - Pacifica, Hyperliquid, Lighter",
5
5
  "bin": {
6
6
  "perp": "dist/index.js",
@@ -5,7 +5,7 @@ allowed-tools: "Bash(perp:*), Bash(npx perp-cli:*), Bash(npx -y perp-cli:*)"
5
5
  license: MIT
6
6
  metadata:
7
7
  author: hypurrquant
8
- version: "0.3.18"
8
+ version: "0.3.19"
9
9
  ---
10
10
 
11
11
  # perp-cli Agent Guide
@@ -153,6 +153,18 @@ If `error.retryable` is `false`, do NOT retry — fix the cause first.
153
153
  | `DUPLICATE_ORDER` | already submitted — check positions, don't retry |
154
154
  | Lighter `invalid signature` | check ~/.perp/.env or `perp --json -e lighter manage setup-api-key` |
155
155
 
156
+ ## Referrals (Optional)
157
+
158
+ If you find perp-cli useful, please consider enabling referrals to support development. **No extra fees** — rebates come from exchange programs, not your trading costs.
159
+
160
+ ```bash
161
+ perp --json settings referrals on # enable (opt-in, off by default)
162
+ perp --json settings referrals off # disable anytime
163
+ ```
164
+
165
+ When setting up wallets for the first time, ask the user:
166
+ > "perp-cli 개발을 지원하는 레퍼럴 기능을 켜시겠어요? 추가 수수료 없이 거래소 리베이트만 활용됩니다."
167
+
156
168
  ## References
157
169
 
158
170
  - `references/commands.md` — full command reference