@gethmy/mcp 2.13.4 → 2.14.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.
- package/README.md +5 -2
- package/dist/cli.js +271 -272
- package/dist/index.js +271 -272
- package/dist/lib/api-client.js +143 -140
- package/dist/lib/oauth-refresh.js +350 -0
- package/package.json +6 -2
- package/src/api-client.ts +13 -12
- package/src/server.ts +387 -320
- package/src/skills.ts +2 -2
package/src/api-client.ts
CHANGED
|
@@ -719,6 +719,17 @@ export class HarmonyApiClient {
|
|
|
719
719
|
return this.request("GET", `/cards/${cardId}/external-links`);
|
|
720
720
|
}
|
|
721
721
|
|
|
722
|
+
async addExternalLink(
|
|
723
|
+
cardId: string,
|
|
724
|
+
url: string,
|
|
725
|
+
title?: string,
|
|
726
|
+
): Promise<{ link: CardExternalLinkRow }> {
|
|
727
|
+
return this.request("POST", `/cards/${cardId}/external-links`, {
|
|
728
|
+
url,
|
|
729
|
+
title,
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
|
|
722
733
|
// ============ ARTIFACTS (hosted HTML documents) ============
|
|
723
734
|
|
|
724
735
|
async uploadArtifact(data: {
|
|
@@ -842,6 +853,7 @@ export class HarmonyApiClient {
|
|
|
842
853
|
commentType?: string;
|
|
843
854
|
supersedesId?: string;
|
|
844
855
|
confirmsId?: string;
|
|
856
|
+
replyToId?: string;
|
|
845
857
|
agentSessionId?: string;
|
|
846
858
|
},
|
|
847
859
|
): Promise<{ comment: unknown }> {
|
|
@@ -851,6 +863,7 @@ export class HarmonyApiClient {
|
|
|
851
863
|
commentType: opts?.commentType,
|
|
852
864
|
supersedesId: opts?.supersedesId,
|
|
853
865
|
confirmsId: opts?.confirmsId,
|
|
866
|
+
replyToId: opts?.replyToId,
|
|
854
867
|
agentSessionId: opts?.agentSessionId,
|
|
855
868
|
});
|
|
856
869
|
}
|
|
@@ -1871,7 +1884,6 @@ export class HarmonyApiClient {
|
|
|
1871
1884
|
name: string;
|
|
1872
1885
|
description?: string;
|
|
1873
1886
|
steps?: unknown;
|
|
1874
|
-
stepsVersion?: number;
|
|
1875
1887
|
triggerType?: string;
|
|
1876
1888
|
}): Promise<{ playbook: unknown }> {
|
|
1877
1889
|
return this.request("POST", "/playbooks", data);
|
|
@@ -1889,17 +1901,6 @@ export class HarmonyApiClient {
|
|
|
1889
1901
|
): Promise<{ playbook: unknown }> {
|
|
1890
1902
|
return this.request("PATCH", `/playbooks/${playbookId}`, updates);
|
|
1891
1903
|
}
|
|
1892
|
-
|
|
1893
|
-
async runPlaybook(playbookId: string): Promise<{ run: unknown }> {
|
|
1894
|
-
return this.request("POST", `/playbooks/${playbookId}/run`);
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
async savePlaybookFromCard(data: {
|
|
1898
|
-
cardId: string;
|
|
1899
|
-
name?: string;
|
|
1900
|
-
}): Promise<{ playbook: unknown }> {
|
|
1901
|
-
return this.request("POST", "/playbooks/from-card", data);
|
|
1902
|
-
}
|
|
1903
1904
|
}
|
|
1904
1905
|
|
|
1905
1906
|
// Shared types for generateCardPrompt to avoid inline assertions
|