@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.
@@ -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. Only vibest's main agent (the coordinator) starts agents; a subagent must not use this skill. 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").
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 result arrives by itself; check it yourself. The user stays in the loop and may step into any pane. What they say overrides the next step.
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. Report the approach, the files to change, the steps, how to verify, and open questions. Do not modify files.'
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 turn. Do not pass `--archive-on-completion`: the user has not agreed yet, and a completed result would archive the session before they can answer.
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 plan at <absolute plan path> exactly. Run the tests and typecheck, commit on a branch, push, and report the branch and hash. Do not open a pull request.'
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-completion`: this session stays for review and the pull request. When it reports, check the diff and the tests yourself before review.
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
- `--peer` 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 peer git rule the session already has: no commit, and nothing that moves HEAD, a branch, or the index.
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>' --peer <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. Start with "verdict: approve" or "verdict: changes requested", then each comment with file and line.'
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-completion`: later rounds go to this reviewer with `vibest send`.
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 report the hash.>'` When it reports, `vibest send <reviewer id> -- 'The implementer pushed <hash>. Review again. Same report format.'`
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 rounds without approval, or a judgment call, stop and show the open comments. The user decides: another round, accept, or change the plan.
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 round: the number, the verdict, what is being fixed.
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. Report the URL.'
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.19",
4
- "description": "vibest's Cursor CLI plugin: a session's turn-end result and the tool guard, loaded with `cursor-agent --plugin-dir`."
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
  }
@@ -2,6 +2,9 @@
2
2
  "version": 1,
3
3
  "hooks": {
4
4
  "sessionStart": [
5
+ {
6
+ "command": "sh ./hooks/vibest.sh prompt"
7
+ },
5
8
  {
6
9
  "command": "sh ./hooks/vibest.sh ready"
7
10
  }
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
- # @vibest/cursor 0.0.1-beta.19: `vibest integration guard` before a tool call, `ready` at the session start, `prompt` when a turn starts or works, `stop` at its response.
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 "${VIBEST_AGENT:-}" ]; then cat >/dev/null; echo '{"permission":"allow"}'; exit 0; fi
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 "${VIBEST_AGENT:-}" ] || [ -z "${VIBEST_SESSION_ID:-}" ]; then cat >/dev/null; exit 0; fi
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