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/boardAccess.mjs +1 -0
- package/lib/boardProtocol.json +35 -3
- package/lib/boardThreads.mjs +3 -2
- package/lib/boardWatches.mjs +5 -0
- package/lib/bridge.mjs +17 -2
- package/lib/coordinator.mjs +11 -1
- package/lib/daemon.mjs +210 -18
- package/lib/goalCommands.mjs +2 -2
- package/lib/goals.mjs +14 -3
- package/lib/handoffs.mjs +117 -0
- package/lib/mcp-stdio.mjs +69 -15
- package/lib/notify.mjs +5 -4
- package/lib/onboard.mjs +1 -0
- package/lib/plans.mjs +538 -0
- package/lib/runWorker.mjs +18 -6
- package/lib/runner.mjs +6 -1
- package/lib/store.mjs +22 -1
- package/lib/swarm.mjs +98 -18
- package/lib/taskCommands.mjs +34 -2
- package/lib/threadView.mjs +426 -0
- package/lib/wakes.mjs +3 -2
- package/package.json +1 -1
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
|
-
|
|
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.
|
|
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"
|