@brainervirus/workit-pi 1.0.6 → 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/dist/workit.js CHANGED
@@ -11100,7 +11100,7 @@ async function runAuthorizedExternalAction(input, effect) {
11100
11100
  const preflight = typeof contract.details === "object" && contract.details !== null && contract.details.outcome === "not_started";
11101
11101
  const outcome = input.failureOutcome ?? (preflight ? "not_started" : "unknown");
11102
11102
  const settled = settleWithRefresh(outcome, settle(outcome));
11103
- if (!settled.ok && outcome === "unknown")
11103
+ if (!settled.ok)
11104
11104
  return settled;
11105
11105
  return contract;
11106
11106
  }
@@ -16890,7 +16890,7 @@ var resolveExternalActionRequest = (root, request, preservedDateMs) => {
16890
16890
  if (preview.error)
16891
16891
  return failure("invalid_input", preview.error);
16892
16892
  const target = String(preview.path);
16893
- const relative = path16.relative(path16.resolve(root), target).replaceAll(path16.sep, "/") || "CHANGELOG.md";
16893
+ const relative = path16.relative(fs12.realpathSync(root), target).replaceAll(path16.sep, "/") || "CHANGELOG.md";
16894
16894
  const normalized = {
16895
16895
  operation: request.operation,
16896
16896
  payload: {
@@ -16998,6 +16998,7 @@ var resolveExternalActionRequest = (root, request, preservedDateMs) => {
16998
16998
  return failure("storage_error", "external action target could not be resolved");
16999
16999
  }
17000
17000
  };
17001
+ var prBabysitNext = (output) => `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.`;
17001
17002
  var executeConcreteExternalAction = async (request, root, marker, dateMs, step, workText, caller, approvedBeforeDigest, approvedBeforeExists) => {
17002
17003
  if (localAction(request.operation)) {
17003
17004
  if (!caller)
@@ -17041,7 +17042,8 @@ var executeConcreteExternalAction = async (request, root, marker, dateMs, step,
17041
17042
  return result.error || result.ok === false ? unknown2(request.operation) : success(null, null, {
17042
17043
  ...result,
17043
17044
  babysit: request.payload.babysit ?? true,
17044
- babysitSkill: "workit-babysit"
17045
+ babysitSkill: "workit-babysit",
17046
+ ...request.payload.babysit ?? true ? { next: prBabysitNext(String(result.output ?? "")) } : {}
17045
17047
  });
17046
17048
  }
17047
17049
  case "changelog.apply": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-pi",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Workit native extension for Pi — tools, method skills, and session continuity",
5
5
  "keywords": [
6
6
  "agentic-coding",
@@ -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 (`--no-babysit`).
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), watch (report only), or threads-only.
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;