@herdingchats/friday 0.1.547 → 0.1.548

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 +18 -11
  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.547", gitHead: "2bb0029716f49d8ffbe45379ba4c6b9a40de4359" };
21
+ define_HERD_PACKAGE_default = { version: "0.1.548", gitHead: "9f61cd323e160358d58bbb45c3835f3ae1bc25b3" };
22
22
  }
23
23
  });
24
24
 
@@ -1646,7 +1646,7 @@ var init_board = __esm({
1646
1646
  });
1647
1647
 
1648
1648
  // ../common-chat/src/bot.ts
1649
- var BOT_NAME, NPM_SCOPE, FRIDAY_PACKAGE, START_COMMAND;
1649
+ var BOT_NAME, NPM_SCOPE, FRIDAY_PACKAGE, FRIDAY_COMMAND, START_COMMAND;
1650
1650
  var init_bot = __esm({
1651
1651
  "../common-chat/src/bot.ts"() {
1652
1652
  "use strict";
@@ -1654,7 +1654,8 @@ var init_bot = __esm({
1654
1654
  BOT_NAME = "Friday";
1655
1655
  NPM_SCOPE = "@herdingchats";
1656
1656
  FRIDAY_PACKAGE = `${NPM_SCOPE}/friday`;
1657
- START_COMMAND = `npx ${FRIDAY_PACKAGE} start`;
1657
+ FRIDAY_COMMAND = `npx ${FRIDAY_PACKAGE}`;
1658
+ START_COMMAND = `${FRIDAY_COMMAND} start`;
1658
1659
  }
1659
1660
  });
1660
1661
 
@@ -5146,7 +5147,9 @@ async function awaitActivations(options, chosen, since, print) {
5146
5147
  }
5147
5148
  }
5148
5149
  if (!started && said.size === 0 && Date.now() > startBy) {
5149
- print("Friday hasn't started activating your agents yet. friday status says how it's doing.");
5150
+ print(
5151
+ `Friday hasn't started activating your agents yet. ${FRIDAY_COMMAND} logs shows what it's doing.`
5152
+ );
5150
5153
  break;
5151
5154
  }
5152
5155
  await sleep2(pollMs);
@@ -5805,7 +5808,7 @@ async function runStart(options) {
5805
5808
  const repo = insideWorkTree(root);
5806
5809
  if (repo) {
5807
5810
  throw new StartError(
5808
- `${root} is inside the git repo ${repo}, so it can't be the machine's root: every conversation would load that repo's settings. Run friday start in an empty folder outside any repo, such as ~/friday.`
5811
+ `${root} is inside the git repo ${repo}, so it can't be the machine's root: every conversation would load that repo's settings. Run ${START_COMMAND} in an empty folder outside any repo, such as ~/friday.`
5809
5812
  );
5810
5813
  }
5811
5814
  if ((options.platform ?? process.platform) === "linux") {
@@ -5835,10 +5838,13 @@ async function runStart(options) {
5835
5838
  const changed = await service.install();
5836
5839
  await service.start(changed);
5837
5840
  print(
5838
- `Friday is running from ${root}, version ${currentVersion(paths)}, ${service.kind === "launchd" ? "and starts whenever you log in" : service.kind === "systemd" ? "and starts whenever you log in, as a systemd user service" : "in the background"}. friday status says how it's doing, and friday logs shows what it's done.`
5841
+ `Friday is running from ${root}, version ${currentVersion(paths)}, ${service.kind === "launchd" ? "and starts whenever you log in" : service.kind === "systemd" ? "and starts whenever you log in, as a systemd user service" : "in the background"}.`
5839
5842
  );
5840
5843
  await waitForAgents(options, asked, print);
5841
5844
  await printSetup(options, print, { waitForMachine: true });
5845
+ print(
5846
+ `${FRIDAY_COMMAND} status says how it's doing, and ${FRIDAY_COMMAND} logs shows what it's done.`
5847
+ );
5842
5848
  return 0;
5843
5849
  }
5844
5850
  async function chooseAndAsk(options, print) {
@@ -5901,6 +5907,7 @@ async function ensureInstalled(options, print) {
5901
5907
 
5902
5908
  // src/friday/supervisor.ts
5903
5909
  init_define_HERD_PACKAGE();
5910
+ init_src();
5904
5911
  import { spawn as spawn4 } from "node:child_process";
5905
5912
  import {
5906
5913
  closeSync as closeSync3,
@@ -5980,7 +5987,7 @@ var Supervisor = class {
5980
5987
  try {
5981
5988
  dir = realpathSync4(this.options.paths.current);
5982
5989
  } catch {
5983
- throw new Error("Nothing is installed in ~/.herd/current. Run friday start.");
5990
+ throw new Error(`Nothing is installed in ~/.herd/current. Run ${START_COMMAND}.`);
5984
5991
  }
5985
5992
  return [process.execPath, binOf(dir, "herd"), "daemon"];
5986
5993
  }
@@ -6125,7 +6132,7 @@ var Supervisor = class {
6125
6132
  // src/friday/main.ts
6126
6133
  var HELP = `friday: run HerdingChats' agent daemon on this computer.
6127
6134
 
6128
- Usage: friday <command>
6135
+ Usage: ${FRIDAY_COMMAND} <command>
6129
6136
 
6130
6137
  start Make this computer a machine, with the folder this runs in as its root, where
6131
6138
  Friday keeps its repos and conversations. Signs in through your browser when
@@ -6133,7 +6140,7 @@ Usage: friday <command>
6133
6140
  you log in, waits for each agent to check in, then shows what's left to set up.
6134
6141
  Safe to run again. --agents claude=lot,codex=little sets the shares without
6135
6142
  asking: off, little, some or lot, where a bare name is some and one left out off
6136
- stop Stop the daemon until you log in again, or run friday start
6143
+ stop Stop the daemon until you log in again, or run start again
6137
6144
  status Whether the daemon is running, which version, and its root
6138
6145
  logs [-f] Show the daemon's latest log lines. -f keeps following them
6139
6146
  --version Print this version
@@ -6272,7 +6279,7 @@ async function runStop(deps) {
6272
6279
  });
6273
6280
  await service.stop();
6274
6281
  deps.print(
6275
- running ? "Stopped Friday. Its terminals keep running. friday start starts it again, and so does logging in." : "Friday wasn't running."
6282
+ running ? `Stopped Friday. Its terminals keep running. ${START_COMMAND} starts it again, and so does logging in.` : "Friday wasn't running."
6276
6283
  );
6277
6284
  return 0;
6278
6285
  }
@@ -6298,7 +6305,7 @@ function runStatus(deps) {
6298
6305
  }
6299
6306
  const daemon = running && status2.daemonPid && alive2(status2.daemonPid);
6300
6307
  print(
6301
- running ? `Friday is running, version ${status2.version}${daemon ? `, with the daemon at pid ${status2.daemonPid}` : ", restarting the daemon"}.` : "Friday isn't running. friday start starts it."
6308
+ running ? `Friday is running, version ${status2.version}${daemon ? `, with the daemon at pid ${status2.daemonPid}` : ", restarting the daemon"}.` : `Friday isn't running. ${START_COMMAND} starts it.`
6302
6309
  );
6303
6310
  if (version) print(`Installed: ${version}${pin ? `, pinned to ${pin} in ${paths.pin}` : ""}.`);
6304
6311
  if (root) print(`Root: ${root}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herdingchats/friday",
3
- "version": "0.1.547",
3
+ "version": "0.1.548",
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": "2bb0029716f49d8ffbe45379ba4c6b9a40de4359"
25
+ "gitHead": "9f61cd323e160358d58bbb45c3835f3ae1bc25b3"
26
26
  }