@brainervirus/workit-core 1.0.7 → 1.0.8
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workit-babysit
|
|
3
|
-
description: Use when a PR needs driving to merge-ready, CI is red, or the user says babysit
|
|
3
|
+
description: Use after creating a PR (auto-starts, drive default), when a PR needs driving to merge-ready, CI is red, or the user says babysit
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Babysit a PR to merge-ready
|
|
7
7
|
|
|
8
|
-
Babysit starts automatically on PR creation unless declined (
|
|
8
|
+
Babysit starts automatically on PR creation unless declined (`babysit:false`).
|
|
9
9
|
One babysitter per PR; never mutate PR topology (no rebase strategy changes,
|
|
10
10
|
no force-push).
|
|
11
11
|
|
|
@@ -17,8 +17,11 @@ selects requirements; do not wait for a rule that can only exist after assess.
|
|
|
17
17
|
|
|
18
18
|
## Method
|
|
19
19
|
|
|
20
|
-
1. Declare mode: drive (fix + merge
|
|
20
|
+
1. Declare mode in the same turn as the PR URL: drive (fix + merge, the
|
|
21
|
+
default), watch (report only), or threads-only.
|
|
21
22
|
2. Work the merge frontier in order: conflicts → review threads → CI.
|
|
23
|
+
Record a frontier brief (frontier state, next action) in task progress
|
|
24
|
+
per pass so the steps stay visible.
|
|
22
25
|
3. Classify CI before retry: flake (rerun once) vs stale base (verify with
|
|
23
26
|
`git merge-base --is-ancestor` before updating) vs real failure (fix).
|
|
24
27
|
4. Triage bot findings skeptically: reproduce or quote code before acting;
|
|
@@ -937,6 +937,9 @@ export const resolveExternalActionRequest = (
|
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
939
|
|
|
940
|
+
export const prBabysitNext = (output: string): string =>
|
|
941
|
+
`Babysit ${output} to merge-ready (drive mode default). Follow skill workit-babysit: declare mode in this turn, work conflicts, review threads, then CI, and record a frontier brief in task progress per pass. Opt out with babysit:false.`;
|
|
942
|
+
|
|
940
943
|
export const executeConcreteExternalAction = async (
|
|
941
944
|
request: ExternalActionRequest,
|
|
942
945
|
root: string,
|
|
@@ -1015,6 +1018,9 @@ export const executeConcreteExternalAction = async (
|
|
|
1015
1018
|
...result,
|
|
1016
1019
|
babysit: request.payload.babysit ?? true,
|
|
1017
1020
|
babysitSkill: "workit-babysit",
|
|
1021
|
+
...((request.payload.babysit ?? true)
|
|
1022
|
+
? { next: prBabysitNext(String((result as { output?: unknown }).output ?? "")) }
|
|
1023
|
+
: {}),
|
|
1018
1024
|
});
|
|
1019
1025
|
}
|
|
1020
1026
|
case "changelog.apply": {
|