@gethmy/mcp 2.7.0 → 2.8.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api-client.ts +28 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethmy/mcp",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "MCP server for Harmony Kanban board - enables AI coding agents to manage your boards",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/api-client.ts CHANGED
@@ -638,7 +638,13 @@ export class HarmonyApiClient {
638
638
  data: {
639
639
  agentIdentifier: string;
640
640
  agentName: string;
641
- status?: "working" | "blocked" | "paused" | "completed";
641
+ status?:
642
+ | "working"
643
+ | "blocked"
644
+ | "waiting"
645
+ | "paused"
646
+ | "failed"
647
+ | "completed";
642
648
  progressPercent?: number;
643
649
  currentTask?: string;
644
650
  blockers?: string[];
@@ -652,6 +658,16 @@ export class HarmonyApiClient {
652
658
  cacheReadInputTokens?: number;
653
659
  modelName?: string;
654
660
  recentActions?: { action: string; ts: string }[];
661
+ failureReason?:
662
+ | "verification"
663
+ | "review"
664
+ | "daemon_restart"
665
+ | "budget"
666
+ | "other";
667
+ failureSummary?: string;
668
+ recoveryBranch?: string;
669
+ attemptNumber?: number;
670
+ maxAttempts?: number;
655
671
  },
656
672
  ): Promise<{ session: unknown; created: boolean }> {
657
673
  return this.request("POST", `/cards/${cardId}/agent-context`, data);
@@ -660,7 +676,7 @@ export class HarmonyApiClient {
660
676
  async endAgentSession(
661
677
  cardId: string,
662
678
  data?: {
663
- status?: "completed" | "paused";
679
+ status?: "completed" | "paused" | "failed";
664
680
  progressPercent?: number;
665
681
  costCents?: number;
666
682
  inputTokens?: number;
@@ -668,6 +684,16 @@ export class HarmonyApiClient {
668
684
  cacheCreationInputTokens?: number;
669
685
  cacheReadInputTokens?: number;
670
686
  modelName?: string;
687
+ failureReason?:
688
+ | "verification"
689
+ | "review"
690
+ | "daemon_restart"
691
+ | "budget"
692
+ | "other";
693
+ failureSummary?: string;
694
+ recoveryBranch?: string;
695
+ attemptNumber?: number;
696
+ maxAttempts?: number;
671
697
  },
672
698
  ): Promise<{ session: unknown }> {
673
699
  return this.request("DELETE", `/cards/${cardId}/agent-context`, data);