@gethmy/agent 1.11.0 → 1.11.1

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
@@ -6164,6 +6164,16 @@ class Worker {
6164
6164
  } catch {}
6165
6165
  await this.recordOutcome(card.id, "failure");
6166
6166
  } else if (this.runId && this.aborted) {
6167
+ try {
6168
+ await this.client.updateCard(card.id, { assignedAgentId: null });
6169
+ } catch (err) {
6170
+ log.warn(this.tag, `failed to release card after stop: ${err instanceof Error ? err.message : err}`);
6171
+ }
6172
+ try {
6173
+ await runTransition(this.client, card, { removeLabels: ["agent"] });
6174
+ } catch (tErr) {
6175
+ log.warn(this.tag, `stop label cleanup failed on #${card.short_id}: ${tErr instanceof TransitionError ? tErr.detail : tErr}`);
6176
+ }
6167
6177
  try {
6168
6178
  await this.stateStore.endRun(this.runId, "paused", {
6169
6179
  errorMessage: "cancelled",
package/dist/index.js CHANGED
@@ -6163,6 +6163,16 @@ class Worker {
6163
6163
  } catch {}
6164
6164
  await this.recordOutcome(card.id, "failure");
6165
6165
  } else if (this.runId && this.aborted) {
6166
+ try {
6167
+ await this.client.updateCard(card.id, { assignedAgentId: null });
6168
+ } catch (err) {
6169
+ log.warn(this.tag, `failed to release card after stop: ${err instanceof Error ? err.message : err}`);
6170
+ }
6171
+ try {
6172
+ await runTransition(this.client, card, { removeLabels: ["agent"] });
6173
+ } catch (tErr) {
6174
+ log.warn(this.tag, `stop label cleanup failed on #${card.short_id}: ${tErr instanceof TransitionError ? tErr.detail : tErr}`);
6175
+ }
6166
6176
  try {
6167
6177
  await this.stateStore.endRun(this.runId, "paused", {
6168
6178
  errorMessage: "cancelled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethmy/agent",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
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",