@hedge-layer/cli 1.6.0 → 1.8.0

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
@@ -16,6 +16,33 @@ npm install -g @hedge-layer/cli
16
16
 
17
17
  Requires Node.js 22 or later.
18
18
 
19
+ ### Install troubleshooting
20
+
21
+ - **`EACCES` / "operation was rejected by your operating system"** on `npm install -g`:
22
+ your npm prefix points at a root-owned directory (e.g. `/usr/lib/node_modules`) and you
23
+ don't have `sudo`. Install into a user-writable prefix instead:
24
+
25
+ ```bash
26
+ mkdir -p "$HOME/.npm-global"
27
+ npm config set prefix "$HOME/.npm-global"
28
+ export PATH="$HOME/.npm-global/bin:$PATH" # add to your shell rc to persist
29
+ npm install -g @hedge-layer/cli
30
+ ```
31
+
32
+ - **`nvm` warns `npmrc ... globalconfig and/or prefix setting ... incompatible with nvm`:**
33
+ this is harmless shell-init noise from `nvm` (not from `hl`) that appears after setting a
34
+ custom npm prefix as above — the CLI still works. To avoid it entirely under `nvm`, install
35
+ without a custom prefix (nvm's per-version `bin/` is already user-writable):
36
+
37
+ ```bash
38
+ npm config delete prefix
39
+ npm config delete globalconfig
40
+ nvm use --delete-prefix "$(node -v)" --silent
41
+ npm install -g @hedge-layer/cli
42
+ ```
43
+
44
+ Alternatively, skip the global install and run on demand with `npx @hedge-layer/cli <command>`.
45
+
19
46
  ## Quick Start
20
47
 
21
48
  ```bash
@@ -28,6 +55,17 @@ hl brief "US China trade war tariffs"
28
55
 
29
56
  # 4. Or start an interactive research session
30
57
  hl research
58
+
59
+ # 5. Run the persisted liquidity-provider loop
60
+ hl lp scan "liquidity opportunities"
61
+ hl lp recommend --scan-id <scan-id>
62
+ hl lp evaluate
63
+
64
+ # 6. Check linked wallet funds
65
+ hl wallet balances
66
+
67
+ # 7. Analyze a market probability edge
68
+ hl signal analyze "https://polymarket.com/event/example-market"
31
69
  ```
32
70
 
33
71
  ## Commands
@@ -35,6 +73,43 @@ hl research
35
73
  Full command documentation is available at
36
74
  [hedgelayer.ai/docs/cli](https://hedgelayer.ai/docs/cli).
37
75
 
76
+ Liquidity-provider workflows are available under `hl lp`:
77
+
78
+ ```bash
79
+ hl lp scan "liquidity opportunities" # persist candidate evidence
80
+ hl lp recommend --scan-id <scan-id> # recommend allocate/reduce/exit actions
81
+ hl lp evaluate # summarize PnL lessons
82
+ hl lp run # run the dry-run chain
83
+ ```
84
+
85
+ Wallet commands are available under `hl wallet`:
86
+
87
+ ```bash
88
+ hl wallet status # show linked owner and Polymarket deposit wallet status
89
+ hl wallet balances # show available pUSD, USDC.e, and POL
90
+ hl wallet funds # alias for balances
91
+ hl wallet deposit # show public Polygon deposit address and assets
92
+ hl wallet deposit --bridge # also show Polymarket Bridge deposit addresses
93
+ hl wallet withdraw --asset pUSD --amount 10 --to 0x...
94
+ ```
95
+
96
+ `hl wallet withdraw` creates a withdrawal intent, opens the browser signing page,
97
+ and polls until the deposit-wallet transfer succeeds, fails, or times out.
98
+ The CLI token never receives wallet signing power.
99
+
100
+ Withdrawals currently send `pUSD` from the linked Polymarket deposit wallet on Polygon.
101
+ Keep a small `POL` balance in the owner wallet for Polygon gas; without native
102
+ `POL`, the browser-signed transfer can fail even when the deposit wallet has
103
+ enough `pUSD`.
104
+
105
+ Signal-agent analysis is available under `hl signal`:
106
+
107
+ ```bash
108
+ hl signal analyze "https://polymarket.com/event/example-market"
109
+ hl signal analyze "https://polymarket.com/event/example-market" --context "Recent search notes"
110
+ hl --json signal analyze "https://polymarket.com/event/example-market" | jq '.result.analysis'
111
+ ```
112
+
38
113
  ## Changelog
39
114
 
40
115
  See [CHANGELOG.md](CHANGELOG.md) for release history.