openmax-cli 2026.10.0 → 2026.10.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.
package/README.md CHANGED
@@ -23,8 +23,8 @@ You own the endpoints, the tools, the skills, and the context.
23
23
 
24
24
  - **Small by default.** Seven built-in tools (`list_dir`, `read_file`, `write_file`, `edit_file`, `glob`, `grep`, `bash`) and a short system prompt. Old tool output is dropped before your task is, and dropped context is summarized by your own model into a compact note (heuristic digest as fallback) whose address points at the lossless archive of everything dropped — compaction is a bounded view over a record you can always read back.
25
25
  - **Your model, your server.** One `base_url`, or several named endpoints in `providers.json` switched with `/model`. Works with local servers (Ollama, LM Studio, vLLM, llama.cpp), cloud gateways (OpenRouter and similar), and private proxies.
26
- - **Trust before execution.** An exact canonical project root must be trusted before any agent turn or project behavior starts. Interactive use asks once; headless and stdio runs fail closed until explicitly started with `--trust-project`.
27
- - **Approvals by default.** `write_file`, `edit_file`, and `bash` wait for approval in `ask` mode. Use `auto` for unattended runs or `readonly` to block mutating tools. Approvals and permissions decide whether Open Max dispatches a tool call; they are not OS isolation.
26
+ - **Trust before execution.** An exact canonical project root must be trusted before any agent turn or project behavior starts. Interactive use asks once; headless and stdio runs fail closed until a human grants trust with `--trust-project`.
27
+ - **Newly trusted projects run in auto.** Trusting a project records its approval mode, `auto` unless you pick another: tools and extensions run without per-call approval while deny rules, hooks, and execution reports stay active. Pick `ask` to have `write_file`, `edit_file`, and `bash` wait for approval, or `readonly` to block mutating tools. Approvals and permissions decide whether Open Max dispatches a tool call; they are not OS isolation.
28
28
  - **File based extensions.** Drop TOML tools, `SKILL.md` skills, prompt templates, and process hooks under project or home config. No fork required. The agent writes them itself and the harness re-freezes as soon as a mutating call lands, so a tool the agent writes is a tool the agent uses on its very next step.
29
29
  - **File based memory.** One durable fact per file in `.openmax/memory/`, written by the agent, surfaced as an index line in future sessions, ranked by recency and frequency of observed use. Old entries fade from the index and remain searchable on disk until the user or agent deletes them. No database, no daemon, no embeddings; zero prompt cost when empty.
30
30
  - **Recall over everything kept.** `openmax --recall "<query>"` searches this project's past sessions, compaction archives, digests, and memories in one bounded streaming pass — BM25 relevance fused with the same recency law, ranked excerpts, each citing the file with the full record. No index to build or maintain: the stores on disk stay the single source of truth.
