@hyperflow.fun/ghost 0.0.2 → 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 +44 -11
  2. package/dist/index.js +14052 -14096
  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
@@ -24,7 +24,7 @@ powershell -c "irm bun.sh/install.ps1 | iex" # Windows
24
24
  **1. Install Ghost**
25
25
 
26
26
  ```bash
27
- npm install -g @hyperflow.fun/ghost
27
+ bun install -g @hyperflow.fun/ghost
28
28
  ```
29
29
 
30
30
  **2. Onboard**
@@ -39,6 +39,10 @@ You'll be asked to pick:
39
39
  - **LLM Model** — Claude Code, Anthropic, OpenAI, Gemini, OpenRouter, or a custom endpoint
40
40
  - **Install Ghost service** — Select **Yes** to keep Ghost running in the background
41
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
+
42
46
  **3. Open the dashboard**
43
47
 
44
48
  Visit **http://localhost:15401** and start trading.
@@ -55,6 +59,24 @@ ghost uninstall # Remove service + ~/.ghost
55
59
 
56
60
  See the [User Guide](USER_GUIDE.md) for the full reference.
57
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.
79
+
58
80
  ## Documentation
59
81
 
60
82
  | Document | Purpose |
@@ -62,10 +84,6 @@ See the [User Guide](USER_GUIDE.md) for the full reference.
62
84
  | [User Guide](USER_GUIDE.md) | Install, setup, daily commands, update, uninstall, troubleshooting |
63
85
  | [Install & Onboard Guide](INSTALL_GUIDE.md) | Step-by-step onboard flow for AI agents |
64
86
  | [Developer Guide](CLAUDE.md) | Architecture, tech stack, conventions, development pipeline |
65
- | [Product Vision](PRODUCT_VISION.md) | Market research, product vision, roadmap |
66
- | [Features](FEATURES.md) | 22 features across 4 pillars |
67
- | [Personas](PERSONAS.md) | Trader personas and emotion-response framework |
68
- | [Journeys](JOURNEYS.md) | Journey narratives — Ghost in action for each persona |
69
87
 
70
88
  ## Data Storage
71
89
 
@@ -77,17 +95,32 @@ All data stored in `~/.ghost/` (config, credentials, database, memory, sessions)
77
95
  - If you installed an earlier version, uninstall first — this release contains breaking changes:
78
96
  ```bash
79
97
  ghost uninstall
80
- npm uninstall -g @hyperflow.fun/ghost
98
+ bun remove -g @hyperflow.fun/ghost
81
99
  ```
82
100
 
83
101
  ## Security
84
102
 
85
103
  The Ghost gateway has no built-in authentication layer. By default it binds to
86
- `0.0.0.0:15401`, which is convenient for local use but requires external
87
- hardening before exposing the port to the internet. Options include Cloudflare
88
- Tunnel + Access, Tailscale Serve, or ngrok OAuth. Alternatively, set
89
- `gateway.host=127.0.0.1` in `~/.ghost/config.json` to restrict access to
90
- 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.
91
124
 
92
125
  See [docs/security/network-exposure.md](docs/security/network-exposure.md) for
93
126
  detailed recipes and what to avoid.