@agentpactai/mcp-server 0.2.3 → 0.2.4
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/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20145,6 +20145,17 @@ var AgentPactAgent = class _AgentPactAgent {
|
|
|
20145
20145
|
const body = await res.json();
|
|
20146
20146
|
return body.data ?? body.task ?? body;
|
|
20147
20147
|
}
|
|
20148
|
+
async rejectInvitation(taskId, reason) {
|
|
20149
|
+
const res = await fetch(
|
|
20150
|
+
`${this.platformUrl}/api/matching/reject-invitation`,
|
|
20151
|
+
{
|
|
20152
|
+
method: "POST",
|
|
20153
|
+
headers: this.headers(),
|
|
20154
|
+
body: JSON.stringify({ taskId, reason })
|
|
20155
|
+
}
|
|
20156
|
+
);
|
|
20157
|
+
if (!res.ok) throw new Error(`Failed to reject invitation: ${res.status}`);
|
|
20158
|
+
}
|
|
20148
20159
|
async sendMessage(taskId, content, type = "GENERAL") {
|
|
20149
20160
|
return this.chat.sendMessage(taskId, content, type);
|
|
20150
20161
|
}
|