passalong 0.6.0 → 0.8.0
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 +2 -2
- package/bin/passalong +220 -15
- package/package.json +1 -1
- package/skill/SKILL.md +28 -1
- package/src/api.js +74 -1
- package/src/checks.js +127 -0
- package/src/guide.js +27 -5
- package/src/hooks.js +8 -5
- package/src/mcp.js +256 -135
- package/src/passalong.js +156 -8
- package/src/update.js +116 -0
package/src/hooks.js
CHANGED
|
@@ -25,14 +25,17 @@ const plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
|
25
25
|
export function nowText({ held, waiting = {} }) {
|
|
26
26
|
if (held) {
|
|
27
27
|
const lines = [
|
|
28
|
-
`
|
|
28
|
+
// `kind` is required on what /v1/working sends. The `|| "task"` that used to be here was
|
|
29
|
+
// both dead and wrong — absent has meant transfer since kinds existed, never task.
|
|
30
|
+
`Passalong: You hold ${held.id} (${held.kind}): ${held.title || held.id}.`,
|
|
29
31
|
];
|
|
30
32
|
if (held.note) lines.push(`Last note: "${held.note}".`);
|
|
31
33
|
if (held.state === "stalled")
|
|
32
34
|
lines.push("It is marked stalled: nobody has heard from its agent in 30 minutes.");
|
|
33
35
|
lines.push(
|
|
34
36
|
`To carry on, call take ${held.id} (it resumes what you hold), then progress at each ` +
|
|
35
|
-
"milestone. When it is done, hand_in
|
|
37
|
+
"milestone. When it is done, hand_in with evidence — what you ran and what came back — " +
|
|
38
|
+
"so keep it as you go; if it is not yours or you are stuck, pass with the reason.",
|
|
36
39
|
);
|
|
37
40
|
return lines.join("\n");
|
|
38
41
|
}
|
|
@@ -57,9 +60,9 @@ export function stopVerdict({ held, input = {} }) {
|
|
|
57
60
|
decision: "block",
|
|
58
61
|
reason:
|
|
59
62
|
`You still hold ${held.id}: ${held.title || held.id}. Before ending, do one of: ` +
|
|
60
|
-
`hand_in ${held.id} if it is done; pass ${held.id} with the reason if
|
|
61
|
-
`you are stuck; or, if the user is stopping mid-way, progress ${held.id}
|
|
62
|
-
"saying what is left — then end.",
|
|
63
|
+
`hand_in ${held.id} with your evidence if it is done; pass ${held.id} with the reason if ` +
|
|
64
|
+
`it is not yours or you are stuck; or, if the user is stopping mid-way, progress ${held.id} ` +
|
|
65
|
+
"with a note saying what is left — then end.",
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
|