@axiom-lattice/gateway 2.1.94 → 2.1.96

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.mjs CHANGED
@@ -1893,8 +1893,11 @@ async function getAllWorkflowRuns(request, reply) {
1893
1893
  data: { records: enrichedRuns, total: enrichedRuns.length }
1894
1894
  };
1895
1895
  } catch (error) {
1896
- request.log.error(error, "Failed to get workflow runs");
1897
- return reply.status(500).send({ success: false, message: "Failed to retrieve workflow runs" });
1896
+ request.log.error({ tenantId, assistantId, status, error: error.stack || error.message }, "Failed to get workflow runs");
1897
+ return reply.status(500).send({
1898
+ success: false,
1899
+ message: `Failed to retrieve workflow runs: ${error.message}`
1900
+ });
1898
1901
  }
1899
1902
  }
1900
1903
  async function getInboxItems(request, reply) {
@@ -2112,8 +2115,11 @@ async function getRunSteps(request, reply) {
2112
2115
  data: { records: steps, total: steps.length }
2113
2116
  };
2114
2117
  } catch (error) {
2115
- request.log.error(error, "Failed to get run steps");
2116
- return reply.status(500).send({ success: false, message: "Failed to retrieve run steps" });
2118
+ request.log.error({ runId, error: error.stack || error.message }, "Failed to get run steps");
2119
+ return reply.status(500).send({
2120
+ success: false,
2121
+ message: `Failed to retrieve run steps: ${error.message}`
2122
+ });
2117
2123
  }
2118
2124
  }
2119
2125
  async function getRunTasks(request, reply) {