@@ -101,7 +101,7 @@ Every [release](https://github.com/Max17190/open-max/releases) also carries the
101
101
  plain tarballs and a `sha256.sum`, so you can download and verify by hand
102
102
  instead of piping a script into a shell.
103
103
 
104
- **From source** instead, which needs [Rust](https://rustup.rs):
104
+ **From source** instead, which needs [Rust](https://rustup.rs) 1.89 or newer:
105
105
 
106
106
  ```sh
107
107
  git clone https://github.com/Max17190/open-max.git
@@ -128,10 +128,13 @@ Edit `~/.openmax/settings.json`:
128
128
 
129
129
  `base_url` is the root of your model's HTTP API (the harness calls `chat/completions` on it). Set `model` to the id that server expects. Set `api_key` to a literal or `$ENV_VAR`, or export `OPENMAX_API_KEY`. Set `context_tokens` to the context window the server actually serves for that model; nothing is queried, and a guessed window is wrong in one direction or the other. There is no default endpoint, model, or window: until all three are configured (here or through a named provider), Open Max refuses to start a turn with an error that says exactly what to set.
130
130
 
131
- `/approvals auto` saves the execution choice for the current trusted project.
132
- Shift+Tab and the approval card's Auto for project choice save the same setting.
133
- Auto covers extension creation and repair without further confirmation;
134
- validation, deny rules, and execution reports remain active. See
131
+ Trusting a project records its approval mode: `auto` unless you pick `ask` or
132
+ `readonly` at the trust prompt. Auto covers extension creation and repair
133
+ without further confirmation; validation, deny rules, and execution reports
134
+ remain active. `/approvals auto|ask|readonly`, Shift+Tab, and the approval
135
+ card's Auto for project choice change the saved mode for the current trusted
136
+ project. `approval_mode` in settings.json applies only to a project with no
137
+ saved mode, such as one trusted by an earlier version. See
135
138
  [approval modes](docs/configuration.md#approvals).
136
139
 
137
140
  A settings file that exists but does not parse, uses an unknown key, or sets an unrecognized `approval_mode` is a startup error (fail closed): Open Max exits with the parse reason instead of silently reverting your endpoint and approval policy to defaults.
@@ -145,14 +148,16 @@ cd ~/code/my-app
145
148
  openmax
146
149
  ```
147
150
 
148
- On the first interactive run, inspect the project and accept the trust prompt. Headless and stdio runs make the same decision explicitly:
151
+ On the first interactive run, inspect the project and answer the trust prompt: `y` trusts it in `auto` mode, `a` in `ask`, and `r` in `readonly`. Headless and stdio runs never prompt: grant trust once from a terminal with `--trust-project`, which records `auto`, and later runs, including a frontend's `openmax --stdio`, need no flag:
149
152
 
150
153
  ```sh
151
- openmax --continue # resume latest session here
152
- openmax --trust-project -p "summarize this repo"
153
- openmax --trust-project --stdio
154
+ openmax --continue # resume latest session here
155
+ openmax --trust-project -p "summarize this repo" # from a terminal
156
+ openmax --stdio # a frontend, once trusted
154
157
  ```
155
158
 
159
+ A frontend's stdin is its protocol pipe, not a terminal, so it cannot grant trust itself. For CI and other automation a human runs, see [project trust](docs/configuration.md#project-trust).
160
+
156
161
  In print mode, text goes to stdout and tool progress to stderr; with `--json`, each `AgentEvent` is one JSON line. Press **/** for slash commands and **@** to mention a project file. Full flags, keybindings, and commands are in [usage](docs/usage.md).
157
162
 
158
163
  ## Extend
@@ -171,12 +176,14 @@ With nothing installed, extensions cost zero tokens. Project paths win over glob
171
176
  # .openmax/tools/todo_scan.toml
172
177
  name = "todo_scan"
173
178
  description = "List TODO/FIXME comments with file and line"
174
- command = "./scripts/todo-scan.sh"
179
+ command = "sh"
180
+ args = ["./scripts/todo-scan.sh"]
175
181
  timeout_secs = 30
176
182
  mutating = false
177
183
 
178
184
  [params]
179
185
  type = "object"
186
+ required = ["path"]
180
187
  [params.properties.path]
181
188
  type = "string"
182
189
  description = "Directory to scan"
@@ -188,7 +195,7 @@ File formats, hook events, permission rule syntax (including the in-session repa
188
195
 
189
196
  ## Native execution and privacy
190
197
 
191
- The built-in file tools (`list_dir`, `read_file`, `write_file`, `edit_file`, `glob`, and `grep`) are confined to the project root by the harness. `bash`, external TOML tools, and hooks are native processes: they are not confined by that path check and inherit the host filesystem, environment, credentials, and network access of Open Max. Permissions, approvals, and `mutating` metadata control dispatch and user experience, not operating-system isolation.
198
+ The built-in file tools (`list_dir`, `read_file`, `write_file`, `edit_file`, `glob`, and `grep`) are confined to the project root by the harness. `bash`, external TOML tools, and hooks are native processes: they are not confined by that path check and inherit the host filesystem, environment, credentials, and network access of Open Max. They run without a controlling terminal, so a command that prompts on the terminal (a password, an ssh host key) fails at once instead of drawing over the TUI and waiting out its timeout. `bash` and hooks also get `GIT_TERMINAL_PROMPT=0`, so git names the cause. Permissions, approvals, and `mutating` metadata control dispatch and user experience, not operating-system isolation.
192
199
 
193
200
  Open Max itself does not phone home. Apart from native child processes, the harness contacts only the model endpoint you configure.
194
201
 
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "openmax-cli",
22
- "version": "2026.10.0"
22
+ "version": "2026.10.1"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "2026.10.0"
51
+ "version": "2026.10.1"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/Max17190/open-max/releases/download/v2026.10.0"
3
+ "https://github.com/Max17190/open-max/releases/download/v2026.10.1"
4
4
  ],
5
5
  "author": "Open Max contributors",
6
6
  "bin": {
@@ -89,7 +89,7 @@
89
89
  "zipExt": ".tar.xz"
90
90
  }
91
91
  },
92
- "version": "2026.10.0",
92
+ "version": "2026.10.1",
93
93
  "volta": {
94
94
  "node": "18.14.1",
95
95
  "npm": "9.5.0"