@mergeline/agent 0.7.3 → 0.7.4
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 +5 -5
- package/engine/prompt.md +15 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,10 +15,10 @@ committing. Nothing technical is needed from the person.
|
|
|
15
15
|
## By hand
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
npx -y @mergeline/agent init --claude --url https://acme.mergeline.app # once per repository; commit what it adds
|
|
19
|
-
npx -y @mergeline/agent login fe-1 --url https://acme.mergeline.app --key ab_... # once per agent and machine
|
|
20
|
-
npx -y @mergeline/agent start fe-1 # every session; then /pick
|
|
21
|
-
npx -y @mergeline/agent watch --agent fe-1 --engine claude --follow # or unattended: the worker
|
|
18
|
+
npx -y @mergeline/agent@latest init --claude --url https://acme.mergeline.app # once per repository; commit what it adds
|
|
19
|
+
npx -y @mergeline/agent@latest login fe-1 --url https://acme.mergeline.app --key ab_... # once per agent and machine
|
|
20
|
+
npx -y @mergeline/agent@latest start fe-1 # every session; then /pick
|
|
21
|
+
npx -y @mergeline/agent@latest watch --agent fe-1 --engine claude --follow # or unattended: the worker
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
`init --url` writes the board's address into `.mergeline.json` (no
|
|
@@ -122,7 +122,7 @@ MCP config (Claude Code `--mcp-config`, Codex, other MCP clients):
|
|
|
122
122
|
"mcpServers": {
|
|
123
123
|
"board": {
|
|
124
124
|
"command": "npx",
|
|
125
|
-
"args": ["-y", "@mergeline/agent", "mcp"],
|
|
125
|
+
"args": ["-y", "@mergeline/agent@latest", "mcp"],
|
|
126
126
|
"env": { "BOARD_URL": "https://board.example.com", "BOARD_AGENT_KEY": "ab_..." }
|
|
127
127
|
}
|
|
128
128
|
}
|
package/engine/prompt.md
CHANGED
|
@@ -13,7 +13,11 @@ on the ticket's branch. Stay in it: do not read or write outside it.
|
|
|
13
13
|
not a guess.
|
|
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
|
-
is fixed or answered in the summary.
|
|
16
|
+
is fixed or answered in the summary. A point that is a red test this
|
|
17
|
+
change did not cause is answered in the summary, as step 4 says, not
|
|
18
|
+
fixed. The worker's own finding "The test command fails" is such a
|
|
19
|
+
point when its failure lines name a check in code the change does not
|
|
20
|
+
touch.
|
|
17
21
|
- A fresh worktree has no dependencies: install them before you run
|
|
18
22
|
anything, the way the repository's lockfile says: `package-lock.json`,
|
|
19
23
|
`npm ci`; `pnpm-lock.yaml`, `pnpm install --frozen-lockfile`;
|
|
@@ -34,7 +38,16 @@ on the ticket's branch. Stay in it: do not read or write outside it.
|
|
|
34
38
|
doing what nearby code already does is a guess too.
|
|
35
39
|
3. Work the plan. After each step append one line on what you finished to
|
|
36
40
|
`.mergeline-run/progress.log`.
|
|
37
|
-
4. Run the project's tests and linter and fix what
|
|
41
|
+
4. Run the project's tests and linter, and fix what this ticket's change
|
|
42
|
+
broke. A check that fails in code the change does not touch is not
|
|
43
|
+
this ticket's to fix. The code the change touches is the files in
|
|
44
|
+
`git diff origin/main...HEAD` and the code that uses them. For such a
|
|
45
|
+
check:
|
|
46
|
+
- Run it again. If it passes now, it failed by chance. Leave it, and
|
|
47
|
+
name it in the summary: the check, and that it passed when run
|
|
48
|
+
again.
|
|
49
|
+
- If it fails again, end with `ask`, naming the check and the end of
|
|
50
|
+
its output. Do not change code outside the ticket to make it pass.
|
|
38
51
|
5. Commit with `git commit -m "<message>"`. To bring the branch up to date
|
|
39
52
|
with `main`, run `git merge origin/main` (already fetched).
|
|
40
53
|
If `git commit` is not allowed where you run, leave the changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mergeline/agent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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",
|