@herdingchats/friday 0.1.569 → 0.1.573

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.
Files changed (2) hide show
  1. package/herd.mjs +10 -1
  2. package/package.json +2 -2
package/herd.mjs CHANGED
@@ -18,7 +18,7 @@ var __export = (target, all) => {
18
18
  var define_HERD_PACKAGE_default;
19
19
  var init_define_HERD_PACKAGE = __esm({
20
20
  "<define:HERD_PACKAGE>"() {
21
- define_HERD_PACKAGE_default = { version: "0.1.569", gitHead: "ac28f0e97b92fbe2178387595a511d35c3ae4953" };
21
+ define_HERD_PACKAGE_default = { version: "0.1.573", gitHead: "a4c5664fccfa6e661ed8fab4a71eaa53f4eae571" };
22
22
  }
23
23
  });
24
24
 
@@ -14036,6 +14036,13 @@ ${WORK_HELP}`
14036
14036
  };
14037
14037
  return { kind: "record", change, json };
14038
14038
  }
14039
+ var followSchema = z33.union([
14040
+ z33.object({ following: z33.literal(true) }),
14041
+ z33.object({ following: z33.literal(false), reason: z33.string() })
14042
+ ]);
14043
+ function formatFollow(follow) {
14044
+ return follow.following ? "Following it: its reviews, CI and merge will reach herd inbox." : `Not followed: ${follow.reason}`;
14045
+ }
14039
14046
  function formatWork(work, own) {
14040
14047
  const parts = [
14041
14048
  work.phase ? `${work.kind} ${PHASE_LABELS[work.phase]}` : `${work.kind} ${work.status}`
@@ -14084,6 +14091,8 @@ async function runWork(rest) {
14084
14091
  `${reply.changed ? "Recorded" : "Already recorded, unchanged"}:
14085
14092
  ${formatWork(work)}`
14086
14093
  );
14094
+ const follow = followSchema.safeParse(reply.follow);
14095
+ if (follow.success) console.log(formatFollow(follow.data));
14087
14096
  return 0;
14088
14097
  }
14089
14098
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herdingchats/friday",
3
- "version": "0.1.569",
3
+ "version": "0.1.573",
4
4
  "description": "Friday, HerdingChats' agent daemon, and the herd command it runs agents with.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,5 +22,5 @@
22
22
  "satori": "0.32.0",
23
23
  "zod": "4.6.7"
24
24
  },
25
- "gitHead": "ac28f0e97b92fbe2178387595a511d35c3ae4953"
25
+ "gitHead": "a4c5664fccfa6e661ed8fab4a71eaa53f4eae571"
26
26
  }