@base44-preview/cli 0.1.32-pr.663.8c44c88 → 0.1.32-pr.663.d01623b

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/cli/index.js CHANGED
@@ -249140,6 +249140,7 @@ function searchOperations(operations, query, options = {}) {
249140
249140
  // src/core/api-spec/catalog.ts
249141
249141
  var INLINE_AREA_MAX = 2;
249142
249142
  var AREA_SAMPLE_MAX = 3;
249143
+ var AREA_OPERATIONS_MAX = 200;
249143
249144
  var byCodePoint = (a, b) => a < b ? -1 : a > b ? 1 : 0;
249144
249145
  function areaOf(path) {
249145
249146
  const parts = path.split("/").filter(Boolean);
@@ -249173,6 +249174,14 @@ function catalogIndex(operations) {
249173
249174
  });
249174
249175
  return { areas, total: operations.length };
249175
249176
  }
249177
+ function areaListing(area, operations, max = AREA_OPERATIONS_MAX) {
249178
+ return {
249179
+ area,
249180
+ operations: operations.slice(0, max).map(toOperationSummary),
249181
+ total: operations.length,
249182
+ truncated: operations.length > max
249183
+ };
249184
+ }
249176
249185
  // src/core/api-spec/grep.ts
249177
249186
  var CONTEXT_CHARS = 40;
249178
249187
  var MAX_SNIPPETS = 3;
@@ -249517,13 +249526,8 @@ async function catalogAction(ctx, area, options) {
249517
249526
  if (area === undefined) {
249518
249527
  return { stdout: formatJson(catalogIndex(operations)) };
249519
249528
  }
249520
- const inArea = operationsInArea(operations, area);
249521
249529
  return {
249522
- stdout: formatJson({
249523
- area,
249524
- operations: inArea.map(toOperationSummary),
249525
- total: inArea.length
249526
- })
249530
+ stdout: formatJson(areaListing(area, operationsInArea(operations, area)))
249527
249531
  };
249528
249532
  }
249529
249533
  function getApiCatalogCommand() {
@@ -273202,4 +273206,4 @@ export {
273202
273206
  runCLI
273203
273207
  };
273204
273208
 
273205
- //# debugId=C89C416C808E439E64756E2164756E21
273209
+ //# debugId=874A12DB9A1B72DD64756E2164756E21