@hyperflow.fun/ghost 0.0.1 → 0.0.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 (31) hide show
  1. package/README.md +82 -43
  2. package/dist/index.js +15748 -15788
  3. package/dist/package.json +1 -1
  4. package/dist/skills/builtin/event-judge/SKILL.md +1 -1
  5. package/dist/web/dist/assets/{Chart-DwirCj9o.js → Chart-BOyhyITw.js} +1 -1
  6. package/dist/web/dist/assets/{Config-Csnvaqpn.js → Config-CQyc8yqV.js} +1 -1
  7. package/dist/web/dist/assets/{Cost-BSD_2GYX.js → Cost-BoAvnlDi.js} +1 -1
  8. package/dist/web/dist/assets/{Cron-BVKdKUFN.js → Cron-5mIZVsft.js} +1 -1
  9. package/dist/web/dist/assets/{Dashboard-Ccr5J95V.js → Dashboard-BRxSDtCD.js} +1 -1
  10. package/dist/web/dist/assets/{Logs-CUgA7IGb.js → Logs-BpXqElSx.js} +1 -1
  11. package/dist/web/dist/assets/{Memory-C_Q_iNlN.js → Memory-CcgSgCqJ.js} +1 -1
  12. package/dist/web/dist/assets/{Sessions-KDhnYDnX.js → Sessions-BEIP55fW.js} +1 -1
  13. package/dist/web/dist/assets/{Skills-BK-V7HFa.js → Skills-4s4LDpzh.js} +1 -1
  14. package/dist/web/dist/assets/{Tools-a3aqqugu.js → Tools-C-NcyONi.js} +1 -1
  15. package/dist/web/dist/assets/{activity-DsxRdk-G.js → activity-DJy9m_N9.js} +1 -1
  16. package/dist/web/dist/assets/{clock-DCbfDkWu.js → clock-CFVWqojO.js} +1 -1
  17. package/dist/web/dist/assets/{highlighted-body-OFNGDK62-C8yP3qbm.js → highlighted-body-OFNGDK62-y5VVuvTf.js} +1 -1
  18. package/dist/web/dist/assets/index-B1ED3P_d.css +1 -0
  19. package/dist/web/dist/assets/index-C6QRLmO2.js +54 -0
  20. package/dist/web/dist/assets/{mermaid-GHXKKRXX-CbzD1Jp7.js → mermaid-GHXKKRXX-BvdvTI5r.js} +3 -3
  21. package/dist/web/dist/assets/{refresh-cw-B9ZNJZIb.js → refresh-cw-DlbQ5OE4.js} +1 -1
  22. package/dist/web/dist/assets/rethink-sans-latin-ext-CuoiHPIp.woff2 +0 -0
  23. package/dist/web/dist/assets/rethink-sans-latin-v3CgWhBT.woff2 +0 -0
  24. package/dist/web/dist/index.html +2 -2
  25. package/package.json +1 -1
  26. package/dist/web/dist/assets/SF-Pro-Display-Bold-CkqE-6tD.otf +0 -0
  27. package/dist/web/dist/assets/SF-Pro-Display-Medium-DSttQARu.otf +0 -0
  28. package/dist/web/dist/assets/SF-Pro-Display-Regular-DF_3XEGl.otf +0 -0
  29. package/dist/web/dist/assets/SF-Pro-Display-Semibold-Dg2-djaL.otf +0 -0
  30. package/dist/web/dist/assets/index-3q7g734D.js +0 -54
  31. package/dist/web/dist/assets/index-DRvGorcf.css +0 -1
package/README.md CHANGED
@@ -13,30 +13,69 @@ AI companion for Hyperliquid perpetual contract traders. Not a dashboard. Not a
13
13
 
14
14
  ## Quick Start
15
15
 
