@hmv-labs/agent-runner-mcp 0.0.1 → 0.0.2

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
@@ -71,12 +71,12 @@ Runs one worker task, falling back through the model chain until a result is val
71
71
  | `model` | string | | Pin one of the provider's models from `list_providers`; no fallback. |
72
72
  | `effort` | `low` \| `medium` \| `high` | `medium` | agy: each family's variant at this effort; codex: the reasoning effort. |
73
73
  | `timeout_sec` | integer, 30–3600 | `900` | Per attempt. |
74
- | `sha` | string | `HEAD` | `readonly` only: the commit to check out. |
74
+ | `sha` | string | | `readonly` only: the commit to check out; omit it for the working tree. |
75
75
  | `report_path` | string | | Save the valid report to this file and return only the envelope. |
76
76
 
77
- **`mode=readonly`** runs agy with `--mode plan --sandbox`, or codex with `--sandbox read-only`, in a throwaway detached worktree at `sha`. The worktree must stay unchanged (any change fails the attempt and is reset) and is always removed. The worker must return `REPORT: inline`. Read-only runs see committed files only.
77
+ **`mode=readonly`** runs agy with `--mode plan --sandbox`, or codex with `--sandbox read-only`, in a throwaway detached worktree. With `sha` it is a checkout of that commit (committed files only). Without `sha` it is a copy of the working tree as it is: `HEAD` plus uncommitted and untracked files (ignored files are not copied), so the working tree does not have to be clean. The worktree must stay unchanged: any edit, new file, or commit fails the attempt and is undone. It is always removed. The worker must return `REPORT: inline`.
78
78
 
79
- **`mode=write`** runs in `cwd` itself: agy with all tool permissions, codex in its `workspace-write` sandbox (no network by default). Before the run the server records `HEAD` and the content of the whole working tree, untracked files included. If a failed attempt changed any file or made a commit, fallback stops and the result lists `changedFiles`, so the next model never builds on a half-done attempt. Files ignored by `.gitignore` are not tracked.
79
+ **`mode=write`** runs in `cwd` itself: agy with all tool permissions, codex in its `workspace-write` sandbox (no network by default). The working tree does not have to be clean: the worker is told to leave changes that are not its own alone and, if it commits, to stage only the files it changed. Before the run the server records `HEAD` and the content of the whole working tree, untracked files included. If a failed attempt changed any file or made a commit, fallback stops and the result lists `changedFiles`, so the next model never builds on a half-done attempt. Files ignored by `.gitignore` are not tracked.
80
80
 
81
81
  **`report_path`** is resolved against `cwd` and must be a new `.md` file inside the repository and outside `.git` (symlinks are resolved). It is checked before the run and never overwrites an existing file. If the save fails, the report comes back inline with `reportError`.
82
82