@cleocode/cleo 2026.3.64 → 2026.3.65

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/mcp/index.js CHANGED
@@ -92335,16 +92335,18 @@ var PipelineHandler = class {
92335
92335
  return wrapResult(result, "query", "pipeline", "phase.list", startTime);
92336
92336
  }
92337
92337
  const listData = result.data;
92338
+ const phases = listData.phases ?? [];
92339
+ const total = listData.summary?.total ?? phases.length;
92338
92340
  const { limit, offset } = getListParams(params);
92339
- const page = paginate(listData.phases, limit, offset);
92341
+ const page = paginate(phases, limit, offset);
92340
92342
  return {
92341
92343
  _meta: dispatchMeta("query", "pipeline", "phase.list", startTime),
92342
92344
  success: true,
92343
92345
  data: {
92344
92346
  ...listData,
92345
92347
  phases: page.items,
92346
- total: listData.summary.total,
92347
- filtered: listData.summary.total
92348
+ total,
92349
+ filtered: total
92348
92350
  },
92349
92351
  page: page.page
92350
92352
  };