@kadoa/mcp 0.4.3-rc.3 → 0.4.4-rc.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.
Files changed (2) hide show
  1. package/dist/index.js +39 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50244,6 +50244,41 @@ function coerceJson() {
50244
50244
  function isRealTimeInterval(interval) {
50245
50245
  return interval?.toUpperCase().replace("-", "_") === "REAL_TIME";
50246
50246
  }
50247
+ function deriveStatusLabel(workflow) {
50248
+ const ds = workflow.displayState ?? workflow.state;
50249
+ switch (ds) {
50250
+ case "ACTIVE":
50251
+ if (isRealTimeInterval(workflow.updateInterval))
50252
+ return "Running";
50253
+ if (!workflow.updateInterval || workflow.updateInterval === "only once")
50254
+ return "Complete";
50255
+ return "Scheduled";
50256
+ case "RUNNING":
50257
+ return "Running";
50258
+ case "FAILED":
50259
+ return "Failed";
50260
+ case "PAUSED":
50261
+ return "Paused";
50262
+ case "SETUP":
50263
+ return "Sample Processing";
50264
+ case "QUEUED":
50265
+ return "Queued";
50266
+ case "PENDING_START":
50267
+ return "Not Started";
50268
+ case "PREVIEW":
50269
+ return "Pending Review";
50270
+ case "DEGRADED":
50271
+ return "Degraded";
50272
+ case "DELETED":
50273
+ return "Deleted";
50274
+ case "COMPLIANCE_REVIEW":
50275
+ return "Compliance Review";
50276
+ case "COMPLIANCE_REJECTED":
50277
+ return "Rejected";
50278
+ default:
50279
+ return ds ?? "Unknown";
50280
+ }
50281
+ }
50247
50282
  function workflowDashboardUrl(workflowId) {
50248
50283
  return `${DASHBOARD_BASE_URL}/workflow/${workflowId}`;
50249
50284
  }
@@ -50666,7 +50701,7 @@ function registerTools(server, ctx) {
50666
50701
  id: w.id,
50667
50702
  name: w.name,
50668
50703
  dashboardUrl: workflowDashboardUrl(w.id),
50669
- status: w.displayState ?? w.state,
50704
+ status: deriveStatusLabel(w),
50670
50705
  urls: w.urls,
50671
50706
  totalRecords: w.totalRecords,
50672
50707
  startedAt: w.startedAt,
@@ -50690,7 +50725,7 @@ function registerTools(server, ctx) {
50690
50725
  name: workflow.name,
50691
50726
  dashboardUrl: workflowDashboardUrl(workflow.id),
50692
50727
  description: workflow.description,
50693
- status: workflow.displayState ?? workflow.state,
50728
+ status: deriveStatusLabel(workflow),
50694
50729
  urls: workflow.urls,
50695
50730
  prompt: additionalData?.userPrompt,
50696
50731
  entity: workflow.entity,
@@ -50813,7 +50848,7 @@ function registerTools(server, ctx) {
50813
50848
  try {
50814
50849
  const workflow = await ctx.client.workflow.get(args.workflowId);
50815
50850
  workflowName = workflow.name || args.workflowId;
50816
- workflowStatus = workflow.displayState ?? workflow.state ?? "unknown";
50851
+ workflowStatus = deriveStatusLabel(workflow);
50817
50852
  } catch {}
50818
50853
  if (!args.confirmed) {
50819
50854
  return jsonResult({
@@ -51444,7 +51479,7 @@ var package_default;
51444
51479
  var init_package = __esm(() => {
51445
51480
  package_default = {
51446
51481
  name: "@kadoa/mcp",
51447
- version: "0.4.3-rc.3",
51482
+ version: "0.4.4-rc.1",
51448
51483
  description: "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
51449
51484
  type: "module",
51450
51485
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.4.3-rc.3",
3
+ "version": "0.4.4-rc.1",
4
4
  "description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",