@tacitai/mcp-server 0.6.30 → 0.6.31

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.
@@ -206,7 +206,14 @@ async function pollForCompletion(client, agentId, runId, timeoutSec) {
206
206
  agent_id: agentId,
207
207
  run_id: runId,
208
208
  });
209
- const events = timeline?.events;
209
+ const runStatus = (timeline?.['status'] ?? '');
210
+ if (runStatus === 'succeeded' || runStatus === 'completed') {
211
+ return { completed: true, failed: false, events: timeline?.['events'] ?? [] };
212
+ }
213
+ if (runStatus === 'failed' || runStatus === 'infra_failed' || runStatus === 'error') {
214
+ return { completed: false, failed: true, events: timeline?.['events'] ?? [] };
215
+ }
216
+ const events = timeline?.['events'];
210
217
  if (Array.isArray(events)) {
211
218
  for (const evt of events) {
212
219
  const e = evt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tacitai/mcp-server",
3
- "version": "0.6.30",
3
+ "version": "0.6.31",
4
4
  "description": "stdio MCP server wrapping Tacit /api/v1 REST/SSE API",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -38,5 +38,6 @@
38
38
  "@types/semver": "^7.5.0",
39
39
  "typescript": "^5.4.0",
40
40
  "vitest": "^4.1.7"
41
- }
41
+ },
42
+ "private": false
42
43
  }