perp-cli 0.12.9 → 0.12.10
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/config.js +6 -5
- package/package.json +1 -1
- package/skills/perp-cli/SKILL.md +2 -2
package/dist/config.js
CHANGED
|
@@ -74,15 +74,16 @@ export async function loadPrivateKey(exchange, pkOverride, walletName) {
|
|
|
74
74
|
// settings module not available, skip
|
|
75
75
|
}
|
|
76
76
|
// 3. Exchange-specific env vars
|
|
77
|
-
// v0.12.4
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
//
|
|
77
|
+
// v0.12.4 retired the legacy HMAC ASTER_API_KEY/SECRET path.
|
|
78
|
+
// v0.12.6 restored Aster as a normal EVM exchange in EXCHANGE_ENV_MAP
|
|
79
|
+
// (setup wizard / wallet show), but missed this map — leaving Tier 3
|
|
80
|
+
// env-PK loading broken. v0.12.10 restores ASTER_PRIVATE_KEY here so
|
|
81
|
+
// `tryLoadPrivateKey("aster")` finds the env value, mirroring HL/LT.
|
|
81
82
|
const envMap = {
|
|
82
83
|
pacifica: ["PACIFICA_PRIVATE_KEY", "pk"],
|
|
83
84
|
hyperliquid: ["HYPERLIQUID_PRIVATE_KEY", "HL_PRIVATE_KEY"],
|
|
84
85
|
lighter: ["LIGHTER_PRIVATE_KEY"],
|
|
85
|
-
aster: [],
|
|
86
|
+
aster: ["ASTER_PRIVATE_KEY"],
|
|
86
87
|
};
|
|
87
88
|
for (const envVar of envMap[exchange]) {
|
|
88
89
|
if (process.env[envVar])
|
package/package.json
CHANGED
package/skills/perp-cli/SKILL.md
CHANGED
|
@@ -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.12.
|
|
8
|
+
version: "0.12.10"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# perp-cli Agent Guide
|
|
@@ -41,7 +41,7 @@ Multi-DEX perpetual futures CLI + MCP server — Pacifica (Solana), Hyperliquid
|
|
|
41
41
|
## Install
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
perp --version 2>/dev/null # check if exists (must be >= 0.12.
|
|
44
|
+
perp --version 2>/dev/null # check if exists (must be >= 0.12.10)
|
|
45
45
|
npm install -g perp-cli@latest 2>/dev/null || npx -y perp-cli@latest --json --version
|
|
46
46
|
```
|
|
47
47
|
|