@gethmy/agent 1.14.1 → 1.14.2

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 CHANGED
@@ -2311,6 +2311,12 @@ class MergeMonitor {
2311
2311
  log.warn(TAG7, `Failed to update card: ${err instanceof Error ? err.message : err}`);
2312
2312
  }
2313
2313
  }
2314
+ try {
2315
+ await this.client.updateCard(card.id, { assignedAgentId: null });
2316
+ log.info(TAG7, `Cleared agent assignment on #${card.short_id}`);
2317
+ } catch (err) {
2318
+ log.warn(TAG7, `Failed to clear agent assignment on #${card.short_id}: ${err instanceof Error ? err.message : err}`);
2319
+ }
2314
2320
  const branchName = extractBranchFromDescription(card.description);
2315
2321
  if (branchName) {
2316
2322
  try {
@@ -4604,7 +4610,7 @@ class ProgressTracker {
4604
4610
  this.transitionTo("testing");
4605
4611
  }
4606
4612
  } else if (name === "mcp__harmony__harmony_end_agent_session") {
4607
- this.transitionTo("finishing");
4613
+ this.enterFinishingAndStop();
4608
4614
  }
4609
4615
  if (name === "mcp__harmony__harmony_toggle_subtask" && this.subtaskMode) {
4610
4616
  const val = this.extractString(input, "completed");
@@ -4663,6 +4669,14 @@ class ProgressTracker {
4663
4669
  this.lastAction = "";
4664
4670
  this.scheduleUpdate(PHASES[newPhase].label);
4665
4671
  }
4672
+ enterFinishingAndStop() {
4673
+ if (PHASE_ORDER.finishing > PHASE_ORDER[this.phase]) {
4674
+ this.runEventSink?.recordPhaseChanged("finishing", this.phase);
4675
+ this.phase = "finishing";
4676
+ this.progress = Math.max(this.progress, PHASES.finishing.min);
4677
+ }
4678
+ this.stop();
4679
+ }
4666
4680
  incrementProgress() {
4667
4681
  const config = PHASES[this.phase];
4668
4682
  const range = config.max - config.min;
package/dist/index.js CHANGED
@@ -2310,6 +2310,12 @@ class MergeMonitor {
2310
2310
  log.warn(TAG7, `Failed to update card: ${err instanceof Error ? err.message : err}`);
2311
2311
  }
2312
2312
  }
2313
+ try {
2314
+ await this.client.updateCard(card.id, { assignedAgentId: null });
2315
+ log.info(TAG7, `Cleared agent assignment on #${card.short_id}`);
2316
+ } catch (err) {
2317
+ log.warn(TAG7, `Failed to clear agent assignment on #${card.short_id}: ${err instanceof Error ? err.message : err}`);
2318
+ }
2313
2319
  const branchName = extractBranchFromDescription(card.description);
2314
2320
  if (branchName) {
2315
2321
  try {
@@ -4603,7 +4609,7 @@ class ProgressTracker {
4603
4609
  this.transitionTo("testing");
4604
4610
  }
4605
4611
  } else if (name === "mcp__harmony__harmony_end_agent_session") {
4606
- this.transitionTo("finishing");
4612
+ this.enterFinishingAndStop();
4607
4613
  }
4608
4614
  if (name === "mcp__harmony__harmony_toggle_subtask" && this.subtaskMode) {
4609
4615
  const val = this.extractString(input, "completed");
@@ -4662,6 +4668,14 @@ class ProgressTracker {
4662
4668
  this.lastAction = "";
4663
4669
  this.scheduleUpdate(PHASES[newPhase].label);
4664
4670
  }
4671
+ enterFinishingAndStop() {
4672
+ if (PHASE_ORDER.finishing > PHASE_ORDER[this.phase]) {
4673
+ this.runEventSink?.recordPhaseChanged("finishing", this.phase);
4674
+ this.phase = "finishing";
4675
+ this.progress = Math.max(this.progress, PHASES.finishing.min);
4676
+ }
4677
+ this.stop();
4678
+ }
4665
4679
  incrementProgress() {
4666
4680
  const config = PHASES[this.phase];
4667
4681
  const range = config.max - config.min;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethmy/agent",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
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",