tryharness 0.7.38 → 0.7.41

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/lib/wakes.mjs CHANGED
@@ -315,12 +315,13 @@ export function createLocalWaker({
315
315
  }),
316
316
  state.get(agent));
317
317
  // A wake that holds is out until the agent reports; a result to read is sent only when none is out and holds nothing.
318
- const wake = async (agent, taskId, { holds = true } = {}) => {
318
+ // `force`: work it was woken for was not picked up (handoffs.mjs), so this wake goes past the one still out.
319
+ const wake = async (agent, taskId, { holds = true, force = false } = {}) => {
319
320
  const target = targets()[agent];
320
321
  if (!target) return "none";
321
322
  const s = of(agent),
322
323
  now = Date.now();
323
- if (s.outstandingAt && now - s.outstandingAt < ANSWER_WINDOW_MS) {
324
+ if (!force && s.outstandingAt && now - s.outstandingAt < ANSWER_WINDOW_MS) {
324
325
  s.more = true;
325
326
  log(`wake ${agent}: merged (${taskId})`);
326
327
  return "merged";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tryharness",
3
- "version": "0.7.38",
3
+ "version": "0.7.41",
4
4
  "description": "Harness Relay: the daemon that turns the agents on this machine into your personal swarm. Memory, history, and work handed between any of them.",
5
5
  "bin": {
6
6
  "tryharness": "cli.mjs"