@mergeline/agent 0.7.2 → 0.7.3

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
@@ -202,8 +202,9 @@ tickets, checking every `--interval <s>` (default 30); `--max-runs <n>`
202
202
  (default 10) is the most tickets one start takes; `--timeout <min>`
203
203
  (default 90) is the most one engine run may take; what follows `--` is
204
204
  added to the engine's command line. It stops when the queue is empty
205
- (unless `--follow`), after `--max-runs` tickets, or after 3 failed runs
206
- (releases) in a row; after a failed run it waits `--interval` before
205
+ (unless `--follow`), after `--max-runs` tickets (with `--follow` too: it
206
+ says so, and a new start goes on), or after 3 failed runs (releases) in a
207
+ row; after a failed run it waits `--interval` before
207
208
  claiming again. Ctrl+C while the engine runs releases
208
209
  the ticket. A worker killed outright leaves its ticket In progress; a new
209
210
  one waits, claiming every `--interval`, until the board lets it resume (5
package/dist/worker.js CHANGED
@@ -1348,10 +1348,13 @@ export async function work(opts) {
1348
1348
  if (mine === null)
1349
1349
  break;
1350
1350
  if (hasWork(mine)) {
1351
- log(`stopping after ${runs} runs (--max-runs) with work still in the queue`);
1351
+ log(`stopping after ${runs} runs (--max-runs ${opts.maxRuns}) with work still in the queue`);
1352
1352
  return 1;
1353
1353
  }
1354
- log(`queue empty after ${runs} run(s); stopping`);
1354
+ if (opts.follow)
1355
+ log(`stopping after ${runs} runs (--max-runs ${opts.maxRuns}); start it again to go on (--max-runs sets how many)`);
1356
+ else
1357
+ log(`queue empty after ${runs} run(s); stopping`);
1355
1358
  return 0;
1356
1359
  }
1357
1360
  let claimed;
package/engine/prompt.md CHANGED
@@ -14,8 +14,14 @@ on the ticket's branch. Stay in it: do not read or write outside it.
14
14
  - On a rework run (the notes end with a review that asks for changes), the
15
15
  ticket's notes say what to change: the run is done when each point there
16
16
  is fixed or answered in the summary.
17
- - A fresh worktree has no dependencies: install them with the project's
18
- package manager (`npm ci`, `pnpm install`, ...) before you run anything.
17
+ - A fresh worktree has no dependencies: install them before you run
18
+ anything, the way the repository's lockfile says: `package-lock.json`,
19
+ `npm ci`; `pnpm-lock.yaml`, `pnpm install --frozen-lockfile`;
20
+ `yarn.lock`, `yarn install --frozen-lockfile`. With no lockfile, run
21
+ `npm install --no-package-lock` (it writes none), and only when
22
+ `package.json` lists dependencies: with none, there is nothing to install.
23
+ - A lockfile the run did not mean to add is not part of the change: do not
24
+ leave one behind.
19
25
 
20
26
  ## Steps
21
27
 
package/engine/review.md CHANGED
@@ -21,9 +21,13 @@ outside it.
21
21
 
22
22
  1. **Read** `ticket.md` and `rules.md`, then the diff
23
23
  (`git diff origin/main...HEAD`) and the code it touches.
24
- 2. **Install the dependencies** with the project's package manager (`npm
25
- ci`, `pnpm install`, ...), and run what `rules.md` says to run. Run
26
- nothing that writes outside this folder.
24
+ 2. **Install the dependencies** the way the repository's lockfile says:
25
+ `package-lock.json`, `npm ci`; `pnpm-lock.yaml`, `pnpm install
26
+ --frozen-lockfile`; `yarn.lock`, `yarn install --frozen-lockfile`. With
27
+ no lockfile, run `npm install --no-package-lock` (it writes none), and
28
+ only when `package.json` lists dependencies: with none, there is nothing
29
+ to install. Then run what `rules.md` says to run. Run nothing that
30
+ writes outside this folder.
27
31
  3. **Check the change against the spec,** requirement by requirement, and
28
32
  against `rules.md`. Then hunt for bugs in the changed code and in its
29
33
  callers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mergeline/agent",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "The agent's side of a Mergeline board: an MCP server and the `board` CLI. Works with any agent tool that runs MCP servers or shell commands.",
5
5
  "license": "MIT",
6
6
  "author": "frontender-ua",