16
- Ghost is in early access — install by cloning the repository:
16
+ Requires **[Bun](https://bun.sh) >= 1.1**:
17
17
 
18
18
  ```bash
19
- git clone https://github.com/hyperflowdotfun/ghost.git
20
- cd ghost
21
- bun install
22
- cd web && bun install && cd ..
23
- bun run dev onboard # Setup wizard (one-time)
24
- bun run dev # Build web + start gateway (port 15401)
19
+ # Install Bun (if you don't have it)
20
+ curl -fsSL https://bun.sh/install | bash # macOS / Linux
21
+ powershell -c "irm bun.sh/install.ps1 | iex" # Windows
25
22
  ```
26
23
 
27
- ### Commands
24
+ **1. Install Ghost**
28
25
 
29
26
  ```bash
30
- bun run dev daemon # Start Ghost
31
- bun run dev daemon --paper # Paper trading (simulated, 10k USDC)
32
- bun run dev daemon --paper -b 50000 # Paper mode with custom balance
33
- bun run dev status # Config summary
34
- bun run dev doctor # Full diagnostic
27
+ bun install -g @hyperflow.fun/ghost
35
28
  ```
36
29
 
37
- ### LLM Providers
30
+ **2. Onboard**
38
31
 
39
- OpenRouter, Anthropic (API), Claude Code, OpenAI, Google Gemini, or any custom OpenAI-compatible endpoint.
32
+ ```bash
33
+ ghost onboard
34
+ ```
35
+
36
+ You'll be asked to pick:
37
+
38
+ - **Trading Mode** — Paper (virtual funds, no wallet) or Live (real trades on Hyperliquid)
39
+ - **LLM Model** — Claude Code, Anthropic, OpenAI, Gemini, OpenRouter, or a custom endpoint
40
+ - **Install Ghost service** — Select **Yes** to keep Ghost running in the background
41
+
42
+ > **Paper trading?** Pick **Paper** during onboard for a simulated 10,000 USDC
43
+ > balance — no wallet, no real trades. Set a custom balance with
44
+ > `ghost daemon --paper -b 50000`.
45
+
46
+ **3. Open the dashboard**
47
+
48
+ Visit **http://localhost:15401** and start trading.
49
+
50
+ ## Commands
51
+
52
+ ```bash
53
+ ghost daemon # Start Ghost in the foreground
54
+ ghost status # Show config and auth summary
55
+ ghost doctor # Full diagnostic
56
+ ghost update # Check for a new version and reinstall in place
57
+ ghost uninstall # Remove service + ~/.ghost
58
+ ```
59
+
60
+ See the [User Guide](USER_GUIDE.md) for the full reference.
61
+
62
+ ## Telegram (optional)
63
+
64
+ Chat with Ghost from Telegram instead of (or alongside) the dashboard.
65
+
66
+ **From the dashboard** — click the **Telegram icon** in the top bar and follow
67
+ the in-app steps. Most users only need this.
68
+
69
+ **From the CLI** — same flow, scripted:
70
+
71
+ ```bash
72
+ ghost channel setup # Create the bot + bind it to your account
73
+ ghost channel pair # Pair another device to the same channel
74
+ ghost channel status # Show channel + pairing state
75
+ ```
76
+
77
+ Once connected, Ghost mirrors trade prompts, alerts, and confirmations to
78
+ Telegram.
40
79
 
41
80
  ## Documentation
42
81
 
@@ -45,43 +84,43 @@ OpenRouter, Anthropic (API), Claude Code, OpenAI, Google Gemini, or any custom O
45
84
  | [User Guide](USER_GUIDE.md) | Install, setup, daily commands, update, uninstall, troubleshooting |
46
85
  | [Install & Onboard Guide](INSTALL_GUIDE.md) | Step-by-step onboard flow for AI agents |
47
86
  | [Developer Guide](CLAUDE.md) | Architecture, tech stack, conventions, development pipeline |
48
- | [Product Vision](PRODUCT_VISION.md) | Market research, product vision, roadmap |
49
- | [Features](FEATURES.md) | 22 features across 4 pillars |
50
- | [Personas](PERSONAS.md) | Trader personas and emotion-response framework |
51
- | [Journeys](JOURNEYS.md) | Journey narratives — Ghost in action for each persona |
52
-
53
- ## Tech Stack
54
-
55
- Bun + TypeScript, pi-agent-core + pi-ai, ElysiaJS, @nktkas/hyperliquid, grammY, React + Vite + Tailwind.
56
87
 
57
88
  ## Data Storage
58
89
 
59
- All data stored in `~/.ghost/` (config, credentials, database, memory, sessions).
90
+ All data stored in `~/.ghost/` (config, credentials, database, memory, sessions). Nothing leaves your machine.
60
91
 
61
- ## Uninstall
92
+ ## Notes
62
93
 
63
- Delete the repository and optionally your data:
64
-
65
- ```bash
66
- # macOS / Linux
67
- rm -rf ghost # Delete the clone
68
- rm -rf ~/.ghost # Delete all Ghost data (optional)
69
-
70
- # Windows (PowerShell)
71
- Remove-Item -Recurse -Force ghost # Delete the clone
72
- Remove-Item -Recurse -Force ~/.ghost # Delete all Ghost data (optional)
73
- ```
74
-
75
- See [User Guide](USER_GUIDE.md#uninstall) for details.
94
+ - Ghost does not yet support switching between Paper and Live mode. To switch, uninstall and reinstall.
95
+ - If you installed an earlier version, uninstall first — this release contains breaking changes:
96
+ ```bash
97
+ ghost uninstall
98
+ bun remove -g @hyperflow.fun/ghost
99
+ ```
76
100
 
77
101
  ## Security
78
102
 
79
103
  The Ghost gateway has no built-in authentication layer. By default it binds to
80
- `0.0.0.0:15401`, which is convenient for local use but requires external
81
- hardening before exposing the port to the internet. Options include Cloudflare
82
- Tunnel + Access, Tailscale Serve, or ngrok OAuth. Alternatively, set
83
- `gateway.host=127.0.0.1` in `~/.ghost/config.json` to restrict access to
84
- localhost only.
104
+ loopback only (`gateway.host=127.0.0.1`), so the dashboard is reachable from
105
+ the same machine but invisible to the network safe to leave as-is for local
106
+ use.
107
+
108
+ To expose Ghost over the network (LAN, VPS, public IP), opt in explicitly by
109
+ setting **both** in `~/.ghost/config.json`:
110
+
111
+ ```jsonc
112
+ {
113
+ "gateway": {
114
+ "host": "0.0.0.0",
115
+ "allowPublicBind": true
116
+ }
117
+ }
118
+ ```
119
+
120
+ The daemon refuses to start with a non-loopback host unless
121
+ `allowPublicBind=true`, so accidental exposure can't happen. Before flipping
122
+ the flag, harden access externally — Cloudflare Tunnel + Access, Tailscale
123
+ Serve, or ngrok OAuth are the recommended options.
85
124
 
86
125
  See [docs/security/network-exposure.md](docs/security/network-exposure.md) for
87
126
  detailed recipes and what to avoid.