@gethmy/agent 1.10.5 → 1.10.7
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/dist/cli.js +6 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -6065,6 +6065,11 @@ class Pool {
|
|
|
6065
6065
|
await worker.cancel();
|
|
6066
6066
|
}
|
|
6067
6067
|
}
|
|
6068
|
+
async resetAttemptsForReassign(cardId) {
|
|
6069
|
+
if (this.isCardActive(cardId))
|
|
6070
|
+
return;
|
|
6071
|
+
await this.stateStore.resetAttempts(cardId);
|
|
6072
|
+
}
|
|
6068
6073
|
isCardActive(cardId) {
|
|
6069
6074
|
return this.implWorkers.some((w) => w.cardId === cardId && w.isActive) || this.reviewWorkers.some((w) => w.cardId === cardId && w.isActive);
|
|
6070
6075
|
}
|
|
@@ -7464,6 +7469,7 @@ async function handleBroadcast(event, client, pool, config, agentId) {
|
|
|
7464
7469
|
if (assignedAgentId === agentId) {
|
|
7465
7470
|
log.info(TAG32, `Broadcast: card ${cardId} assigned to agent`);
|
|
7466
7471
|
try {
|
|
7472
|
+
await pool.resetAttemptsForReassign(cardId);
|
|
7467
7473
|
await tryEnqueueCard(cardId, client, pool, config, agentId);
|
|
7468
7474
|
} catch (err) {
|
|
7469
7475
|
log.error(TAG32, `Failed to process assignment: ${err instanceof Error ? err.message : err}`);
|
package/dist/index.js
CHANGED
|
@@ -6064,6 +6064,11 @@ class Pool {
|
|
|
6064
6064
|
await worker.cancel();
|
|
6065
6065
|
}
|
|
6066
6066
|
}
|
|
6067
|
+
async resetAttemptsForReassign(cardId) {
|
|
6068
|
+
if (this.isCardActive(cardId))
|
|
6069
|
+
return;
|
|
6070
|
+
await this.stateStore.resetAttempts(cardId);
|
|
6071
|
+
}
|
|
6067
6072
|
isCardActive(cardId) {
|
|
6068
6073
|
return this.implWorkers.some((w) => w.cardId === cardId && w.isActive) || this.reviewWorkers.some((w) => w.cardId === cardId && w.isActive);
|
|
6069
6074
|
}
|
|
@@ -7463,6 +7468,7 @@ async function handleBroadcast(event, client, pool, config, agentId) {
|
|
|
7463
7468
|
if (assignedAgentId === agentId) {
|
|
7464
7469
|
log.info(TAG32, `Broadcast: card ${cardId} assigned to agent`);
|
|
7465
7470
|
try {
|
|
7471
|
+
await pool.resetAttemptsForReassign(cardId);
|
|
7466
7472
|
await tryEnqueueCard(cardId, client, pool, config, agentId);
|
|
7467
7473
|
} catch (err) {
|
|
7468
7474
|
log.error(TAG32, `Failed to process assignment: ${err instanceof Error ? err.message : err}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gethmy/agent",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.7",
|
|
4
4
|
"description": "Push-based agent daemon for Harmony — watches board assignments and spawns Claude CLI workers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@supabase/supabase-js": "2.95.3",
|
|
48
|
-
"@gethmy/mcp": "
|
|
48
|
+
"@gethmy/mcp": "2.9.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@harmony/shared": "workspace:*",
|