@staff0rd/assist 0.329.0 → 0.329.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/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.329.
|
|
9
|
+
version: "0.329.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3908,6 +3908,8 @@ var hooksSettings = {
|
|
|
3908
3908
|
hooks: {
|
|
3909
3909
|
UserPromptSubmit: on(RUNNING),
|
|
3910
3910
|
PreToolUse: on(RUNNING),
|
|
3911
|
+
// tool finished, agent resumes; restores running
|
|
3912
|
+
PostToolUse: on(RUNNING),
|
|
3911
3913
|
Stop: on(WAITING),
|
|
3912
3914
|
Notification: on(WAITING),
|
|
3913
3915
|
/* why: a tool/plan approval prompt appears mid-turn, after PreToolUse has
|
|
@@ -4745,7 +4747,6 @@ function buildReviewPrompt(item, phaseNumber) {
|
|
|
4745
4747
|
...buildCommentLines(item.comments),
|
|
4746
4748
|
"",
|
|
4747
4749
|
"If any criterion fails, fix the issue and re-verify.",
|
|
4748
|
-
`If a criterion still fails after fixing, use \`assist backlog rewind ${item.id} <phase> --reason "<reason>"\` to return to the appropriate phase instead of using phase-done.`,
|
|
4749
4750
|
"",
|
|
4750
4751
|
`Post concise comments for any notable findings or changes using \`assist backlog comment ${item.id} "<text>"\`.`,
|
|
4751
4752
|
"",
|
|
@@ -4756,7 +4757,12 @@ function buildReviewPrompt(item, phaseNumber) {
|
|
|
4756
4757
|
"Once the user confirms:",
|
|
4757
4758
|
"1. Run: /commit",
|
|
4758
4759
|
`2. Run: assist backlog done ${item.id} "<summary>"`,
|
|
4759
|
-
`3. Run: assist backlog phase-done ${item.id} ${phaseNumber} "done"
|
|
4760
|
+
`3. Run: assist backlog phase-done ${item.id} ${phaseNumber} "done"`,
|
|
4761
|
+
"",
|
|
4762
|
+
"Precedence rules \u2014 read carefully:",
|
|
4763
|
+
"- User approval plus a successful commit means the work is complete. Always finish with done + phase-done; never rewind already-approved, committed work as an automatic response.",
|
|
4764
|
+
"- If the implementation has diverged from the recorded acceptance criteria but the user has approved it, the default is still to complete the item. You may optionally offer to update the acceptance criteria, but stale criteria are not a reason to rewind.",
|
|
4765
|
+
`- Rewinding is a confirm-first exception, not the normal path. If you believe a criterion genuinely no longer fits and the work should return to an earlier phase, you must ask the user and get explicit confirmation first. Only after they confirm may you run \`assist backlog rewind ${item.id} <phase> --reason "<reason>"\`. Never rewind silently.`
|
|
4760
4766
|
].filter((line) => line !== void 0).join("\n");
|
|
4761
4767
|
}
|
|
4762
4768
|
|