@vibest/cli 0.0.1-beta.19 → 0.0.1-beta.20
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/bin/vibest.cjs +23 -13
- package/harnesses/agy/.agents/plugins/vibest/hook.sh +48 -0
- package/harnesses/agy/.agents/plugins/vibest/hooks.json +38 -0
- package/harnesses/agy/.agents/plugins/vibest/plugin.json +5 -0
- package/harnesses/agy/.agents/plugins/vibest/skills/delegate/SKILL.md +66 -0
- package/harnesses/agy/.agents/plugins/vibest/skills/pipeline/SKILL.md +57 -0
- package/harnesses/agy/index.js +1405 -0
- package/harnesses/claude/.claude-plugin/plugin.json +2 -2
- package/harnesses/claude/README.md +17 -17
- package/harnesses/claude/hooks/hooks.json +1 -1
- package/harnesses/claude/hooks/register.mjs +154 -101
- package/harnesses/claude/skills/delegate/SKILL.md +18 -18
- package/harnesses/claude/skills/pipeline/SKILL.md +14 -14
- package/harnesses/cursor/.cursor-plugin/plugin.json +2 -2
- package/harnesses/cursor/hooks/hooks.json +3 -0
- package/harnesses/cursor/hooks/vibest.sh +3 -3
- package/harnesses/cursor/index.js +1340 -0
- package/harnesses/cursor/skills/delegate/SKILL.md +18 -18
- package/harnesses/cursor/skills/pipeline/SKILL.md +14 -14
- package/harnesses/pi/extension.mjs +643 -1112
- package/harnesses/pi/presentation.mjs +1023 -0
- package/harnesses/pi/skills/delegate/SKILL.md +18 -18
- package/harnesses/pi/skills/pipeline/SKILL.md +14 -14
- package/herdr-plugin/README.md +2 -2
- package/herdr-plugin/bin/vibest.sh +1 -1
- package/herdr-plugin/herdr-plugin.toml +5 -5
- package/package.json +17 -16
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pipeline
|
|
3
|
-
description: Plan, implement, review, then open a pull request, with the user approving the plan first.
|
|
3
|
+
description: Plan, implement, review, then open a pull request, with the user approving the plan first. Use when the user wants a plan or design before code, a review before merging, or a pull request at the end ("plan it first, then build it", "write a design, then implement", "implement it and have someone review it", "先出方案再写,写完找人 review 后提 PR", "do it as a pipeline", "/pipeline").
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Pipeline
|
|
7
7
|
|
|
8
|
-
Plan → the user agrees → implement → review until the reviewer approves → pull request. Follow delegate: do not poll; each
|
|
8
|
+
Plan → the user agrees → implement → review until the reviewer approves → pull request. Follow delegate: do not poll; each agent sends its message when it decides to; check it yourself. The user stays in the loop and may step into any pane. What they say overrides the next step.
|
|
9
9
|
|
|
10
10
|
## 1. Plan
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
vibest run [<harness>] --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code.
|
|
13
|
+
vibest run [<harness>] --title 'Plan <topic>' -- 'Write an implementation plan for: <goal, paths, constraints>. Read the code. Send me the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Its id is <planner id>. Tell the user the plan is being written and end your
|
|
16
|
+
Its id is <planner id>. Tell the user the plan is being written and end your execution. Do not pass `--archive-on-idle`: the user has not agreed yet, and a completed execution would archive the session before they can answer.
|
|
17
17
|
|
|
18
18
|
## 2. Agree
|
|
19
19
|
|
|
@@ -24,34 +24,34 @@ Show the plan in full, including open questions. Do not implement until the user
|
|
|
24
24
|
Save the agreed plan, verbatim, with your file tool as `$VIBEST_PROJECT_DIR/artifacts/pipeline-<topic>-plan.md` (a new file name if that one exists). Then:
|
|
25
25
|
|
|
26
26
|
```
|
|
27
|
-
vibest run [<harness>] --title 'Implement <topic>' -- 'Implement the
|
|
27
|
+
vibest run [<harness>] --title 'Implement <topic>' --file <absolute plan path> -- 'Implement the attached plan exactly. Run the tests and typecheck, commit on a branch, push, and send me the branch and hash. Do not open a pull request.'
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name. Do not pass `--archive-on-
|
|
30
|
+
Its id is <implementer id>. The absolute plan path is the value of VIBEST_PROJECT_DIR (`echo $VIBEST_PROJECT_DIR`, or `directory` from `vibest project info`) plus `/artifacts/` and the file name; vibest copies the file for the session and ends its task with a line naming the copy. Do not pass `--archive-on-idle`: this session stays for review and the pull request. When it sends its message, check the diff and the tests yourself before review.
|
|
31
31
|
|
|
32
32
|
## 4. Review
|
|
33
33
|
|
|
34
|
-
`--
|
|
35
|
-
Read-only here is the prompt you pass, plus the
|
|
34
|
+
`--share` shares the implementer's worktree: a pane split off the implementer's pane. Archiving the reviewer never removes that worktree.
|
|
35
|
+
Read-only here is the prompt you pass, plus the shared-worktree git rule the session already has: no commit, and nothing that moves HEAD, a branch, or the index.
|
|
36
36
|
|
|
37
37
|
```
|
|
38
|
-
vibest run [<harness>] --title 'Review <topic>' --
|
|
38
|
+
vibest run [<harness>] --title 'Review <topic>' --share <implementer id> -- 'Review the change on this branch against the plan at <absolute plan path>. Run git diff main...HEAD. Do not modify files, commit, or move HEAD. Look for bugs, missing tests, and departures from the plan; run the tests. Send me a message that starts with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Its id is <reviewer id>. Do not pass `--archive-on-
|
|
41
|
+
Its id is <reviewer id>. Do not pass `--archive-on-idle`: later reviews go to this reviewer with `vibest send`.
|
|
42
42
|
|
|
43
43
|
## 5. Until approval
|
|
44
44
|
|
|
45
|
-
- `changes requested` → `vibest send <implementer id> -- '<the comments, verbatim. Fix them, run the tests, commit, push, and
|
|
45
|
+
- `changes requested` → `vibest send <implementer id> -- '<the comments, verbatim. Fix them, run the tests, commit, push, and send me the hash.>'` When it sends its message, `vibest send <reviewer id> -- 'The implementer pushed <hash>. Review again. Same message format.'`
|
|
46
46
|
- `approve` → open the pull request.
|
|
47
|
-
- After 3
|
|
47
|
+
- After 3 reviews without approval, or a judgment call, stop and show the open comments. The user decides: another review, accept, or change the plan.
|
|
48
48
|
|
|
49
|
-
One line to the user per
|
|
49
|
+
One line to the user per review: the number, the verdict, what is being fixed.
|
|
50
50
|
|
|
51
51
|
## 6. Pull request
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
vibest send <implementer id> -- 'The review approved the change. Open a pull request against main with gh pr create. Title: <title>. Body: the plan, the change, and how it was verified.
|
|
54
|
+
vibest send <implementer id> -- 'The review approved the change. Open a pull request against main with gh pr create. Title: <title>. Body: the plan, the change, and how it was verified. Send me the URL.'
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Give the user the URL. Then `vibest archive <reviewer id>`. Keep the implementer until the user is done; follow-ups are `vibest send <implementer id> -- '<message>'`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibest",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
4
|
-
"description": "vibest's Cursor CLI plugin: a session's
|
|
3
|
+
"version": "0.0.1-beta.20",
|
|
4
|
+
"description": "vibest's Cursor CLI plugin: a session's execution-end result and the tool guard, loaded with `cursor-agent --plugin-dir`."
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
# @vibest/cursor 0.0.1-beta.
|
|
2
|
+
# @vibest/cursor 0.0.1-beta.20: `vibest integration guard` before a tool call, `prompt` and `ready` at the session start, `prompt` when an execution starts or works, `stop` at its response.
|
|
3
3
|
# The vibest vibestd started this agent with (VIBEST_COMMAND, a JSON argv), not the first vibest on PATH. A value this
|
|
4
4
|
# cannot read safely (not a JSON array of plain strings: a backslash in it) falls back to PATH.
|
|
5
5
|
vibest() {
|
|
@@ -24,11 +24,11 @@ vibest() {
|
|
|
24
24
|
case "${1:-}" in
|
|
25
25
|
guard)
|
|
26
26
|
# preToolUse runs fail-closed, where no answer refuses: outside vibest, allow (it grants no approval).
|
|
27
|
-
if [ -z "${
|
|
27
|
+
if [ -z "${VIBEST_SESSION_ID:-}" ]; then cat >/dev/null; echo '{"permission":"allow"}'; exit 0; fi
|
|
28
28
|
vibest integration guard --harness cursor || { echo "vibest integration guard failed; the tool call is refused." >&2; exit 2; }
|
|
29
29
|
;;
|
|
30
30
|
ready | prompt | stop)
|
|
31
|
-
if [ -z "${
|
|
31
|
+
if [ -z "${VIBEST_SESSION_ID:-}" ]; then cat >/dev/null; exit 0; fi
|
|
32
32
|
vibest integration "$1" --harness cursor >/dev/null 2>>"${VIBEST_HOME:-$HOME/.vibest}/vibestd.log" || exit 1
|
|
33
33
|
;;
|
|
34
34
|
esac
|