merakcode 0.3.0 → 0.3.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 +29 -38
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -144,27 +144,27 @@ cd your-project
|
|
|
144
144
|
merak run "Explain how src/index.ts starts up"
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
| Command
|
|
148
|
-
|
|
|
149
|
-
| `merak run "<task>"`
|
|
150
|
-
| `merak run --
|
|
151
|
-
| `merak provider login`
|
|
152
|
-
| `merak serve --port 4096`
|
|
153
|
-
| `merak upgrade` (or `update`)
|
|
154
|
-
| `merak models`
|
|
155
|
-
| `merak mcp list`
|
|
156
|
-
| `merak skill`, `merak plugin`
|
|
157
|
-
| `merak session`, `merak export`, `merak import`
|
|
158
|
-
| `merak stats`
|
|
159
|
-
| `merak sandbox status`
|
|
160
|
-
| `merak doctor`
|
|
161
|
-
| `merak logs`
|
|
162
|
-
| `merak bug-report`
|
|
163
|
-
| `merak acp`
|
|
147
|
+
| Command | What it does |
|
|
148
|
+
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
149
|
+
| `merak run "<task>"` | Run one task and print the result. `-c` continues the last session, `-m` picks the model, `-f` attaches files, `--format json` prints the raw events; the task can also come from a pipe |
|
|
150
|
+
| `merak run --permission-level fullTakeover "<task>"` | Run at the Full takeover level; see below |
|
|
151
|
+
| `merak provider login` | Connect a model provider; `list` shows the connected ones, `logout` removes one, `relay` adds a relay |
|
|
152
|
+
| `merak serve --port 4096` | Start only the engine, for the SDK or other programs |
|
|
153
|
+
| `merak upgrade` (or `update`) | Upgrade. `--check` only looks for a new version, `--yes` skips the question |
|
|
154
|
+
| `merak models` | List the models you can use; `--refresh` fetches the model lists again |
|
|
155
|
+
| `merak mcp list` | Show MCP server status |
|
|
156
|
+
| `merak skill`, `merak plugin` | Manage skills and plugins |
|
|
157
|
+
| `merak session`, `merak export`, `merak import` | Manage, export and import sessions |
|
|
158
|
+
| `merak stats` | Token usage and cost |
|
|
159
|
+
| `merak sandbox status` | Is the sandbox on? `setup` sets it up (Windows only), `reset` undoes it |
|
|
160
|
+
| `merak doctor` | Check the install, config, models and sandbox, and say what is wrong |
|
|
161
|
+
| `merak logs` | Where the logs are and recent runs; `--tail` follows the newest log |
|
|
162
|
+
| `merak bug-report` | Zip the checks, config and logs for an issue; keys and conversations are left out |
|
|
163
|
+
| `merak acp` | Run as an [ACP](https://agentclientprotocol.com) agent for editors such as Zed |
|
|
164
164
|
|
|
165
165
|
Add `--help` to any command for the full details.
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
Without an approval handler, `merak run` refuses operations that need confirmation. `--permission-level autoApprove` allows only eligible safe operations. Explicit `--permission-level fullTakeover` skips safety approvals. The old `--auto` option was removed.
|
|
168
168
|
|
|
169
169
|
`merak serve` listens only on `127.0.0.1` by default, but has no password, so any program on this computer can call it. When other programs connect, set the environment variable `MERAKCODE_SERVER_PASSWORD` (HTTP Basic auth; the user name is `merakcode` by default). See [SECURITY.md](SECURITY.md#the-engines-api).
|
|
170
170
|
|
|
@@ -182,32 +182,23 @@ Editors that speak [ACP](https://agentclientprotocol.com) can use MerakCode as t
|
|
|
182
182
|
|
|
183
183
|
## Permissions and the sandbox
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
New conversations default to Ask every time. Child tasks, group members and background work follow the root conversation's latest permission level.
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- **Collaboration members.** The leader hands a task to a member without asking. When a member (Claude Code, Codex, OpenCode, or a product with a member adapter) wants to edit files, run commands, reach a website or read files, the rules above decide it; what needs asking shows in the approval bar and a member's question in the question box, both naming the member. Members' commands do not run in MerakCode's OS sandbox (Codex runs them in its own sandbox), and a custom product added as a one-shot command never asks: its own settings decide.
|
|
187
|
+
| Permission level | Required isolation is ready | Required isolation is unavailable |
|
|
188
|
+
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
|
|
189
|
+
| Ask every time `ask` | Ask before each operation; scoped conversation grants may apply | Ask each time; allow once or reject |
|
|
190
|
+
| Ask only for risky actions `autoApprove` | Allow controlled project reads and edits, provably read-only commands and dedicated plan writes; ask for dangerous or unknown actions | Preserve the selection and ask each time |
|
|
191
|
+
| Full takeover `fullTakeover` | Skip safety approvals; isolate compatible controlled commands and use the current account when needed | Skip safety approvals and report current-account execution |
|
|
193
192
|
|
|
194
|
-
|
|
195
|
-
| ------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
196
|
-
| Read-only | Designs and plans | No edits, only commands on the read-only list. Still asks before a non-secret read outside the workspace, a secret, or a host off the allowlist |
|
|
197
|
-
| Ask (default) | Everyday work | Edits a workspace file immediately when no path segment starts with `.`. Asks before edits to dot paths, file-changing commands and deletes, reads or edits outside the workspace, secrets, or hosts off the allowlist |
|
|
198
|
-
| Auto | Large projects, when you trust the AI | Edits inside the workspace (including dot paths), file-changing commands and deletes run immediately. Still asks before changes to MerakCode's config files, writes outside, risky commands, secret reads, hosts off the allowlist, or leaving the sandbox |
|
|
193
|
+
Full takeover still respects the user's task scope, input validation and concurrency protection. A failed command is never automatically replayed with the current account.
|
|
199
194
|
|
|
200
|
-
|
|
195
|
+
The product prepares isolation. On Windows, the first interactive desktop setup requests system administrator approval once. Cancellation leaves Ask every time and Ask only for risky actions on per-operation approval. Retry from sandbox status, or diagnose and repair with `merak sandbox status` and `merak sandbox setup`.
|
|
201
196
|
|
|
202
|
-
|
|
197
|
+
Every level supports official plans. The model saves Markdown with `plan_generate` and edits it with `plan_edit`. Draft-only requests do not authorize project changes. Human saves need no agent approval. The Plan tab renders full Markdown; Edit plan opens the existing editor.
|
|
203
198
|
|
|
204
|
-
|
|
205
|
-
| ------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
206
|
-
| Windows | A separate low-rights account, NTFS permissions, the firewall | Click "Set up" under Settings → Permissions & security in the desktop app (or run `merak sandbox setup` once) and approve one administrator prompt |
|
|
207
|
-
| Linux | Landlock (kernel 5.13 or newer with Landlock enabled; needs glibc) | Nothing. Network rules need kernel 6.7 or newer |
|
|
208
|
-
| macOS | The built-in Seatbelt (sandbox-exec) | Nothing |
|
|
199
|
+
The button and explicit chat instructions share plan startup. Startup uses the latest saved document, records an immutable execution snapshot and preserves the selected permission level. Later edits do not change that snapshot. See [Permission levels and official plans](docs/session-modes.md).
|
|
209
200
|
|
|
210
|
-
|
|
201
|
+
External adapters use protocol 3. The host controls only operations the adapter actually reports; native restrictions remain in effect. Plan-dependent work requires declared full-input and capacity support.
|
|
211
202
|
|
|
212
203
|
## Collaboration groups
|
|
213
204
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "merakcode",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MerakCode command line: run tasks, start the engine, ACP for editors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"node": ">=18"
|
|
20
20
|
},
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"merakcode-darwin-arm64": "0.3.
|
|
23
|
-
"merakcode-darwin-x64": "0.3.
|
|
24
|
-
"merakcode-linux-arm64": "0.3.
|
|
25
|
-
"merakcode-linux-x64": "0.3.
|
|
26
|
-
"merakcode-windows-arm64": "0.3.
|
|
27
|
-
"merakcode-windows-x64": "0.3.
|
|
22
|
+
"merakcode-darwin-arm64": "0.3.1",
|
|
23
|
+
"merakcode-darwin-x64": "0.3.1",
|
|
24
|
+
"merakcode-linux-arm64": "0.3.1",
|
|
25
|
+
"merakcode-linux-x64": "0.3.1",
|
|
26
|
+
"merakcode-windows-arm64": "0.3.1",
|
|
27
|
+
"merakcode-windows-x64": "0.3.1"
|
|
28
28
|
}
|
|
29
29
|
}
|