@herdingchats/friday 0.1.613 → 0.1.621

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 +12 -5
  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.613", gitHead: "81ca2a791596886d867b9d1da1ba8e0430bed3c4" };
21
+ define_HERD_PACKAGE_default = { version: "0.1.621", gitHead: "a26572f3278fa3eeb800c1a4269dddcd279cf117" };
22
22
  }
23
23
  });
24
24
 
@@ -1496,8 +1496,6 @@ var init_conversation_state = __esm({
1496
1496
  waiting: "eyes",
1497
1497
  working: "hourglass_flowing_sand",
1498
1498
  handled: "white_check_mark",
1499
- // Seen, and not meant for the bot, so it left the message alone.
1500
- passed: "ok_hand",
1501
1499
  stuck: "warning"
1502
1500
  };
1503
1501
  conversationStateSchema = z13.enum([
@@ -5662,6 +5660,9 @@ StandardError=append:${context2.paths.supervisorLog}
5662
5660
  WantedBy=default.target
5663
5661
  `;
5664
5662
  }
5663
+ function makeLogFolder(context2) {
5664
+ mkdirSync8(dirname8(context2.paths.supervisorLog), { recursive: true });
5665
+ }
5665
5666
  function writeIfChanged(path, text4) {
5666
5667
  if (existsSync7(path) && readFileSync7(path, "utf8") === text4) return false;
5667
5668
  mkdirSync8(dirname8(path), { recursive: true });
@@ -5675,7 +5676,10 @@ function launchd(context2) {
5675
5676
  const loaded = async () => (await context2.run("launchctl", ["print", target])).status === 0;
5676
5677
  return {
5677
5678
  kind: "launchd",
5678
- install: async () => writeIfChanged(plist, launchAgentPlist(context2)),
5679
+ install: async () => {
5680
+ makeLogFolder(context2);
5681
+ return writeIfChanged(plist, launchAgentPlist(context2));
5682
+ },
5679
5683
  async start(changed) {
5680
5684
  if (await loaded()) {
5681
5685
  if (!changed) return;
@@ -5703,7 +5707,10 @@ function systemd(context2) {
5703
5707
  };
5704
5708
  return {
5705
5709
  kind: "systemd",
5706
- install: async () => writeIfChanged(unit, systemdUnit(context2)),
5710
+ install: async () => {
5711
+ makeLogFolder(context2);
5712
+ return writeIfChanged(unit, systemdUnit(context2));
5713
+ },
5707
5714
  async start(changed) {
5708
5715
  if (changed) await systemctl("daemon-reload");
5709
5716
  await systemctl("enable", SYSTEMD_UNIT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herdingchats/friday",
3
- "version": "0.1.613",
3
+ "version": "0.1.621",
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": "81ca2a791596886d867b9d1da1ba8e0430bed3c4"
25
+ "gitHead": "a26572f3278fa3eeb800c1a4269dddcd279cf117"
26
26
  }