tryharness 0.7.75 → 0.7.77

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/swarm.mjs CHANGED
@@ -5,7 +5,13 @@ import path from "node:path";
5
5
  import { kept } from "./kept.mjs";
6
6
  import { readRunSteps } from "./runner.mjs";
7
7
  import { createSubagents } from "./subagents.mjs";
8
- import { MACHINE_RUNNERS, member, nameOf, resolveMember } from "./members.mjs";
8
+ import {
9
+ DISPATCHER,
10
+ MACHINE_RUNNERS,
11
+ member,
12
+ nameOf,
13
+ resolveMember,
14
+ } from "./members.mjs";
9
15
  import {
10
16
  agentSpecialties,
11
17
  setNote,
@@ -174,6 +180,8 @@ export function createSwarm({
174
180
  provenanceFor,
175
181
  defaults,
176
182
  coordinator,
183
+ // The dispatcher slot (dispatcher.mjs): who words the swarm's rounds, as the person picked.
184
+ dispatcher = null,
177
185
  worktrees,
178
186
  roster,
179
187
  // The coding agents here waiting to join the swarm, with their last check (readiness.mjs), for the person's browser.
@@ -520,7 +528,7 @@ export function createSwarm({
520
528
  const askOf = (run) => askOfRun(store, run);
521
529
  const linkThreads = (from, to, agent) => {
522
530
  const note = (goalId, text) =>
523
- store.roomPost({ goalId, author: "harness", kind: "note", text });
531
+ store.roomPost({ goalId, author: DISPATCHER, kind: "note", text });
524
532
  note(
525
533
  from.id,
526
534
  `${nameOf(agent)} started a thread for part of this: ${to.objective}`
@@ -709,9 +717,10 @@ export function createSwarm({
709
717
  const text = String(request.text || "");
710
718
  if (/(^|\s)@swarm\b/.test(text)) return null;
711
719
  const asked = recipient(request);
712
- // Harness counts as a name like any agent: "@claude-code … for @harness" is for both, and is no steer.
720
+ // Harness is a name like any agent's (owner, November 1: "@harness is just another agent"): "@harness …" while it
721
+ // works in a thread steers it there, and "@claude-code … for @harness" is for both, and is no steer.
713
722
  const named = asked ? [asked] : mentionsIn(text, roomAgents);
714
- if (named.length !== 1 || named[0] === "harness") return null;
723
+ if (named.length !== 1) return null;
715
724
  const [agent] = named;
716
725
  const threads = store
717
726
  .goals({ all: false })
@@ -1120,7 +1129,7 @@ export function createSwarm({
1120
1129
  if (!team.size)
1121
1130
  return {
1122
1131
  ok: false,
1123
- error: `name who the thread is for with @, one of: ${roomAgents.filter((name) => name !== agent && name !== "harness").join(", ")}`,
1132
+ error: `name who the thread is for with @, one of: ${roomAgents.filter((name) => name !== agent).join(", ")}`,
1124
1133
  };
1125
1134
  // Where its agents work is settled before the thread exists: a choice that cannot be read starts nothing.
1126
1135
  const target = request.targetMachine ?? null;
@@ -1139,8 +1148,10 @@ export function createSwarm({
1139
1148
  provenance: provenanceFor(agent, null, null, {
1140
1149
  viaServer: request.hostedCaller === true,
1141
1150
  }),
1142
- team: [...team, agent, "harness"],
1143
- facilitator: "harness",
1151
+ // The dispatcher facilitates (owner, November 1: "facilitator is dispatcher"); Harness joins like any agent, when
1152
+ // it is picked or tagged ("@harness is just another agent. stop giving it preferrential treatment").
1153
+ team: [...new Set([...team, agent])],
1154
+ facilitator: DISPATCHER,
1144
1155
  workspace: folder ? path.resolve(folder) : null,
1145
1156
  maxPosts: defaults.maxPosts,
1146
1157
  maxWakes: defaults.maxWakes,
@@ -1375,6 +1386,39 @@ export function createSwarm({
1375
1386
  request.days
1376
1387
  ),
1377
1388
  };
1389
+ // What fills the dispatcher slot (owner, November 1): the relay's LFM3-Omni (the default) or the person's own GGUF,
1390
+ // a Surplus model paid from their Harness account, an agent here on a model it offers, or an endpoint of theirs.
1391
+ // Only the person changes it.
1392
+ if (command === "board.swarm.dispatcher") {
1393
+ if (!dispatcher) return { ok: false, error: "no dispatcher slot here" };
1394
+ if (request.models)
1395
+ return {
1396
+ pending: dispatcher
1397
+ .surplusModels()
1398
+ .then((surplus) => ({ ok: true, surplus })),
1399
+ };
1400
+ if (request.setting === undefined)
1401
+ return { ok: true, ...dispatcher.state() };
1402
+ if (agent !== "user")
1403
+ return { ok: false, error: "only the person picks the dispatcher" };
1404
+ const choose = () => {
1405
+ const set = dispatcher.set(request.setting);
1406
+ return set.ok ? { ok: true, ...dispatcher.state() } : set;
1407
+ };
1408
+ if (request.setting?.provider !== "surplus") return choose();
1409
+ // A Surplus pick is one Harness runs, when its server can say which.
1410
+ return {
1411
+ pending: dispatcher.surplusModels().then((offered) =>
1412
+ offered &&
1413
+ !offered.some((model) => model.id === request.setting.model)
1414
+ ? {
1415
+ ok: false,
1416
+ error: `${request.setting.model} is not a Surplus model Harness runs (tryharness swarm dispatcher models lists them)`,
1417
+ }
1418
+ : choose()
1419
+ ),
1420
+ };
1421
+ }
1378
1422
  // Who coordinates the threads: Harness (the default), or one of the coding agents here the person picks.
1379
1423
  if (command === "board.swarm.coordinator") {
1380
1424
  const choices = coordinator.choices();
@@ -1484,8 +1528,8 @@ export function createSwarm({
1484
1528
  objective,
1485
1529
  originAgent: "user",
1486
1530
  provenance: provenanceFor("user"),
1487
- team: [...new Set([...team, "harness"])],
1488
- facilitator: "harness",
1531
+ team: [...new Set(team)],
1532
+ facilitator: DISPATCHER,
1489
1533
  workspace: where ? path.resolve(where) : null,
1490
1534
  maxPosts: defaults.maxPosts,
1491
1535
  maxWakes: defaults.maxWakes,
@@ -5,11 +5,13 @@ import { readRunSteps, stopAgentTask } from "./runner.mjs";
5
5
  import { provenanceFor } from "./provenance.mjs";
6
6
  import { LOCAL_WAKE_AGENTS } from "./wakes.mjs";
7
7
  import {
8
+ DISPATCHER,
8
9
  TAGGED_ONLY,
9
10
  aboutOf,
10
11
  member,
11
12
  nameOf,
12
13
  resolveMember,
14
+ speaksFromPersonsSide,
13
15
  speaksThroughHarness,
14
16
  } from "./members.mjs";
15
17
  import { LIVE_AGENTS, sessionOfProcess } from "./live.mjs";
@@ -616,18 +618,16 @@ export function createTaskCommands({
616
618
  }
617
619
  }
618
620
  // A job in a goal's room runs on the goal's authority; anywhere else, standing permission decides. The goal covers
619
- // jobs from the person, Harness and the coding agents on this machine, with the person's go (personsGo) unless an
620
- // agent's words came from above the poster; a job from a member that runs elsewhere (Grok Bot, Muse, a connected
621
- // app), or any job that came through Harness's server whatever name it carries, waits for the person's Start. A job
621
+ // jobs from the person and from their agents whose words came from the person's side (the agents on this machine,
622
+ // Harness in the person's window; threadAuthority.mjs), with the person's go (personsGo) unless an agent's words
623
+ // came from above the poster; a job from a member that runs elsewhere (Grok Bot, Muse, a connected app), or any job
624
+ // that came through Harness's server whatever name it carries, waits for the person's Start. A job
622
625
  // a restricted run or a review posts carries no go: it runs restricted (a review's job as a review) or waits, as
623
626
  // the run that posted it would. Harness's call as a linked window sealed it (phones.mjs fromWindow) is the served
624
627
  // page's word, never a go.
625
628
  const onGoal =
626
629
  agent === "user" ||
627
- (agent === "harness" &&
628
- !request.hostedCaller &&
629
- request.fromWindow !== true) ||
630
- (!noGo && member(agent)?.runs === "machine");
630
+ (!noGo && request.fromWindow !== true && speaksFromPersonsSide(agent));
631
631
  const agentWritten = task.trust !== "user";
632
632
  const limited = limitedCaller(request);
633
633
  if (limited && request[RUN_CALLER].review)
@@ -745,7 +745,7 @@ export function createTaskCommands({
745
745
  else if (!started.started)
746
746
  store.roomPost({
747
747
  goalId: proposed.parent_id,
748
- author: "harness",
748
+ author: DISPATCHER,
749
749
  kind: "note",
750
750
  text: `${nameOf(target)} waits for your Start: ${started.reason}`,
751
751
  });
package/lib/taskRooms.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { offerable } from "./folders.mjs";
3
+ import { DISPATCHER } from "./members.mjs";
3
4
 
4
5
  // What a thread may hold before it pauses: posts, and wakes of any one agent.
5
6
  export const DEFAULT_MAX_POSTS = 500;
@@ -67,7 +68,7 @@ export function createTaskRooms({ store, worktrees, runsHere, notifyBoard }) {
67
68
  worktrees.inPlace(room.id);
68
69
  store.roomPost({
69
70
  goalId: room.id,
70
- author: "harness",
71
+ author: DISPATCHER,
71
72
  kind: "note",
72
73
  text: `Now working in ${adopted}.`,
73
74
  });
@@ -94,13 +95,10 @@ export function createTaskRooms({ store, worktrees, runsHere, notifyBoard }) {
94
95
  ? roomOfConversation(conversation)
95
96
  : null;
96
97
  if (joined) return join(joined, task, poster, machine);
97
- // The asker is in the room it opened, roster member or not, so it can follow the work it asked for.
98
+ // The asker is in the room it opened, roster member or not, so it can follow the work it asked for. Harness joins
99
+ // like any agent: as the one asked or the one asking.
98
100
  const team = [
99
- ...new Set([
100
- task.target_agent,
101
- ...(poster !== "user" ? [poster] : []),
102
- "harness",
103
- ]),
101
+ ...new Set([task.target_agent, ...(poster !== "user" ? [poster] : [])]),
104
102
  ];
105
103
  const room = store.createGoal({
106
104
  objective: task.objective,
@@ -108,7 +106,7 @@ export function createTaskRooms({ store, worktrees, runsHere, notifyBoard }) {
108
106
  originAgent: poster,
109
107
  provenance,
110
108
  team,
111
- facilitator: "harness",
109
+ facilitator: DISPATCHER,
112
110
  workspace: task.run_workspace || folder,
113
111
  maxPosts: DEFAULT_MAX_POSTS,
114
112
  maxWakes: DEFAULT_MAX_WAKES,
package/lib/team.mjs CHANGED
@@ -350,6 +350,7 @@ export function createTeam({ store, log = () => {} }) {
350
350
  const needed = new Set(remaining.flatMap((step) => step.agents));
351
351
  const history = current.history ?? [];
352
352
  const held = new Set(history.flatMap((entry) => entry.agents));
353
+ const facilitator = store.getTask(goalId)?.goal?.facilitator ?? null;
353
354
  for (const run of store.threadRuns(goalId)) {
354
355
  if (run.kind !== "task" || run.status !== "open") continue;
355
356
  if (run.created_at <= current.at || run.created_at >= current.stepAt)
@@ -360,9 +361,10 @@ export function createTeam({ store, log = () => {} }) {
360
361
  );
361
362
  if (!from || needed.has(run.origin_agent) || needed.has(run.target_agent))
362
363
  continue;
363
- // Harness facilitates handoffs even when it holds no route step. An ask
364
- // to an outside specialist is not a redundant route handoff.
365
- if (run.target_agent !== "harness" && !held.has(run.target_agent))
364
+ // The thread's facilitator takes handoffs though it holds no route step.
365
+ // An ask to any other agent outside the route, Harness as much as any
366
+ // outside specialist, is not a redundant route handoff.
367
+ if (run.target_agent !== facilitator && !held.has(run.target_agent))
366
368
  continue;
367
369
  const task = store.getTask(run.id);
368
370
  if (!task?.context_refs.some((ref) => ref.kind === "ask")) continue;
@@ -1,5 +1,5 @@
1
1
  import { picksIn } from "./models.mjs";
2
- import { MEMBERS, nameOf } from "./members.mjs";
2
+ import { DISPATCHER, MEMBERS, nameOf } from "./members.mjs";
3
3
  import { notifyDesktop } from "./notify.mjs";
4
4
 
5
5
  // A name after @ is an id or a one-word alias ("@grok" is Grok Bot); "@claude" is Claude Code.
@@ -70,7 +70,7 @@ export function createThreadActions({
70
70
  });
71
71
  store.roomPost({
72
72
  goalId,
73
- author: "harness",
73
+ author: DISPATCHER,
74
74
  kind: "note",
75
75
  text: `Paused: ${reason}. Resume it from the thread when you want it to go on.`,
76
76
  });
@@ -179,6 +179,8 @@ export function createThreadActions({
179
179
  const told = [];
180
180
  for (const agent of names) {
181
181
  if (agent === author) continue;
182
+ // A post for the dispatcher reaches it through the thread's round (swarm.mjs heardBy), never as an agent's wake.
183
+ if (agent === DISPATCHER) continue;
182
184
  // The person's words go whole; another agent's mention is cut, its post whole in the thread.
183
185
  const said = author === "user" ? post.text : post.text.slice(0, 300);
184
186
  const reason = why
@@ -192,7 +194,7 @@ export function createThreadActions({
192
194
  const computer = address.ok ? address.forAgent(agent) : null;
193
195
  if (!address.ok && runsHere(agent)) refuse(address.error);
194
196
  // An agent the person took out of their swarm (lineup.mjs) is not woken, whatever names it.
195
- else if (agent !== "harness" && !lineup.has(agent))
197
+ else if (!lineup.has(agent))
196
198
  refuse(
197
199
  `it is not in your swarm. Add it with: npx tryharness agents add ${agent}`
198
200
  );
@@ -297,31 +299,6 @@ export function createThreadActions({
297
299
  if (outcome === "none") wakeFromServer(agent, taskId);
298
300
  });
299
301
 
300
- /**
301
- * Work a woken agent never picked up goes to another in its asker's name. The late agent's task is taken back first,
302
- * so a wake that lands later cannot start the same work twice.
303
- */
304
- const moveHandoff = (task, to) => {
305
- const thread = store.getTask(task.parent_id);
306
- if (thread?.kind !== "goal" || thread.status !== "open") return false;
307
- store.removeTask(task.id);
308
- notifyBoard(store.getTask(task.id));
309
- const prefix = `Asked in "${thread.objective}": `;
310
- const words = task.objective.startsWith(prefix)
311
- ? task.objective.slice(prefix.length)
312
- : task.objective;
313
- const asker =
314
- task.origin_agent === to ? thread.goal.facilitator : task.origin_agent;
315
- ask(
316
- thread.id,
317
- to,
318
- `${nameOf(task.target_agent)} didn't pick this up, so it is yours: ${words}`,
319
- asker,
320
- words
321
- );
322
- return true;
323
- };
324
-
325
302
  /**
326
303
  * Work that stopped moving (stuck.mjs) is said once where it belongs: in its thread by the lead, whose coordinator
327
304
  * looks again; loose work is also told to whoever posted it (the person on the desktop, an agent in the work's room
@@ -384,7 +361,7 @@ export function createThreadActions({
384
361
  store.addContribution({
385
362
  taskId: task.id,
386
363
  kind: "note",
387
- author: "harness",
364
+ author: DISPATCHER,
388
365
  text: finding.text,
389
366
  source: "stuck",
390
367
  });
@@ -403,7 +380,6 @@ export function createThreadActions({
403
380
  wakeFor,
404
381
  say,
405
382
  wakeAgain,
406
- moveHandoff,
407
383
  tellStuck,
408
384
  };
409
385
  }
@@ -1,4 +1,10 @@
1
- import { member, nameOf, speaksThroughHarness } from "./members.mjs";
1
+ import {
2
+ DISPATCHER,
3
+ member,
4
+ nameOf,
5
+ speaksFromPersonsSide,
6
+ speaksThroughHarness,
7
+ } from "./members.mjs";
2
8
 
3
9
  /**
4
10
  * Whose go a run in a thread carries. Work a thread starts on its own runs on the thread's authority only when the
@@ -53,6 +59,12 @@ export function createThreadAuthority({
53
59
  const readByGuard = (asker, hosted) =>
54
60
  fromElsewhere(asker) || (hosted && speaksThroughHarness(asker));
55
61
 
62
+ // Whose asks carry the person's go as they are: the person's own agents whose words reached this computer from the
63
+ // person's own computers or device, not through Harness's server. Read the same for every agent (owner, November 1:
64
+ // "@harness is just another agent").
65
+ const fromPersonsSide = (asker, hosted) =>
66
+ !hosted && speaksFromPersonsSide(asker);
67
+
56
68
  /** Whether `asker`'s request for `agent` carries the person's go. `hosted`: the request came through Harness. */
57
69
  // A coding agent here asking from a restricted run or a review carries no go: that run had none to pass on.
58
70
  // `window`: Harness's call as a linked window sealed it (phones.mjs fromWindow). The page that window runs is served
@@ -65,8 +77,9 @@ export function createThreadAuthority({
65
77
  asker === "user" ||
66
78
  (!window &&
67
79
  !readAsOrders(guard) &&
68
- ((asker === "harness" && !hosted && !limited) ||
69
- (!hosted && !limited && member(asker)?.road === "local") ||
80
+ // The dispatcher hands on the person's own work; every agent is read by where its words came from.
81
+ ((asker === DISPATCHER && !hosted && !limited) ||
82
+ (!limited && fromPersonsSide(asker, hosted)) ||
70
83
  (readByGuard(asker, hosted) && guardPasses(guard))) &&
71
84
  !setToWait(agent));
72
85
 
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { createHash, randomUUID } from "node:crypto";
4
- import { MEMBERS, nameOf } from "./members.mjs";
4
+ import { DISPATCHER, MEMBERS, nameOf } from "./members.mjs";
5
5
  import { computerHandle } from "./computerAddress.mjs";
6
6
  import { oneLine } from "./oneLine.mjs";
7
7
  import { setRunPick } from "./models.mjs";
@@ -173,7 +173,7 @@ export function createThreadRuns({
173
173
  );
174
174
  store.roomPost({
175
175
  goalId: task.parent_id,
176
- author: "harness",
176
+ author: DISPATCHER,
177
177
  kind: "note",
178
178
  text: `${nameOf(agent)}'s turn ran on this computer, in its T3 Code checkout: ${why} Its next turn goes back to T3 Code, which is told what it missed.`,
179
179
  });
@@ -245,7 +245,7 @@ export function createThreadRuns({
245
245
  if (!running) return;
246
246
  const who = nameOf(agent);
247
247
  const note = (text) => {
248
- store.roomPost({ goalId, author: "harness", kind: "note", text });
248
+ store.roomPost({ goalId, author: DISPATCHER, kind: "note", text });
249
249
  notifyBoard(store.getTask(goalId));
250
250
  return text;
251
251
  };
@@ -338,7 +338,7 @@ export function createThreadRuns({
338
338
  store.meta(key, "1");
339
339
  store.roomPost({
340
340
  goalId,
341
- author: "harness",
341
+ author: DISPATCHER,
342
342
  kind: "note",
343
343
  text: `${nameOf(wake.target_agent)} waits for your Start: ${admitted.reason}`,
344
344
  });
@@ -352,7 +352,7 @@ export function createThreadRuns({
352
352
  {
353
353
  review = false,
354
354
  go = false,
355
- asker = "harness",
355
+ asker = DISPATCHER,
356
356
  pick = null,
357
357
  words = null,
358
358
  recovering = false,
@@ -422,7 +422,7 @@ export function createThreadRuns({
422
422
  const noteOnce = (key, text) => {
423
423
  if (store.meta(key)) return;
424
424
  store.meta(key, "1");
425
- store.roomPost({ goalId, author: "harness", kind: "note", text });
425
+ store.roomPost({ goalId, author: DISPATCHER, kind: "note", text });
426
426
  notifyBoard(store.getTask(goalId));
427
427
  };
428
428
  // A current choice may move the next turn. Older preferences cannot split
@@ -602,7 +602,7 @@ export function createThreadRuns({
602
602
  store.meta(`t3-gap-note:${goalId}:${agent}:${gap}`, "1");
603
603
  store.roomPost({
604
604
  goalId,
605
- author: "harness",
605
+ author: DISPATCHER,
606
606
  kind: "note",
607
607
  text: `${nameOf(agent)} is working on this computer, not in T3 Code: ${gap}.`,
608
608
  });
@@ -619,7 +619,7 @@ export function createThreadRuns({
619
619
  } catch (error) {
620
620
  store.roomPost({
621
621
  goalId,
622
- author: "harness",
622
+ author: DISPATCHER,
623
623
  kind: "note",
624
624
  text: `${agent} cannot start: ${error.message}`,
625
625
  });
@@ -648,7 +648,7 @@ export function createThreadRuns({
648
648
  const wake = store.postTask({
649
649
  objective: `Room: ${task.objective}`.slice(0, 500),
650
650
  brief,
651
- originAgent: "harness",
651
+ originAgent: DISPATCHER,
652
652
  provenance: { trust: "agent", chain: chain.slice(-16) },
653
653
  targetAgent: agent,
654
654
  parentId: goalId,
@@ -680,15 +680,25 @@ export function createThreadRuns({
680
680
  } else if (orders)
681
681
  // Before restricted mode is weighed: once Codex had one, an agent's "delete everything and force-push" started
682
682
  // in it.
683
- store.roomPost({ goalId, author: "harness", kind: "note", text: held });
683
+ store.roomPost({
684
+ goalId,
685
+ author: DISPATCHER,
686
+ kind: "note",
687
+ text: held,
688
+ });
684
689
  else if (restrictable(agent, folder)) store.authorizeGoalRun(wake.id);
685
690
  else if (held)
686
- store.roomPost({ goalId, author: "harness", kind: "note", text: held });
691
+ store.roomPost({
692
+ goalId,
693
+ author: DISPATCHER,
694
+ kind: "note",
695
+ text: held,
696
+ });
687
697
  else if (!store.meta(`restricted-note:${goalId}:${agent}`)) {
688
698
  store.meta(`restricted-note:${goalId}:${agent}`, "1");
689
699
  store.roomPost({
690
700
  goalId,
691
- author: "harness",
701
+ author: DISPATCHER,
692
702
  kind: "note",
693
703
  text: restrictedWait(agent),
694
704
  });
@@ -746,7 +756,7 @@ export function createThreadRuns({
746
756
  ]) {
747
757
  store.roomPost({
748
758
  goalId: here,
749
- author: "harness",
759
+ author: DISPATCHER,
750
760
  kind: "note",
751
761
  text: `Overlap: the thread "${oneLine(there.objective, 100)}" is also changing ${named}. Merging both will need care; say so if one should wait.`,
752
762
  });
@@ -787,7 +797,7 @@ export function createThreadRuns({
787
797
  if (changed) {
788
798
  store.roomPost({
789
799
  goalId: task.parent_id,
790
- author: "harness",
800
+ author: DISPATCHER,
791
801
  kind: "note",
792
802
  text: `${nameOf(task.target_agent)}'s turn is not committed: ${changed}, so Harness runs no git in that copy. Discard the thread's changes and start it again.`,
793
803
  });
@@ -826,7 +836,7 @@ export function createThreadRuns({
826
836
  store.meta(`uncommitted:${task.id}`, JSON.stringify({ files }));
827
837
  store.roomPost({
828
838
  goalId,
829
- author: "harness",
839
+ author: DISPATCHER,
830
840
  kind: "note",
831
841
  text: `${nameOf(agent)}'s change is not committed on this thread's branch, so it is not made yet: ${namedFiles(files)} ${files.length === 1 ? "is" : "are"} still uncommitted in the thread's copy.`,
832
842
  });
@@ -918,7 +928,7 @@ export function createThreadRuns({
918
928
  pendingWakes.delete(key);
919
929
  store.roomPost({
920
930
  goalId: goal.id,
921
- author: "harness",
931
+ author: DISPATCHER,
922
932
  kind: "note",
923
933
  text:
924
934
  nameOf(agent) +
package/lib/verdicts.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import path from "node:path";
2
2
  import { laneHead, containsCommit, personChanges } from "./projectGit.mjs";
3
3
  import { verdictEntriesByRun } from "./record.mjs";
4
- import { nameOf } from "./members.mjs";
4
+ import { DISPATCHER, nameOf } from "./members.mjs";
5
5
 
6
6
  const reasonLine = (value) => {
7
7
  const reason = typeof value === "string" ? value.trim() : "";
@@ -147,7 +147,7 @@ export function createVerdicts({
147
147
  entry.work.body.agent,
148
148
  `Return the result to Make. What should change: ${why}\n\nThe result: ${entry.work.body.summary}`,
149
149
  {
150
- asker: source === "explicit" ? "user" : "harness",
150
+ asker: source === "explicit" ? "user" : DISPATCHER,
151
151
  go: source === "explicit",
152
152
  words: entry.work.body.summary,
153
153
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "tryharness",
3
- "version": "0.7.75",
3
+ "version": "0.7.77",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "tryharness",
9
- "version": "0.7.75",
9
+ "version": "0.7.77",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "2.0.0",
@@ -32,9 +32,9 @@
32
32
  "node": ">=18"
33
33
  },
34
34
  "optionalDependencies": {
35
- "tryharness-desktop-darwin-arm64": "0.7.74",
36
- "tryharness-desktop-darwin-x64": "0.7.74",
37
- "tryharness-desktop-linux-x64": "0.7.74"
35
+ "tryharness-desktop-darwin-arm64": "0.7.77",
36
+ "tryharness-desktop-darwin-x64": "0.7.77",
37
+ "tryharness-desktop-linux-x64": "0.7.77"
38
38
  }
39
39
  },
40
40
  "node_modules/@agentclientprotocol/sdk": {
@@ -1051,9 +1051,9 @@
1051
1051
  }
1052
1052
  },
1053
1053
  "node_modules/tryharness-desktop-darwin-arm64": {
1054
- "version": "0.7.74",
1055
- "resolved": "https://registry.npmjs.org/tryharness-desktop-darwin-arm64/-/tryharness-desktop-darwin-arm64-0.7.74.tgz",
1056
- "integrity": "sha512-TSkQwm6fDOq3sfEkzOkEiB8JEOpiC/GCp7RZ4SzIi4ajV4VZszxdq5HUuIfq7A8T80lUmBLpHTKcKiWUFA6I3A==",
1054
+ "version": "0.7.77",
1055
+ "resolved": "https://registry.npmjs.org/tryharness-desktop-darwin-arm64/-/tryharness-desktop-darwin-arm64-0.7.77.tgz",
1056
+ "integrity": "sha512-i4kRxn7vxm8sSwPgL7UEexhcGMdvt5klKgeI6E8UWXbMZu1U9i4XfeRIogtZIHECLVPFWaY2Jzk7E7ZvfAqhWg==",
1057
1057
  "cpu": [
1058
1058
  "arm64"
1059
1059
  ],
@@ -1064,9 +1064,9 @@
1064
1064
  ]
1065
1065
  },
1066
1066
  "node_modules/tryharness-desktop-darwin-x64": {
1067
- "version": "0.7.74",
1068
- "resolved": "https://registry.npmjs.org/tryharness-desktop-darwin-x64/-/tryharness-desktop-darwin-x64-0.7.74.tgz",
1069
- "integrity": "sha512-DRHJq4xd+9yp5Qns3HdnFm2VkFOcuQZ6u5BCjs4yQgKukDth175C5y51kUdkn4atR0oOfwhs9oGc9ojqXLsVgw==",
1067
+ "version": "0.7.77",
1068
+ "resolved": "https://registry.npmjs.org/tryharness-desktop-darwin-x64/-/tryharness-desktop-darwin-x64-0.7.77.tgz",
1069
+ "integrity": "sha512-Q3xmyu+ADf7j3mWB7MDBXrNsAF/reNSLC7nhZDZ/2hC+daS+ieu0kCsmxQI2j7edYG2VgxZIffi6QIaq8Exs8w==",
1070
1070
  "cpu": [
1071
1071
  "x64"
1072
1072
  ],
@@ -1077,9 +1077,9 @@
1077
1077
  ]
1078
1078
  },
1079
1079
  "node_modules/tryharness-desktop-linux-x64": {
1080
- "version": "0.7.74",
1081
- "resolved": "https://registry.npmjs.org/tryharness-desktop-linux-x64/-/tryharness-desktop-linux-x64-0.7.74.tgz",
1082
- "integrity": "sha512-belBvr+8T5TIGNllPzlqW35oQ2dWNix1KtCsRaMYIpz6lrOooA2v1BorWSCImt2x2bWexnK0BPlvCBe+r/vauA==",
1080
+ "version": "0.7.77",
1081
+ "resolved": "https://registry.npmjs.org/tryharness-desktop-linux-x64/-/tryharness-desktop-linux-x64-0.7.77.tgz",
1082
+ "integrity": "sha512-M3QXQnISASQ2uI/y2tF/9KYs0Teuc4VR8FoLMXPOo01EwfM2Lf1+wy1ZWH2iePkV3o49Verc6DtaP6uM/iKsyw==",
1083
1083
  "cpu": [
1084
1084
  "x64"
1085
1085
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tryharness",
3
- "version": "0.7.75",
3
+ "version": "0.7.77",
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"
@@ -48,8 +48,8 @@
48
48
  "zod": "4.6.7"
49
49
  },
50
50
  "optionalDependencies": {
51
- "tryharness-desktop-darwin-arm64": "0.7.74",
52
- "tryharness-desktop-darwin-x64": "0.7.74",
53
- "tryharness-desktop-linux-x64": "0.7.74"
51
+ "tryharness-desktop-darwin-arm64": "0.7.77",
52
+ "tryharness-desktop-darwin-x64": "0.7.77",
53
+ "tryharness-desktop-linux-x64": "0.7.77"
54
54
  }
55
55
  }