@astranova-live/cli 0.2.7 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +19 -2
  2. package/dist/astra.js +1492 -1081
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -76,6 +76,8 @@ On first run, the onboarding wizard walks you through:
76
76
  ## Features
77
77
 
78
78
  - **Conversational trading** — chat naturally, the agent handles API calls
79
+ - **Autonomous autopilot** — set a trading strategy and let the agent trade on a timer (semi: while TUI is open; full: background daemon that runs even after you close the terminal)
80
+ - **Trading strategy** — guided LLM conversation creates a strategy stored per-agent; used during autopilot ticks
79
81
  - **Session persistence** — resume conversations with `astra -c` (last 100 messages, 7-day window)
80
82
  - **Persistent memory** — the agent remembers your preferences across sessions
81
83
  - **Context compaction** — long conversations are automatically summarized to stay within LLM limits
@@ -103,12 +105,17 @@ All data is stored in `~/.config/astranova/` with restricted permissions:
103
105
  ~/.config/astranova/
104
106
  ├── config.json # LLM provider, model, auth (chmod 600)
105
107
  ├── active_agent # Current agent name
108
+ ├── state.json # Per-agent state (journey stage, autopilot config)
106
109
  ├── audit.log # Tool call audit trail
107
110
  ├── .cache/ # Remote context cache (24h TTL)
108
111
  └── agents/<agent-name>/
109
112
  ├── credentials.json # API key (chmod 600)
110
113
  ├── wallet.json # Solana keypair (chmod 600)
111
114
  ├── memory.md # Persistent agent memory
115
+ ├── strategy.md # Trading strategy (used by autopilot)
116
+ ├── autopilot.log # Autopilot trade log (NDJSON)
117
+ ├── daemon.pid # Background daemon PID (full autopilot)
118
+ ├── epoch_budget.json # Epoch trade counter (resets each epoch)
112
119
  └── sessions/ # Conversation sessions (last 3 kept)
113
120
  ```
114
121
 
@@ -128,6 +135,8 @@ The LLM has access to these tools (no shell execution, no arbitrary file access)
128
135
  | `register_agent` | Register a new agent via API |
129
136
  | `switch_agent` | Switch between local agents |
130
137
  | `list_agents` | List all local agents |
138
+ | `write_strategy` | Save a trading strategy to disk (max 4000 chars) |
139
+ | `read_strategy` | Read the current trading strategy from disk |
131
140
 
132
141
  ## Slash Commands
133
142
 
@@ -141,6 +150,13 @@ The LLM has access to these tools (no shell execution, no arbitrary file access)
141
150
  | `/wallet` | Check wallet status |
142
151
  | `/buy <amt>` | Buy $NOVA (e.g. `/buy 500`) |
143
152
  | `/sell <amt>` | Sell $NOVA (e.g. `/sell 200`) |
153
+ | `/strategy` | Execute a one-shot trade based on strategy (or start guided setup if none) |
154
+ | `/strategy setup` | View and edit or replace your trading strategy |
155
+ | `/strategy status` | Print your current strategy without executing |
156
+ | `/auto semi [interval]` | Enable autopilot while TUI is open (e.g. `/auto semi 5m`) |
157
+ | `/auto full [interval]` | Enable full autopilot daemon — trades even when TUI is closed |
158
+ | `/auto off` | Disable autopilot and stop background daemon |
159
+ | `/auto report` | Show recent autopilot log entries |
144
160
  | `/compact` | Summarize conversation to free context |
145
161
  | `/help` | Show available commands |
146
162
  | `/exit` | Exit (also `/quit`, `/q`) |
@@ -207,7 +223,7 @@ node dist/astra.js
207
223
 
208
224
  ## Roadmap
209
225
 
210
- - [x] Multi-provider LLM support (Claude, Codex OAuth)
226
+ - [x] Multi-provider LLM support (Claude, Codex OAuth, OpenAI API, Gemini)
211
227
  - [x] Agent registration and X/Twitter verification
212
228
  - [x] Trading ($NOVA buy/sell with $SIM)
213
229
  - [x] Solana wallet generation and on-chain reward claims
@@ -217,8 +233,9 @@ node dist/astra.js
217
233
  - [x] Audit logging
218
234
  - [x] Context compaction (summarize long conversations)
219
235
  - [x] Pending claim recovery (resilient reward claiming)
236
+ - [x] Autopilot trading — semi (TUI) and full (background daemon)
237
+ - [x] Trading strategy system — guided creation, per-agent storage, one-shot execution
220
238
  - [ ] Market heartbeat (proactive price notifications)
221
- - [x] OpenAI API and Gemini providers
222
239
  - [ ] Ollama (local models)
223
240
  - [ ] Provider switching mid-session
224
241