tryharness 0.7.32 → 0.7.33
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/README.md +48 -0
- package/lib/actorRoster.mjs +106 -0
- package/lib/boardAccess.mjs +328 -0
- package/lib/boardCommands.mjs +28 -0
- package/lib/boardFileCommands.mjs +228 -0
- package/lib/boardFiles.mjs +584 -0
- package/lib/boardProtocol.json +470 -0
- package/lib/boardProtocol.mjs +27 -0
- package/lib/boardThreads.mjs +153 -0
- package/lib/boardTools.mjs +202 -0
- package/lib/boardWatches.mjs +92 -0
- package/lib/bridge.mjs +272 -0
- package/lib/cards.mjs +5 -83
- package/lib/coordinator.mjs +13 -3
- package/lib/daemon.mjs +809 -5459
- package/lib/goalCommands.mjs +459 -0
- package/lib/harnessModel.mjs +166 -0
- package/lib/mcp-stdio.mjs +8 -2
- package/lib/models.mjs +107 -11
- package/lib/phones.mjs +8 -121
- package/lib/roomPage.mjs +44 -0
- package/lib/runAuthority.mjs +109 -0
- package/lib/runWorker.mjs +503 -0
- package/lib/sessionControl.mjs +788 -0
- package/lib/sessionIndex.mjs +245 -0
- package/lib/store.mjs +28 -9
- package/lib/swarm.mjs +28 -9
- package/lib/taskCommands.mjs +737 -0
- package/lib/taskRuns.mjs +196 -0
- package/lib/threadRuns.mjs +471 -0
- package/package.json +1 -1
package/lib/coordinator.mjs
CHANGED
|
@@ -716,12 +716,15 @@ export function createCoordinator({
|
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
718
|
// Harness assembles the person's message at once, even while agents work; anything else waits for a quiet thread,
|
|
719
|
-
// but for the goal, which keeps up with what the person says at once.
|
|
719
|
+
// but for the goal, which keeps up with what the person says at once. A thread the person resumed gets its round
|
|
720
|
+
// with nothing new posted: resuming says only "go on", in a note.
|
|
720
721
|
const assembling = Boolean(asked) && assembles();
|
|
721
|
-
|
|
722
|
+
const resumedNow = store.meta(`coordinator-resumed:${goalId}`) === "1";
|
|
723
|
+
if (!assembling && (active || (!posts.length && !resumedNow))) {
|
|
722
724
|
if (posts.length) await keepGoalNow(thread, state);
|
|
723
725
|
return;
|
|
724
726
|
}
|
|
727
|
+
if (resumedNow) store.meta(`coordinator-resumed:${goalId}`, "");
|
|
725
728
|
// A task's own room is coordinated once it becomes a conversation: someone posted in it, not only the task and its result.
|
|
726
729
|
if (
|
|
727
730
|
store.meta(`task-room:${goalId}`) &&
|
|
@@ -887,6 +890,13 @@ export function createCoordinator({
|
|
|
887
890
|
poke(goalId);
|
|
888
891
|
};
|
|
889
892
|
|
|
893
|
+
/** The person resumed a paused thread: its round looks at where it stands, though only notes came in since
|
|
894
|
+
* (October 17: a resume reopened a thread that then sat with Codex's handoff unread). */
|
|
895
|
+
const resumed = (goalId) => {
|
|
896
|
+
store.meta(`coordinator-resumed:${goalId}`, "1");
|
|
897
|
+
poke(goalId);
|
|
898
|
+
};
|
|
899
|
+
|
|
890
900
|
/** A thread changed: run a round once it is quiet; one at a time per thread, again if more came in meanwhile. */
|
|
891
901
|
const poke = (goalId) => {
|
|
892
902
|
if (busy.has(goalId)) {
|
|
@@ -904,5 +914,5 @@ export function createCoordinator({
|
|
|
904
914
|
})
|
|
905
915
|
);
|
|
906
916
|
};
|
|
907
|
-
return { poke, heard, assembles, state: stateOf };
|
|
917
|
+
return { poke, heard, resumed, assembles, state: stateOf };
|
|
908
918
|
}
|