orrevan 0.4.0 → 0.5.1

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 +94 -13
  2. package/dist/orrevan.js +290 -193
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -26,30 +26,110 @@ orrevan config show settings
26
26
  orrevan config set model <id> default model (unset with: orrevan config unset model)
27
27
  ```
28
28
 
29
- Options: `-m <model>`, `--plan` (read only), `--web` (allow web search), `--reasoning <level>` (thinking depth: auto, off, low, medium, high, max; which ones depend on the model, see `orrevan models`), `--yolo` (no approvals, careful).
29
+ Options: `-m <model>`, `--scout` (read only), `--auto` (no approvals, careful), `--web` (allow web search), `--reasoning <level>` (thinking depth: auto, off, low, medium, high, max; which ones depend on the model, see `orrevan models`).
30
30
 
31
- ### In the session
31
+ ### Modes
32
32
 
33
- | Input | |
33
+ | Mode | |
34
34
  |---|---|
35
+ | **Scout** | reads and searches, then proposes a plan. Changes nothing. |
36
+ | **Forge** | edits files and runs commands, shows a diff or the command and asks first. Default. |
37
+ | **Auto** | Forge without asking (`/auto`, `--auto`). Careful. |
38
+
39
+ `tab` switches between Scout and Forge.
40
+
41
+ ### Type while it works
42
+
43
+ Keep typing while Orrevan works. `enter` queues the message, Orrevan reads it at its next step (after the current tool) and adjusts. `esc` stops the current answer and sends queued messages right away, so "stop, do this instead" is one keypress.
44
+
45
+ ### Thinking
46
+
47
+ Reasoning models think before they answer. While they do, the working line shows the latest thought next to the animated Orrevan planet.
48
+
49
+ - `ctrl+t` shows thoughts in full (live and in the transcript) or collapses them to one line
50
+ - `/thoughts` prints the last thoughts in full
51
+ - `/reasoning` picks the thinking depth (auto, off, low, medium, high, max, as the model offers), `shift+tab` cycles through them. More thinking costs more tokens
52
+
53
+ ### Keys
54
+
55
+ | Key | |
56
+ |---|---|
57
+ | `?` | all shortcuts (on an empty input) |
58
+ | `ctrl+p` | command palette |
59
+ | `ctrl+x` then a key | leader: `m` model, `r` reasoning, `t` thoughts, `n` new, `s` sessions, `u` undo, `c` compact, `d` diff, `y` copy, `e` export, `w` web, `a` auto, `k` keys, `q` quit |
60
+ | `tab` / `shift+tab` | mode / thinking depth |
61
+ | `@` | attach a file, with completion (`tab`) |
62
+ | `!` | shell mode: run commands yourself, the output goes into the context (`!` or `esc` goes back) |
63
+ | `ctrl+o` | write the message in your editor (`$VISUAL` / `$EDITOR`) |
64
+ | `↑` while working | take the last queued message back to edit it |
65
+ | `esc` | stop |
66
+ | `\` + enter, `ctrl+j` | new line |
67
+ | `ctrl+c` | clear input, stop, twice to quit |
68
+
69
+ ### Commands
70
+
71
+ | Command | |
72
+ |---|---|
73
+ | `/help` | every command and key |
35
74
  | `/model` | switch model (price per 1M tokens shown) |
36
- | `/plan`, `/build`, `tab` | plan mode is read only, build mode can change things |
75
+ | `/scout`, `/forge`, `/auto` | modes |
76
+ | `/reasoning [level]`, `/thoughts` | thinking depth, last thoughts |
37
77
  | `/init` | writes `ORREVAN.md` with notes about the project |
78
+ | `/remember <note>` | adds a note to `ORREVAN.md` |
38
79
  | `/compact` | summarises the conversation to save tokens |
39
- | `@src/app.ts`, `@screenshot.png` | sends the file with your message. Images (PNG, JPEG, WebP) need a model with vision. Text files up to 256 KB, images up to 4 MB |
40
- | `/undo` | restores the files Orrevan changed in its last turn (edits and new files; shell commands are not undone) |
41
- | `/resume` | pick an earlier conversation in this folder and continue it |
42
- | `/web` | web search on/off. Orrevan then searches when it helps (small fee per search, shown in `/cost`). Once web content is in the conversation, edits and commands need your approval again, even after "always allow" |
43
- | `/reasoning [level]` | thinking depth for this session: auto (model default), off, low, medium, high, max. Each model offers its own levels. More thinking costs more tokens |
44
- | `/clear`, `/cost`, `/balance`, `/yolo`, `/help`, `/exit` | |
45
- | `!git status` | run a command yourself, the output goes into the context |
46
- | `esc` | stop the current answer |
47
- | `\` + enter | new line |
80
+ | `/undo` | restores the files Orrevan changed in its last turn (shell commands are not undone) |
81
+ | `/diff` | uncommitted changes (`git diff`) |
82
+ | `/copy`, `/export [file]` | copy the last answer, save the conversation as Markdown |
83
+ | `/resume` (`/sessions`) | continue an earlier conversation in this folder |
84
+ | `/title <name>`, `/fork` | name the conversation, branch off into a copy |
85
+ | `/btw <question>` | quick side question on the current context, no tools, not kept. Works while Orrevan works |
86
+ | `/status` | version, model, mode, context, cost, MCP |
87
+ | `/update` | update the CLI from inside a session (same as `orrevan update`), then restart with `orrevan -c` |
88
+ | `/todo` | the task list Orrevan keeps for bigger jobs |
89
+ | `/web` | web search on/off (small fee per search). Once web content is in the conversation, edits and commands need your approval again, even after "always allow" |
90
+ | `/mcp`, `/commands` | connected MCP servers, your own commands |
91
+ | `/clear`, `/cost`, `/balance`, `/exit` | |
92
+
93
+ Long pastes (over 1000 characters or 15 lines) show as `[Pasted text #1 +40 lines]` and are sent in full.
94
+
95
+ `@src/app.ts`, `@screenshot.png` sends the file with your message. Images (PNG, JPEG, WebP) need a model with vision. Text files up to 256 KB, images up to 4 MB.
48
96
 
49
97
  Long conversations are compacted automatically above 100k context tokens (`ORREVAN_AUTO_COMPACT=<tokens>`, `0` turns it off).
50
98
 
99
+ ### Your own commands
100
+
101
+ A Markdown file becomes a slash command. Its text is the prompt, `$ARGUMENTS` is what you type after the command (`$1` … `$9` single words).
102
+
103
+ ```
104
+ .orrevan/commands/review.md this project (can be committed)
105
+ ~/.config/orrevan/commands/review.md all your projects
106
+ ```
107
+
108
+ ```md
109
+ ---
110
+ description: Review a file for bugs
111
+ ---
112
+ Review $ARGUMENTS for bugs and risky code. List findings by severity.
113
+ ```
114
+
115
+ Then: `/review src/app.ts`.
116
+
117
+ ### MCP servers
118
+
119
+ Connect tools over the Model Context Protocol (stdio servers):
120
+
121
+ ```sh
122
+ orrevan mcp add github -e GITHUB_TOKEN=… -- npx -y @modelcontextprotocol/server-github
123
+ orrevan mcp # list
124
+ orrevan mcp remove github
125
+ ```
126
+
127
+ The config lives in `~/.config/orrevan/mcp.json` (`{"mcpServers": {...}}`, same format as other MCP clients). Only this file is read, never one inside a project, so a cloned repository cannot start programs. Servers start in the background with each session, `/mcp` shows their tools. Every MCP call asks first ("always" allows one server for the session), the Orrevan key is not passed to servers, and their output is treated as untrusted.
128
+
51
129
  ### Tools and approvals
52
130
 
131
+ Besides files and commands Orrevan has `todo` (visible task list), `ask_user` (asks you with options when a decision is yours), `task` (a read-only sub-agent with a fresh context for broad searches) and, with `/web` on, `web_search` and `fetch_url` (reads a page, asks first).
132
+
53
133
  Orrevan can `read_file`, `list_dir`, `glob` and `grep` freely inside the project folder. `write_file`, `edit_file` and `run_command` always ask first and show a diff or the command. Answer with *Yes*, *Yes for this session*, or *No* plus what it should do instead.
54
134
 
55
135
  The tool protocol is plain text, so it works with every model, including uncensored models without native function calling.
@@ -68,6 +148,7 @@ The key is stored in `~/.config/orrevan/config.json` (mode 600). Conversations a
68
148
  | `ORREVAN_BASE_URL` | default `https://orrevan.com/api/v1` |
69
149
  | `ORREVAN_MODEL` | default model |
70
150
  | `ORREVAN_NO_UPDATE_CHECK=1` | no update notice |
151
+ | `ORREVAN_NO_ANIMATION=1` | no logo animation |
71
152
 
72
153
  ### Updates
73
154