@uniformdev/cli 19.159.1-alpha.16 → 19.159.1-alpha.27

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
@@ -15,15 +15,15 @@ import {
15
15
  withFormatOptions,
16
16
  withProjectOptions,
17
17
  withTeamOptions
18
- } from "./chunk-2TESILZJ.mjs";
18
+ } from "./chunk-DDTNSIMF.mjs";
19
19
 
20
20
  // src/index.ts
21
21
  import * as dotenv from "dotenv";
22
- import yargs34 from "yargs";
22
+ import yargs35 from "yargs";
23
23
  import { hideBin } from "yargs/helpers";
24
24
 
25
25
  // src/commands/canvas/index.ts
26
- import yargs15 from "yargs";
26
+ import yargs16 from "yargs";
27
27
 
28
28
  // src/commands/canvas/commands/asset.ts
29
29
  import yargs from "yargs";
@@ -62,8 +62,7 @@ async function createArraySyncEngineDataSource({
62
62
  );
63
63
  async function* getObjects() {
64
64
  for (const item of Object.values(objectIndex)) {
65
- if (typeof item === "object")
66
- yield item;
65
+ if (typeof item === "object") yield item;
67
66
  }
68
67
  }
69
68
  function extractCurrent() {
@@ -242,8 +241,7 @@ async function syncEngine({
242
241
  const targetItems = /* @__PURE__ */ new Map();
243
242
  const deleteTracker = /* @__PURE__ */ new Set();
244
243
  const processDelete = async (object) => {
245
- if (deleteTracker.has(object))
246
- return;
244
+ if (deleteTracker.has(object)) return;
247
245
  deleteTracker.add(object);
248
246
  if (!whatIf) {
249
247
  try {
@@ -408,12 +406,12 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
408
406
  var AssetGetModule = {
409
407
  command: "get <id>",
410
408
  describe: "Get an asset",
411
- builder: (yargs35) => withConfiguration(
409
+ builder: (yargs36) => withConfiguration(
412
410
  withFormatOptions(
413
411
  withApiOptions(
414
412
  withProjectOptions(
415
413
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
416
- yargs35.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
414
+ yargs36.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
417
415
  )
418
416
  )
419
417
  )
@@ -434,7 +432,7 @@ import { UncachedAssetClient as UncachedAssetClient2 } from "@uniformdev/assets"
434
432
  var AssetListModule = {
435
433
  command: "list",
436
434
  describe: "List assets",
437
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
435
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
438
436
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
439
437
  const fetch3 = nodeFetchProxy(proxy);
440
438
  const client = new UncachedAssetClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -786,8 +784,8 @@ function prepCompositionForDisk(composition) {
786
784
  delete prepped.state;
787
785
  return prepped;
788
786
  }
789
- function withStateOptions(yargs35, defaultState = "preview") {
790
- return yargs35.option("state", {
787
+ function withStateOptions(yargs36, defaultState = "preview") {
788
+ return yargs36.option("state", {
791
789
  type: "string",
792
790
  describe: `State to fetch.`,
793
791
  choices: ["preview", "published"],
@@ -854,11 +852,11 @@ function writeCanvasPackage(filename, packageContents) {
854
852
  var AssetPullModule = {
855
853
  command: "pull <directory>",
856
854
  describe: "Pulls all assets to local files in a directory",
857
- builder: (yargs35) => withConfiguration(
855
+ builder: (yargs36) => withConfiguration(
858
856
  withApiOptions(
859
857
  withProjectOptions(
860
858
  withDiffOptions(
861
- yargs35.positional("directory", {
859
+ yargs36.positional("directory", {
862
860
  describe: "Directory to save the assets to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
863
861
  type: "string"
864
862
  }).option("format", {
@@ -976,11 +974,11 @@ import { UncachedFileClient as UncachedFileClient2 } from "@uniformdev/files";
976
974
  var AssetPushModule = {
977
975
  command: "push <directory>",
978
976
  describe: "Pushes all assets from files in a directory to Uniform",
979
- builder: (yargs35) => withConfiguration(
977
+ builder: (yargs36) => withConfiguration(
980
978
  withApiOptions(
981
979
  withProjectOptions(
982
980
  withDiffOptions(
983
- yargs35.positional("directory", {
981
+ yargs36.positional("directory", {
984
982
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
985
983
  type: "string"
986
984
  }).option("what-if", {
@@ -1081,9 +1079,9 @@ var AssetRemoveModule = {
1081
1079
  command: "remove <id>",
1082
1080
  aliases: ["delete", "rm"],
1083
1081
  describe: "Delete an asset",
1084
- builder: (yargs35) => withConfiguration(
1082
+ builder: (yargs36) => withConfiguration(
1085
1083
  withApiOptions(
1086
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1084
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1087
1085
  )
1088
1086
  ),
1089
1087
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -1099,10 +1097,10 @@ var AssetUpdateModule = {
1099
1097
  command: "update <filename>",
1100
1098
  aliases: ["put"],
1101
1099
  describe: "Insert or update an asset",
1102
- builder: (yargs35) => withConfiguration(
1100
+ builder: (yargs36) => withConfiguration(
1103
1101
  withApiOptions(
1104
1102
  withProjectOptions(
1105
- yargs35.positional("filename", { demandOption: true, describe: "Asset file to put" })
1103
+ yargs36.positional("filename", { demandOption: true, describe: "Asset file to put" })
1106
1104
  )
1107
1105
  )
1108
1106
  ),
@@ -1118,7 +1116,7 @@ var AssetUpdateModule = {
1118
1116
  var AssetModule = {
1119
1117
  command: "asset <command>",
1120
1118
  describe: "Commands for Assets",
1121
- builder: (yargs35) => yargs35.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1119
+ builder: (yargs36) => yargs36.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1122
1120
  handler: () => {
1123
1121
  yargs.help();
1124
1122
  }
@@ -1132,11 +1130,11 @@ import { UncachedCategoryClient } from "@uniformdev/canvas";
1132
1130
  var CategoryGetModule = {
1133
1131
  command: "get <id>",
1134
1132
  describe: "Fetch a category",
1135
- builder: (yargs35) => withConfiguration(
1133
+ builder: (yargs36) => withConfiguration(
1136
1134
  withFormatOptions(
1137
1135
  withApiOptions(
1138
1136
  withProjectOptions(
1139
- yargs35.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1137
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1140
1138
  )
1141
1139
  )
1142
1140
  )
@@ -1161,7 +1159,7 @@ var CategoryListModule = {
1161
1159
  command: "list",
1162
1160
  describe: "List categories",
1163
1161
  aliases: ["ls"],
1164
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35.options({}))))),
1162
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36.options({}))))),
1165
1163
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
1166
1164
  const fetch3 = nodeFetchProxy(proxy);
1167
1165
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1211,11 +1209,11 @@ function createCategoriesEngineDataSource({
1211
1209
  var CategoryPullModule = {
1212
1210
  command: "pull <directory>",
1213
1211
  describe: "Pulls all categories to local files in a directory",
1214
- builder: (yargs35) => withConfiguration(
1212
+ builder: (yargs36) => withConfiguration(
1215
1213
  withApiOptions(
1216
1214
  withProjectOptions(
1217
1215
  withDiffOptions(
1218
- yargs35.positional("directory", {
1216
+ yargs36.positional("directory", {
1219
1217
  describe: "Directory to save the categories to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
1220
1218
  type: "string"
1221
1219
  }).option("format", {
@@ -1293,11 +1291,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
1293
1291
  var CategoryPushModule = {
1294
1292
  command: "push <directory>",
1295
1293
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1296
- builder: (yargs35) => withConfiguration(
1294
+ builder: (yargs36) => withConfiguration(
1297
1295
  withApiOptions(
1298
1296
  withProjectOptions(
1299
1297
  withDiffOptions(
1300
- yargs35.positional("directory", {
1298
+ yargs36.positional("directory", {
1301
1299
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1302
1300
  type: "string"
1303
1301
  }).option("what-if", {
@@ -1364,10 +1362,10 @@ var CategoryRemoveModule = {
1364
1362
  command: "remove <id>",
1365
1363
  aliases: ["delete", "rm"],
1366
1364
  describe: "Delete a category",
1367
- builder: (yargs35) => withConfiguration(
1365
+ builder: (yargs36) => withConfiguration(
1368
1366
  withApiOptions(
1369
1367
  withProjectOptions(
1370
- yargs35.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1368
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1371
1369
  )
1372
1370
  )
1373
1371
  ),
@@ -1384,10 +1382,10 @@ var CategoryUpdateModule = {
1384
1382
  command: "update <filename>",
1385
1383
  aliases: ["put"],
1386
1384
  describe: "Insert or update a category",
1387
- builder: (yargs35) => withConfiguration(
1385
+ builder: (yargs36) => withConfiguration(
1388
1386
  withApiOptions(
1389
1387
  withProjectOptions(
1390
- yargs35.positional("filename", { demandOption: true, describe: "Category file to put" })
1388
+ yargs36.positional("filename", { demandOption: true, describe: "Category file to put" })
1391
1389
  )
1392
1390
  )
1393
1391
  ),
@@ -1404,7 +1402,7 @@ var CategoryModule = {
1404
1402
  command: "category <command>",
1405
1403
  aliases: ["cat"],
1406
1404
  describe: "Commands for Canvas categories",
1407
- builder: (yargs35) => yargs35.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1405
+ builder: (yargs36) => yargs36.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1408
1406
  handler: () => {
1409
1407
  yargs2.help();
1410
1408
  }
@@ -1425,11 +1423,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
1425
1423
  var ComponentGetModule = {
1426
1424
  command: "get <id>",
1427
1425
  describe: "Fetch a component definition",
1428
- builder: (yargs35) => withConfiguration(
1426
+ builder: (yargs36) => withConfiguration(
1429
1427
  withFormatOptions(
1430
1428
  withApiOptions(
1431
1429
  withProjectOptions(
1432
- yargs35.positional("id", {
1430
+ yargs36.positional("id", {
1433
1431
  demandOption: true,
1434
1432
  describe: "Component definition public ID to fetch"
1435
1433
  })
@@ -1463,11 +1461,11 @@ var ComponentListModule = {
1463
1461
  command: "list",
1464
1462
  describe: "List component definitions",
1465
1463
  aliases: ["ls"],
1466
- builder: (yargs35) => withConfiguration(
1464
+ builder: (yargs36) => withConfiguration(
1467
1465
  withFormatOptions(
1468
1466
  withApiOptions(
1469
1467
  withProjectOptions(
1470
- yargs35.options({
1468
+ yargs36.options({
1471
1469
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1472
1470
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1473
1471
  })
@@ -1523,11 +1521,11 @@ function createComponentDefinitionEngineDataSource({
1523
1521
  var ComponentPullModule = {
1524
1522
  command: "pull <directory>",
1525
1523
  describe: "Pulls all component definitions to local files in a directory",
1526
- builder: (yargs35) => withConfiguration(
1524
+ builder: (yargs36) => withConfiguration(
1527
1525
  withApiOptions(
1528
1526
  withProjectOptions(
1529
1527
  withDiffOptions(
1530
- yargs35.positional("directory", {
1528
+ yargs36.positional("directory", {
1531
1529
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
1532
1530
  type: "string"
1533
1531
  }).option("format", {
@@ -1606,11 +1604,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1606
1604
  var ComponentPushModule = {
1607
1605
  command: "push <directory>",
1608
1606
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1609
- builder: (yargs35) => withConfiguration(
1607
+ builder: (yargs36) => withConfiguration(
1610
1608
  withApiOptions(
1611
1609
  withProjectOptions(
1612
1610
  withDiffOptions(
1613
- yargs35.positional("directory", {
1611
+ yargs36.positional("directory", {
1614
1612
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1615
1613
  type: "string"
1616
1614
  }).option("what-if", {
@@ -1678,10 +1676,10 @@ var ComponentRemoveModule = {
1678
1676
  command: "remove <id>",
1679
1677
  aliases: ["delete", "rm"],
1680
1678
  describe: "Delete a component definition",
1681
- builder: (yargs35) => withConfiguration(
1679
+ builder: (yargs36) => withConfiguration(
1682
1680
  withApiOptions(
1683
1681
  withProjectOptions(
1684
- yargs35.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1682
+ yargs36.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1685
1683
  )
1686
1684
  )
1687
1685
  ),
@@ -1698,10 +1696,10 @@ var ComponentUpdateModule = {
1698
1696
  command: "update <filename>",
1699
1697
  aliases: ["put"],
1700
1698
  describe: "Insert or update a component definition",
1701
- builder: (yargs35) => withConfiguration(
1699
+ builder: (yargs36) => withConfiguration(
1702
1700
  withApiOptions(
1703
1701
  withProjectOptions(
1704
- yargs35.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1702
+ yargs36.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1705
1703
  )
1706
1704
  )
1707
1705
  ),
@@ -1718,7 +1716,7 @@ var ComponentModule = {
1718
1716
  command: "component <command>",
1719
1717
  aliases: ["def"],
1720
1718
  describe: "Commands for Canvas component definitions",
1721
- builder: (yargs35) => yargs35.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1719
+ builder: (yargs36) => yargs36.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1722
1720
  handler: () => {
1723
1721
  yargs3.help();
1724
1722
  }
@@ -1732,12 +1730,12 @@ import { UncachedCanvasClient as UncachedCanvasClient7 } from "@uniformdev/canva
1732
1730
  var CompositionGetModule = {
1733
1731
  command: "get <id>",
1734
1732
  describe: "Fetch a composition",
1735
- builder: (yargs35) => withFormatOptions(
1733
+ builder: (yargs36) => withFormatOptions(
1736
1734
  withConfiguration(
1737
1735
  withApiOptions(
1738
1736
  withProjectOptions(
1739
1737
  withStateOptions(
1740
- yargs35.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1738
+ yargs36.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1741
1739
  resolvePatterns: {
1742
1740
  type: "boolean",
1743
1741
  default: false,
@@ -1762,6 +1760,11 @@ var CompositionGetModule = {
1762
1760
  type: "boolean",
1763
1761
  default: false,
1764
1762
  describe: "Include diagnostics information when resolving data"
1763
+ },
1764
+ resolutionDepth: {
1765
+ type: "number",
1766
+ default: 3,
1767
+ describe: "Controls how many levels deep content references should be resolved"
1765
1768
  }
1766
1769
  })
1767
1770
  )
@@ -1783,7 +1786,8 @@ var CompositionGetModule = {
1783
1786
  resolveOverrides,
1784
1787
  componentIDs,
1785
1788
  resolveData,
1786
- diagnostics
1789
+ diagnostics,
1790
+ resolutionDepth
1787
1791
  }) => {
1788
1792
  const fetch3 = nodeFetchProxy(proxy);
1789
1793
  const client = new UncachedCanvasClient7({ apiKey, edgeApiHost, apiHost, fetch: fetch3, projectId });
@@ -1795,7 +1799,8 @@ var CompositionGetModule = {
1795
1799
  skipOverridesResolution: !resolveOverrides,
1796
1800
  withComponentIDs: componentIDs,
1797
1801
  skipDataResolution: !resolveData,
1798
- diagnostics
1802
+ diagnostics: resolveData ? diagnostics : void 0,
1803
+ resolutionDepth: resolveData ? resolutionDepth : void 0
1799
1804
  })
1800
1805
  );
1801
1806
  emitWithFormat(res, format, filename);
@@ -1814,12 +1819,12 @@ var CompositionListModule = {
1814
1819
  command: "list",
1815
1820
  describe: "List compositions",
1816
1821
  aliases: ["ls"],
1817
- builder: (yargs35) => withFormatOptions(
1822
+ builder: (yargs36) => withFormatOptions(
1818
1823
  withConfiguration(
1819
1824
  withApiOptions(
1820
1825
  withProjectOptions(
1821
1826
  withStateOptions(
1822
- yargs35.options({
1827
+ yargs36.options({
1823
1828
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1824
1829
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1825
1830
  search: { describe: "Search query", type: "string", default: "" },
@@ -1894,12 +1899,12 @@ var CompositionListModule = {
1894
1899
  var ComponentPatternListModule = {
1895
1900
  ...CompositionListModule,
1896
1901
  describe: "List component patterns",
1897
- builder: (yargs35) => withFormatOptions(
1902
+ builder: (yargs36) => withFormatOptions(
1898
1903
  withConfiguration(
1899
1904
  withApiOptions(
1900
1905
  withProjectOptions(
1901
1906
  withStateOptions(
1902
- yargs35.options({
1907
+ yargs36.options({
1903
1908
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1904
1909
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1905
1910
  resolvePatterns: {
@@ -1996,11 +2001,11 @@ function createComponentInstanceEngineDataSource({
1996
2001
  var CompositionPublishModule = {
1997
2002
  command: "publish [ids]",
1998
2003
  describe: "Publishes composition(s)",
1999
- builder: (yargs35) => withConfiguration(
2004
+ builder: (yargs36) => withConfiguration(
2000
2005
  withApiOptions(
2001
2006
  withProjectOptions(
2002
2007
  withDiffOptions(
2003
- yargs35.positional("ids", {
2008
+ yargs36.positional("ids", {
2004
2009
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2005
2010
  type: "string"
2006
2011
  }).option("all", {
@@ -2077,11 +2082,11 @@ var CompositionPublishModule = {
2077
2082
  var ComponentPatternPublishModule = {
2078
2083
  ...CompositionPublishModule,
2079
2084
  describe: "Publishes component pattern(s)",
2080
- builder: (yargs35) => withConfiguration(
2085
+ builder: (yargs36) => withConfiguration(
2081
2086
  withApiOptions(
2082
2087
  withProjectOptions(
2083
2088
  withDiffOptions(
2084
- yargs35.positional("ids", {
2089
+ yargs36.positional("ids", {
2085
2090
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2086
2091
  type: "string"
2087
2092
  }).option("all", {
@@ -2125,12 +2130,12 @@ import { UncachedFileClient as UncachedFileClient3 } from "@uniformdev/files";
2125
2130
  var CompositionPullModule = {
2126
2131
  command: "pull <directory>",
2127
2132
  describe: "Pulls all compositions to local files in a directory",
2128
- builder: (yargs35) => withConfiguration(
2133
+ builder: (yargs36) => withConfiguration(
2129
2134
  withApiOptions(
2130
2135
  withProjectOptions(
2131
2136
  withStateOptions(
2132
2137
  withDiffOptions(
2133
- yargs35.positional("directory", {
2138
+ yargs36.positional("directory", {
2134
2139
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2135
2140
  type: "string"
2136
2141
  }).option("format", {
@@ -2240,12 +2245,12 @@ var CompositionPullModule = {
2240
2245
  var ComponentPatternPullModule = {
2241
2246
  ...CompositionPullModule,
2242
2247
  describe: "Pulls all component patterns to local files in a directory",
2243
- builder: (yargs35) => withConfiguration(
2248
+ builder: (yargs36) => withConfiguration(
2244
2249
  withApiOptions(
2245
2250
  withProjectOptions(
2246
2251
  withStateOptions(
2247
2252
  withDiffOptions(
2248
- yargs35.positional("directory", {
2253
+ yargs36.positional("directory", {
2249
2254
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2250
2255
  type: "string"
2251
2256
  }).option("format", {
@@ -2289,12 +2294,12 @@ import { UncachedFileClient as UncachedFileClient4 } from "@uniformdev/files";
2289
2294
  var CompositionPushModule = {
2290
2295
  command: "push <directory>",
2291
2296
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2292
- builder: (yargs35) => withConfiguration(
2297
+ builder: (yargs36) => withConfiguration(
2293
2298
  withApiOptions(
2294
2299
  withProjectOptions(
2295
2300
  withStateOptions(
2296
2301
  withDiffOptions(
2297
- yargs35.positional("directory", {
2302
+ yargs36.positional("directory", {
2298
2303
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2299
2304
  type: "string"
2300
2305
  }).option("what-if", {
@@ -2391,12 +2396,12 @@ var CompositionPushModule = {
2391
2396
  var ComponentPatternPushModule = {
2392
2397
  ...CompositionPushModule,
2393
2398
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
2394
- builder: (yargs35) => withConfiguration(
2399
+ builder: (yargs36) => withConfiguration(
2395
2400
  withApiOptions(
2396
2401
  withProjectOptions(
2397
2402
  withStateOptions(
2398
2403
  withDiffOptions(
2399
- yargs35.positional("directory", {
2404
+ yargs36.positional("directory", {
2400
2405
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
2401
2406
  type: "string"
2402
2407
  }).option("what-if", {
@@ -2434,10 +2439,10 @@ var CompositionRemoveModule = {
2434
2439
  command: "remove <id>",
2435
2440
  aliases: ["delete", "rm"],
2436
2441
  describe: "Delete a composition",
2437
- builder: (yargs35) => withConfiguration(
2442
+ builder: (yargs36) => withConfiguration(
2438
2443
  withApiOptions(
2439
2444
  withProjectOptions(
2440
- yargs35.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2445
+ yargs36.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2441
2446
  )
2442
2447
  )
2443
2448
  ),
@@ -2463,10 +2468,10 @@ import { diffJson as diffJson2 } from "diff";
2463
2468
  var CompositionUnpublishModule = {
2464
2469
  command: "unpublish [ids]",
2465
2470
  describe: "Unpublish a composition(s)",
2466
- builder: (yargs35) => withConfiguration(
2471
+ builder: (yargs36) => withConfiguration(
2467
2472
  withApiOptions(
2468
2473
  withProjectOptions(
2469
- yargs35.positional("ids", {
2474
+ yargs36.positional("ids", {
2470
2475
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2471
2476
  type: "string"
2472
2477
  }).option("all", {
@@ -2561,10 +2566,10 @@ var CompositionUnpublishModule = {
2561
2566
  var ComponentPatternUnpublishModule = {
2562
2567
  command: "unpublish [ids]",
2563
2568
  describe: "Unpublish a component pattern(s)",
2564
- builder: (yargs35) => withConfiguration(
2569
+ builder: (yargs36) => withConfiguration(
2565
2570
  withApiOptions(
2566
2571
  withProjectOptions(
2567
- yargs35.positional("ids", {
2572
+ yargs36.positional("ids", {
2568
2573
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2569
2574
  type: "string"
2570
2575
  }).option("all", {
@@ -2603,11 +2608,11 @@ var CompositionUpdateModule = {
2603
2608
  command: "update <filename>",
2604
2609
  aliases: ["put"],
2605
2610
  describe: "Insert or update a composition",
2606
- builder: (yargs35) => withConfiguration(
2611
+ builder: (yargs36) => withConfiguration(
2607
2612
  withApiOptions(
2608
2613
  withProjectOptions(
2609
2614
  withStateOptions(
2610
- yargs35.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2615
+ yargs36.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2611
2616
  )
2612
2617
  )
2613
2618
  )
@@ -2630,7 +2635,7 @@ var ComponentPatternUpdateModule = {
2630
2635
  var ComponentPatternModule = {
2631
2636
  command: "component-pattern <command>",
2632
2637
  describe: "Commands for Canvas component patterns",
2633
- builder: (yargs35) => yargs35.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
2638
+ builder: (yargs36) => yargs36.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
2634
2639
  handler: () => {
2635
2640
  yargs4.help();
2636
2641
  }
@@ -2642,7 +2647,7 @@ var CompositionModule = {
2642
2647
  command: "composition <command>",
2643
2648
  describe: "Commands for Canvas compositions",
2644
2649
  aliases: ["comp"],
2645
- builder: (yargs35) => yargs35.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2650
+ builder: (yargs36) => yargs36.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2646
2651
  handler: () => {
2647
2652
  yargs5.help();
2648
2653
  }
@@ -2661,12 +2666,12 @@ var CompositionPatternGetModule = {
2661
2666
  var CompositionPatternListModule = {
2662
2667
  ...CompositionListModule,
2663
2668
  describe: "List composition patterns",
2664
- builder: (yargs35) => withFormatOptions(
2669
+ builder: (yargs36) => withFormatOptions(
2665
2670
  withConfiguration(
2666
2671
  withApiOptions(
2667
2672
  withProjectOptions(
2668
2673
  withStateOptions(
2669
- yargs35.options({
2674
+ yargs36.options({
2670
2675
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2671
2676
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2672
2677
  resolvePatterns: {
@@ -2709,11 +2714,11 @@ var CompositionPatternListModule = {
2709
2714
  var CompositionPatternPublishModule = {
2710
2715
  ...CompositionPublishModule,
2711
2716
  describe: "Publishes composition pattern(s)",
2712
- builder: (yargs35) => withConfiguration(
2717
+ builder: (yargs36) => withConfiguration(
2713
2718
  withApiOptions(
2714
2719
  withProjectOptions(
2715
2720
  withDiffOptions(
2716
- yargs35.positional("ids", {
2721
+ yargs36.positional("ids", {
2717
2722
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2718
2723
  type: "string"
2719
2724
  }).option("all", {
@@ -2756,12 +2761,12 @@ var CompositionPatternPublishModule = {
2756
2761
  var CompositionPatternPullModule = {
2757
2762
  ...CompositionPullModule,
2758
2763
  describe: "Pulls all composition patterns to local files in a directory",
2759
- builder: (yargs35) => withConfiguration(
2764
+ builder: (yargs36) => withConfiguration(
2760
2765
  withApiOptions(
2761
2766
  withProjectOptions(
2762
2767
  withStateOptions(
2763
2768
  withDiffOptions(
2764
- yargs35.positional("directory", {
2769
+ yargs36.positional("directory", {
2765
2770
  describe: "Directory to save the composition patterns to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2766
2771
  type: "string"
2767
2772
  }).option("format", {
@@ -2803,12 +2808,12 @@ var CompositionPatternPullModule = {
2803
2808
  var CompositionPatternPushModule = {
2804
2809
  ...CompositionPushModule,
2805
2810
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
2806
- builder: (yargs35) => withConfiguration(
2811
+ builder: (yargs36) => withConfiguration(
2807
2812
  withApiOptions(
2808
2813
  withProjectOptions(
2809
2814
  withStateOptions(
2810
2815
  withDiffOptions(
2811
- yargs35.positional("directory", {
2816
+ yargs36.positional("directory", {
2812
2817
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
2813
2818
  type: "string"
2814
2819
  }).option("what-if", {
@@ -2850,10 +2855,10 @@ var CompositionPatternRemoveModule = {
2850
2855
  var CompositionPatternUnpublishModule = {
2851
2856
  command: "unpublish [ids]",
2852
2857
  describe: "Unpublish a composition pattern(s)",
2853
- builder: (yargs35) => withConfiguration(
2858
+ builder: (yargs36) => withConfiguration(
2854
2859
  withApiOptions(
2855
2860
  withProjectOptions(
2856
- yargs35.positional("ids", {
2861
+ yargs36.positional("ids", {
2857
2862
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2858
2863
  type: "string"
2859
2864
  }).option("all", {
@@ -2893,7 +2898,7 @@ var CompositionPatternUpdateModule = {
2893
2898
  var CompositionPatternModule = {
2894
2899
  command: "composition-pattern <command>",
2895
2900
  describe: "Commands for Canvas composition patterns",
2896
- builder: (yargs35) => yargs35.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
2901
+ builder: (yargs36) => yargs36.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
2897
2902
  handler: () => {
2898
2903
  yargs6.help();
2899
2904
  }
@@ -2907,12 +2912,12 @@ import { ContentClient } from "@uniformdev/canvas";
2907
2912
  var ContentTypeGetModule = {
2908
2913
  command: "get <id>",
2909
2914
  describe: "Get a content type",
2910
- builder: (yargs35) => withConfiguration(
2915
+ builder: (yargs36) => withConfiguration(
2911
2916
  withFormatOptions(
2912
2917
  withApiOptions(
2913
2918
  withProjectOptions(
2914
2919
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2915
- yargs35.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2920
+ yargs36.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2916
2921
  )
2917
2922
  )
2918
2923
  )
@@ -2934,7 +2939,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2934
2939
  var ContentTypeListModule = {
2935
2940
  command: "list",
2936
2941
  describe: "List content types",
2937
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
2942
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
2938
2943
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2939
2944
  const fetch3 = nodeFetchProxy(proxy);
2940
2945
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2982,11 +2987,11 @@ function createContentTypeEngineDataSource({
2982
2987
  var ContentTypePullModule = {
2983
2988
  command: "pull <directory>",
2984
2989
  describe: "Pulls all content types to local files in a directory",
2985
- builder: (yargs35) => withConfiguration(
2990
+ builder: (yargs36) => withConfiguration(
2986
2991
  withApiOptions(
2987
2992
  withProjectOptions(
2988
2993
  withDiffOptions(
2989
- yargs35.positional("directory", {
2994
+ yargs36.positional("directory", {
2990
2995
  describe: "Directory to save the content types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
2991
2996
  type: "string"
2992
2997
  }).option("format", {
@@ -3070,11 +3075,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
3070
3075
  var ContentTypePushModule = {
3071
3076
  command: "push <directory>",
3072
3077
  describe: "Pushes all content types from files in a directory to Uniform",
3073
- builder: (yargs35) => withConfiguration(
3078
+ builder: (yargs36) => withConfiguration(
3074
3079
  withApiOptions(
3075
3080
  withProjectOptions(
3076
3081
  withDiffOptions(
3077
- yargs35.positional("directory", {
3082
+ yargs36.positional("directory", {
3078
3083
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
3079
3084
  type: "string"
3080
3085
  }).option("what-if", {
@@ -3147,10 +3152,10 @@ var ContentTypeRemoveModule = {
3147
3152
  command: "remove <id>",
3148
3153
  aliases: ["delete", "rm"],
3149
3154
  describe: "Delete a content type",
3150
- builder: (yargs35) => withConfiguration(
3155
+ builder: (yargs36) => withConfiguration(
3151
3156
  withApiOptions(
3152
3157
  withProjectOptions(
3153
- yargs35.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3158
+ yargs36.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3154
3159
  )
3155
3160
  )
3156
3161
  ),
@@ -3167,10 +3172,10 @@ var ContentTypeUpdateModule = {
3167
3172
  command: "update <filename>",
3168
3173
  aliases: ["put"],
3169
3174
  describe: "Insert or update a content type",
3170
- builder: (yargs35) => withConfiguration(
3175
+ builder: (yargs36) => withConfiguration(
3171
3176
  withApiOptions(
3172
3177
  withProjectOptions(
3173
- yargs35.positional("filename", { demandOption: true, describe: "Content type file to put" })
3178
+ yargs36.positional("filename", { demandOption: true, describe: "Content type file to put" })
3174
3179
  )
3175
3180
  )
3176
3181
  ),
@@ -3187,7 +3192,7 @@ var ContentTypeModule = {
3187
3192
  command: "contenttype <command>",
3188
3193
  aliases: ["ct"],
3189
3194
  describe: "Commands for Content Types",
3190
- builder: (yargs35) => yargs35.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
3195
+ builder: (yargs36) => yargs36.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
3191
3196
  handler: () => {
3192
3197
  yargs7.help();
3193
3198
  }
@@ -3201,11 +3206,11 @@ import { DataSourceClient } from "@uniformdev/canvas";
3201
3206
  var DataSourceGetModule = {
3202
3207
  command: "get <id>",
3203
3208
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
3204
- builder: (yargs35) => withConfiguration(
3209
+ builder: (yargs36) => withConfiguration(
3205
3210
  withApiOptions(
3206
3211
  withProjectOptions(
3207
3212
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3208
- yargs35.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3213
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3209
3214
  )
3210
3215
  )
3211
3216
  ),
@@ -3223,10 +3228,10 @@ var DataSourceRemoveModule = {
3223
3228
  command: "remove <id>",
3224
3229
  aliases: ["delete", "rm"],
3225
3230
  describe: "Delete a data source",
3226
- builder: (yargs35) => withConfiguration(
3231
+ builder: (yargs36) => withConfiguration(
3227
3232
  withApiOptions(
3228
3233
  withProjectOptions(
3229
- yargs35.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3234
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3230
3235
  )
3231
3236
  )
3232
3237
  ),
@@ -3243,10 +3248,10 @@ var DataSourceUpdateModule = {
3243
3248
  command: "update <dataSource>",
3244
3249
  aliases: ["put"],
3245
3250
  describe: "Insert or update a data source",
3246
- builder: (yargs35) => withConfiguration(
3251
+ builder: (yargs36) => withConfiguration(
3247
3252
  withApiOptions(
3248
3253
  withProjectOptions(
3249
- yargs35.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
3254
+ yargs36.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
3250
3255
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
3251
3256
  type: "string",
3252
3257
  demandOption: true
@@ -3266,7 +3271,7 @@ var DataSourceModule = {
3266
3271
  command: "datasource <command>",
3267
3272
  aliases: ["ds"],
3268
3273
  describe: "Commands for Data Source definitions",
3269
- builder: (yargs35) => yargs35.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3274
+ builder: (yargs36) => yargs36.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3270
3275
  handler: () => {
3271
3276
  yargs8.help();
3272
3277
  }
@@ -3281,12 +3286,12 @@ var DataTypeGetModule = {
3281
3286
  command: "get <id>",
3282
3287
  describe: "Get a data type",
3283
3288
  aliases: ["ls"],
3284
- builder: (yargs35) => withConfiguration(
3289
+ builder: (yargs36) => withConfiguration(
3285
3290
  withFormatOptions(
3286
3291
  withApiOptions(
3287
3292
  withProjectOptions(
3288
3293
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3289
- yargs35.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3294
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3290
3295
  )
3291
3296
  )
3292
3297
  )
@@ -3309,7 +3314,7 @@ var DataTypeListModule = {
3309
3314
  command: "list",
3310
3315
  describe: "List data types",
3311
3316
  aliases: ["ls"],
3312
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
3317
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
3313
3318
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3314
3319
  const fetch3 = nodeFetchProxy(proxy);
3315
3320
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3359,11 +3364,11 @@ function createDataTypeEngineDataSource({
3359
3364
  var DataTypePullModule = {
3360
3365
  command: "pull <directory>",
3361
3366
  describe: "Pulls all data types to local files in a directory",
3362
- builder: (yargs35) => withConfiguration(
3367
+ builder: (yargs36) => withConfiguration(
3363
3368
  withApiOptions(
3364
3369
  withProjectOptions(
3365
3370
  withDiffOptions(
3366
- yargs35.positional("directory", {
3371
+ yargs36.positional("directory", {
3367
3372
  describe: "Directory to save the data types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3368
3373
  type: "string"
3369
3374
  }).option("format", {
@@ -3447,11 +3452,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
3447
3452
  var DataTypePushModule = {
3448
3453
  command: "push <directory>",
3449
3454
  describe: "Pushes all data types from files in a directory to Uniform",
3450
- builder: (yargs35) => withConfiguration(
3455
+ builder: (yargs36) => withConfiguration(
3451
3456
  withApiOptions(
3452
3457
  withProjectOptions(
3453
3458
  withDiffOptions(
3454
- yargs35.positional("directory", {
3459
+ yargs36.positional("directory", {
3455
3460
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
3456
3461
  type: "string"
3457
3462
  }).option("what-if", {
@@ -3524,10 +3529,10 @@ var DataTypeRemoveModule = {
3524
3529
  command: "remove <id>",
3525
3530
  aliases: ["delete", "rm"],
3526
3531
  describe: "Delete a data type",
3527
- builder: (yargs35) => withConfiguration(
3532
+ builder: (yargs36) => withConfiguration(
3528
3533
  withApiOptions(
3529
3534
  withProjectOptions(
3530
- yargs35.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3535
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3531
3536
  )
3532
3537
  )
3533
3538
  ),
@@ -3544,10 +3549,10 @@ var DataTypeUpdateModule = {
3544
3549
  command: "update <filename>",
3545
3550
  aliases: ["put"],
3546
3551
  describe: "Insert or update a data type",
3547
- builder: (yargs35) => withConfiguration(
3552
+ builder: (yargs36) => withConfiguration(
3548
3553
  withApiOptions(
3549
3554
  withProjectOptions(
3550
- yargs35.positional("filename", { demandOption: true, describe: "Data type file to put" })
3555
+ yargs36.positional("filename", { demandOption: true, describe: "Data type file to put" })
3551
3556
  )
3552
3557
  )
3553
3558
  ),
@@ -3564,7 +3569,7 @@ var DataTypeModule = {
3564
3569
  command: "datatype <command>",
3565
3570
  aliases: ["dt"],
3566
3571
  describe: "Commands for Data Type definitions",
3567
- builder: (yargs35) => yargs35.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3572
+ builder: (yargs36) => yargs36.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3568
3573
  handler: () => {
3569
3574
  yargs9.help();
3570
3575
  }
@@ -3578,13 +3583,29 @@ import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
3578
3583
  var EntryGetModule = {
3579
3584
  command: "get <id>",
3580
3585
  describe: "Get an entry",
3581
- builder: (yargs35) => withConfiguration(
3586
+ builder: (yargs36) => withConfiguration(
3582
3587
  withFormatOptions(
3583
3588
  withApiOptions(
3584
3589
  withProjectOptions(
3585
3590
  withStateOptions(
3586
3591
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3587
- yargs35.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }),
3592
+ yargs36.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
3593
+ resolveData: {
3594
+ type: "boolean",
3595
+ default: false,
3596
+ describe: "Resolve all data resources used by the entry"
3597
+ },
3598
+ diagnostics: {
3599
+ type: "boolean",
3600
+ default: false,
3601
+ describe: "Include diagnostics information when resolving data"
3602
+ },
3603
+ resolutionDepth: {
3604
+ type: "number",
3605
+ default: 3,
3606
+ describe: "Controls how many levels deep content references should be resolved"
3607
+ }
3608
+ }),
3588
3609
  // for backwards compatibility, we default to the "published" state, unlike compositions
3589
3610
  "published"
3590
3611
  )
@@ -3601,7 +3622,10 @@ var EntryGetModule = {
3601
3622
  format,
3602
3623
  filename,
3603
3624
  project: projectId,
3604
- state
3625
+ state,
3626
+ resolveData,
3627
+ diagnostics,
3628
+ resolutionDepth
3605
3629
  }) => {
3606
3630
  const fetch3 = nodeFetchProxy(proxy);
3607
3631
  const client = new ContentClient7({ apiKey, apiHost, edgeApiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3612,7 +3636,9 @@ var EntryGetModule = {
3612
3636
  state: convertStateOption(state),
3613
3637
  skipOverridesResolution: true,
3614
3638
  skipPatternResolution: true,
3615
- skipDataResolution: true
3639
+ skipDataResolution: !resolveData,
3640
+ diagnostics: resolveData ? diagnostics : void 0,
3641
+ resolutionDepth: resolveData ? resolutionDepth : void 0
3616
3642
  });
3617
3643
  if (res.entries.length !== 1) {
3618
3644
  throw new Error(`Entry with ID ${id} not found`);
@@ -3627,12 +3653,12 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
3627
3653
  var EntryListModule = {
3628
3654
  command: "list",
3629
3655
  describe: "List entries",
3630
- builder: (yargs35) => withConfiguration(
3656
+ builder: (yargs36) => withConfiguration(
3631
3657
  withFormatOptions(
3632
3658
  withApiOptions(
3633
3659
  withProjectOptions(
3634
3660
  withStateOptions(
3635
- yargs35.options({
3661
+ yargs36.options({
3636
3662
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
3637
3663
  limit: { describe: "Number of rows to fetch", type: "number", default: LEGACY_DEFAULT_LIMIT },
3638
3664
  search: { describe: "Search query", type: "string", default: "" }
@@ -3733,11 +3759,11 @@ function createEntryEngineDataSource({
3733
3759
  var EntryPublishModule = {
3734
3760
  command: "publish [ids]",
3735
3761
  describe: "Publishes entry(ies)",
3736
- builder: (yargs35) => withConfiguration(
3762
+ builder: (yargs36) => withConfiguration(
3737
3763
  withApiOptions(
3738
3764
  withProjectOptions(
3739
3765
  withDiffOptions(
3740
- yargs35.positional("ids", {
3766
+ yargs36.positional("ids", {
3741
3767
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3742
3768
  type: "string"
3743
3769
  }).option("all", {
@@ -3792,12 +3818,12 @@ import { UncachedFileClient as UncachedFileClient5 } from "@uniformdev/files";
3792
3818
  var EntryPullModule = {
3793
3819
  command: "pull <directory>",
3794
3820
  describe: "Pulls all entries to local files in a directory",
3795
- builder: (yargs35) => withConfiguration(
3821
+ builder: (yargs36) => withConfiguration(
3796
3822
  withApiOptions(
3797
3823
  withProjectOptions(
3798
3824
  withStateOptions(
3799
3825
  withDiffOptions(
3800
- yargs35.positional("directory", {
3826
+ yargs36.positional("directory", {
3801
3827
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3802
3828
  type: "string"
3803
3829
  }).option("format", {
@@ -3897,12 +3923,12 @@ import { UncachedFileClient as UncachedFileClient6 } from "@uniformdev/files";
3897
3923
  var EntryPushModule = {
3898
3924
  command: "push <directory>",
3899
3925
  describe: "Pushes all entries from files in a directory to Uniform",
3900
- builder: (yargs35) => withConfiguration(
3926
+ builder: (yargs36) => withConfiguration(
3901
3927
  withApiOptions(
3902
3928
  withProjectOptions(
3903
3929
  withStateOptions(
3904
3930
  withDiffOptions(
3905
- yargs35.positional("directory", {
3931
+ yargs36.positional("directory", {
3906
3932
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
3907
3933
  type: "string"
3908
3934
  }).option("what-if", {
@@ -3989,10 +4015,10 @@ var EntryRemoveModule = {
3989
4015
  command: "remove <id>",
3990
4016
  aliases: ["delete", "rm"],
3991
4017
  describe: "Delete an entry",
3992
- builder: (yargs35) => withConfiguration(
4018
+ builder: (yargs36) => withConfiguration(
3993
4019
  withApiOptions(
3994
4020
  withProjectOptions(
3995
- yargs35.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
4021
+ yargs36.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3996
4022
  )
3997
4023
  )
3998
4024
  ),
@@ -4009,10 +4035,10 @@ import { diffJson as diffJson3 } from "diff";
4009
4035
  var EntryUnpublishModule = {
4010
4036
  command: "unpublish [ids]",
4011
4037
  describe: "Unpublish an entry(ies)",
4012
- builder: (yargs35) => withConfiguration(
4038
+ builder: (yargs36) => withConfiguration(
4013
4039
  withApiOptions(
4014
4040
  withProjectOptions(
4015
- yargs35.positional("ids", {
4041
+ yargs36.positional("ids", {
4016
4042
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4017
4043
  type: "string"
4018
4044
  }).option("all", {
@@ -4085,11 +4111,11 @@ var EntryUpdateModule = {
4085
4111
  command: "update <filename>",
4086
4112
  aliases: ["put"],
4087
4113
  describe: "Insert or update an entry",
4088
- builder: (yargs35) => withConfiguration(
4114
+ builder: (yargs36) => withConfiguration(
4089
4115
  withApiOptions(
4090
4116
  withProjectOptions(
4091
4117
  withStateOptions(
4092
- yargs35.positional("filename", { demandOption: true, describe: "Entry file to put" })
4118
+ yargs36.positional("filename", { demandOption: true, describe: "Entry file to put" })
4093
4119
  )
4094
4120
  )
4095
4121
  )
@@ -4106,7 +4132,7 @@ var EntryUpdateModule = {
4106
4132
  var EntryModule = {
4107
4133
  command: "entry <command>",
4108
4134
  describe: "Commands for Entries",
4109
- builder: (yargs35) => yargs35.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
4135
+ builder: (yargs36) => yargs36.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
4110
4136
  handler: () => {
4111
4137
  yargs10.help();
4112
4138
  }
@@ -4120,13 +4146,13 @@ import { ContentClient as ContentClient16 } from "@uniformdev/canvas";
4120
4146
  var EntryPatternGetModule = {
4121
4147
  command: "get <id>",
4122
4148
  describe: "Get an entry pattern",
4123
- builder: (yargs35) => withConfiguration(
4149
+ builder: (yargs36) => withConfiguration(
4124
4150
  withFormatOptions(
4125
4151
  withApiOptions(
4126
4152
  withProjectOptions(
4127
4153
  withStateOptions(
4128
4154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4129
- yargs35.positional("id", {
4155
+ yargs36.positional("id", {
4130
4156
  demandOption: true,
4131
4157
  describe: "Entry pattern public ID to fetch"
4132
4158
  }),
@@ -4161,8 +4187,8 @@ import { ContentClient as ContentClient17 } from "@uniformdev/canvas";
4161
4187
  var EntryPatternListModule = {
4162
4188
  command: "list",
4163
4189
  describe: "List entry patterns",
4164
- builder: (yargs35) => withConfiguration(
4165
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs35, "published"))))
4190
+ builder: (yargs36) => withConfiguration(
4191
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs36, "published"))))
4166
4192
  ),
4167
4193
  handler: async ({ apiHost, edgeApiHost, apiKey, proxy, format, filename, project: projectId, state }) => {
4168
4194
  const fetch3 = nodeFetchProxy(proxy);
@@ -4185,11 +4211,11 @@ import { ContentClient as ContentClient18 } from "@uniformdev/canvas";
4185
4211
  var EntryPatternPublishModule = {
4186
4212
  command: "publish [ids]",
4187
4213
  describe: "Publishes entry pattern(s)",
4188
- builder: (yargs35) => withConfiguration(
4214
+ builder: (yargs36) => withConfiguration(
4189
4215
  withApiOptions(
4190
4216
  withProjectOptions(
4191
4217
  withDiffOptions(
4192
- yargs35.positional("ids", {
4218
+ yargs36.positional("ids", {
4193
4219
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4194
4220
  type: "string"
4195
4221
  }).option("all", {
@@ -4244,12 +4270,12 @@ import { UncachedFileClient as UncachedFileClient7 } from "@uniformdev/files";
4244
4270
  var EntryPatternPullModule = {
4245
4271
  command: "pull <directory>",
4246
4272
  describe: "Pulls all entry patterns to local files in a directory",
4247
- builder: (yargs35) => withConfiguration(
4273
+ builder: (yargs36) => withConfiguration(
4248
4274
  withApiOptions(
4249
4275
  withProjectOptions(
4250
4276
  withStateOptions(
4251
4277
  withDiffOptions(
4252
- yargs35.positional("directory", {
4278
+ yargs36.positional("directory", {
4253
4279
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4254
4280
  type: "string"
4255
4281
  }).option("format", {
@@ -4349,12 +4375,12 @@ import { UncachedFileClient as UncachedFileClient8 } from "@uniformdev/files";
4349
4375
  var EntryPatternPushModule = {
4350
4376
  command: "push <directory>",
4351
4377
  describe: "Pushes all entry patterns from files in a directory to Uniform",
4352
- builder: (yargs35) => withConfiguration(
4378
+ builder: (yargs36) => withConfiguration(
4353
4379
  withApiOptions(
4354
4380
  withProjectOptions(
4355
4381
  withStateOptions(
4356
4382
  withDiffOptions(
4357
- yargs35.positional("directory", {
4383
+ yargs36.positional("directory", {
4358
4384
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
4359
4385
  type: "string"
4360
4386
  }).option("what-if", {
@@ -4441,10 +4467,10 @@ var EntryPatternRemoveModule = {
4441
4467
  command: "remove <id>",
4442
4468
  aliases: ["delete", "rm"],
4443
4469
  describe: "Delete an entry pattern",
4444
- builder: (yargs35) => withConfiguration(
4470
+ builder: (yargs36) => withConfiguration(
4445
4471
  withApiOptions(
4446
4472
  withProjectOptions(
4447
- yargs35.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
4473
+ yargs36.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
4448
4474
  )
4449
4475
  )
4450
4476
  ),
@@ -4461,10 +4487,10 @@ import { diffJson as diffJson4 } from "diff";
4461
4487
  var EntryPatternUnpublishModule = {
4462
4488
  command: "unpublish [ids]",
4463
4489
  describe: "Unpublish an entry patterns",
4464
- builder: (yargs35) => withConfiguration(
4490
+ builder: (yargs36) => withConfiguration(
4465
4491
  withApiOptions(
4466
4492
  withProjectOptions(
4467
- yargs35.positional("ids", {
4493
+ yargs36.positional("ids", {
4468
4494
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4469
4495
  type: "string"
4470
4496
  }).option("all", {
@@ -4537,11 +4563,11 @@ var EntryPatternUpdateModule = {
4537
4563
  command: "update <filename>",
4538
4564
  aliases: ["put"],
4539
4565
  describe: "Insert or update an entry pattern",
4540
- builder: (yargs35) => withConfiguration(
4566
+ builder: (yargs36) => withConfiguration(
4541
4567
  withApiOptions(
4542
4568
  withProjectOptions(
4543
4569
  withStateOptions(
4544
- yargs35.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
4570
+ yargs36.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
4545
4571
  )
4546
4572
  )
4547
4573
  )
@@ -4558,7 +4584,7 @@ var EntryPatternUpdateModule = {
4558
4584
  var EntryPatternModule = {
4559
4585
  command: "entry-pattern <command>",
4560
4586
  describe: "Commands for Entry patterns",
4561
- builder: (yargs35) => yargs35.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
4587
+ builder: (yargs36) => yargs36.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
4562
4588
  handler: () => {
4563
4589
  yargs11.help();
4564
4590
  }
@@ -4604,11 +4630,11 @@ function createLocaleEngineDataSource({
4604
4630
  var LocalePullModule = {
4605
4631
  command: "pull <directory>",
4606
4632
  describe: "Pulls all locales to local files in a directory",
4607
- builder: (yargs35) => withConfiguration(
4633
+ builder: (yargs36) => withConfiguration(
4608
4634
  withApiOptions(
4609
4635
  withProjectOptions(
4610
4636
  withDiffOptions(
4611
- yargs35.positional("directory", {
4637
+ yargs36.positional("directory", {
4612
4638
  describe: "Directory to save the locales to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4613
4639
  type: "string"
4614
4640
  }).option("format", {
@@ -4692,11 +4718,11 @@ import { LocaleClient as LocaleClient2 } from "@uniformdev/canvas";
4692
4718
  var LocalePushModule = {
4693
4719
  command: "push <directory>",
4694
4720
  describe: "Pushes all locales from files in a directory to Uniform",
4695
- builder: (yargs35) => withConfiguration(
4721
+ builder: (yargs36) => withConfiguration(
4696
4722
  withApiOptions(
4697
4723
  withProjectOptions(
4698
4724
  withDiffOptions(
4699
- yargs35.positional("directory", {
4725
+ yargs36.positional("directory", {
4700
4726
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
4701
4727
  type: "string"
4702
4728
  }).option("what-if", {
@@ -4767,26 +4793,263 @@ var LocalePushModule = {
4767
4793
  var LocaleModule = {
4768
4794
  command: "locale <command>",
4769
4795
  describe: "Commands for locale definitions",
4770
- builder: (yargs35) => yargs35.command(LocalePullModule).command(LocalePushModule),
4796
+ builder: (yargs36) => yargs36.command(LocalePullModule).command(LocalePushModule),
4771
4797
  handler: () => {
4772
4798
  yargs12.help();
4773
4799
  }
4774
4800
  };
4775
4801
 
4776
- // src/commands/canvas/commands/prompts.ts
4802
+ // src/commands/canvas/commands/pattern.ts
4777
4803
  import yargs13 from "yargs";
4778
4804
 
4805
+ // src/commands/canvas/commands/pattern/get.ts
4806
+ var PatternGetModule = {
4807
+ ...CompositionGetModule,
4808
+ describe: "Fetch a pattern"
4809
+ };
4810
+
4811
+ // src/commands/canvas/commands/pattern/list.ts
4812
+ var PatternListModule = {
4813
+ ...CompositionListModule,
4814
+ describe: "List patterns",
4815
+ builder: (yargs36) => withFormatOptions(
4816
+ withConfiguration(
4817
+ withApiOptions(
4818
+ withProjectOptions(
4819
+ withStateOptions(
4820
+ yargs36.options({
4821
+ offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4822
+ limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4823
+ resolvePatterns: {
4824
+ type: "boolean",
4825
+ default: false,
4826
+ describe: "Resolve pattern references in the composition"
4827
+ },
4828
+ resolveOverrides: {
4829
+ type: "boolean",
4830
+ default: false,
4831
+ describe: "Resolves pattern overrides in the pattern and removes override definition data"
4832
+ },
4833
+ onlyPatterns: {
4834
+ describe: "Only pulling patterns and not compositions",
4835
+ // This default differentiate this list command from composition list command
4836
+ default: true,
4837
+ type: "boolean",
4838
+ hidden: true
4839
+ },
4840
+ componentIDs: {
4841
+ alias: ["componentIDs"],
4842
+ type: "boolean",
4843
+ default: false,
4844
+ describe: "Include individual component UIDs"
4845
+ }
4846
+ })
4847
+ )
4848
+ )
4849
+ )
4850
+ )
4851
+ )
4852
+ };
4853
+
4854
+ // src/commands/canvas/commands/pattern/publish.ts
4855
+ var PatternPublishModule = {
4856
+ ...CompositionPublishModule,
4857
+ describe: "Publishes pattern(s)",
4858
+ builder: (yargs36) => withConfiguration(
4859
+ withApiOptions(
4860
+ withProjectOptions(
4861
+ withDiffOptions(
4862
+ yargs36.positional("ids", {
4863
+ describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4864
+ type: "string"
4865
+ }).option("all", {
4866
+ alias: ["a"],
4867
+ describe: "Publishes all patterns. Use compositionId to publish one instead.",
4868
+ default: false,
4869
+ type: "boolean"
4870
+ }).option("what-if", {
4871
+ alias: ["w"],
4872
+ describe: "What-if mode reports what would be done but does not perform any un-publishing",
4873
+ default: false,
4874
+ type: "boolean"
4875
+ }).option("publishingState", {
4876
+ describe: 'Publishing state to update to. Can be "published" or "preview".',
4877
+ default: "published",
4878
+ type: "string",
4879
+ hidden: true
4880
+ }).option("onlyCompositions", {
4881
+ describe: "Only publishing compositions and not patterns",
4882
+ default: false,
4883
+ type: "boolean"
4884
+ }).option("onlyPatterns", {
4885
+ describe: "Only pulling patterns and not compositions",
4886
+ default: true,
4887
+ type: "boolean",
4888
+ hidden: true
4889
+ })
4890
+ )
4891
+ )
4892
+ )
4893
+ )
4894
+ };
4895
+
4896
+ // src/commands/canvas/commands/pattern/pull.ts
4897
+ var PatternPullModule = {
4898
+ ...CompositionPullModule,
4899
+ describe: "Pulls all patterns to local files in a directory",
4900
+ builder: (yargs36) => withConfiguration(
4901
+ withApiOptions(
4902
+ withProjectOptions(
4903
+ withStateOptions(
4904
+ withDiffOptions(
4905
+ yargs36.positional("directory", {
4906
+ describe: "Directory to save the definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4907
+ type: "string"
4908
+ }).option("format", {
4909
+ alias: ["f"],
4910
+ describe: "Output format",
4911
+ default: "yaml",
4912
+ choices: ["yaml", "json"],
4913
+ type: "string"
4914
+ }).option("onlyPatterns", {
4915
+ describe: "Only pulling patterns and not compositions",
4916
+ // This default differentiate this list command from composition list command
4917
+ default: true,
4918
+ type: "boolean",
4919
+ hidden: true
4920
+ }).option("what-if", {
4921
+ alias: ["w"],
4922
+ describe: "What-if mode reports what would be done but changes no files",
4923
+ default: false,
4924
+ type: "boolean"
4925
+ }).option("mode", {
4926
+ alias: ["m"],
4927
+ describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
4928
+ choices: ["create", "createOrUpdate", "mirror"],
4929
+ default: "mirror",
4930
+ type: "string"
4931
+ })
4932
+ )
4933
+ )
4934
+ )
4935
+ )
4936
+ )
4937
+ };
4938
+
4939
+ // src/commands/canvas/commands/pattern/push.ts
4940
+ var PatternPushModule = {
4941
+ ...CompositionPushModule,
4942
+ describe: "Pushes all patterns from files in a directory to Uniform Canvas",
4943
+ builder: (yargs36) => withConfiguration(
4944
+ withApiOptions(
4945
+ withProjectOptions(
4946
+ withStateOptions(
4947
+ withDiffOptions(
4948
+ yargs36.positional("directory", {
4949
+ describe: "Directory to read the patterns from. If a filename is used, a package will be read instead.",
4950
+ type: "string"
4951
+ }).option("what-if", {
4952
+ alias: ["w"],
4953
+ describe: "What-if mode reports what would be done but changes nothing",
4954
+ default: false,
4955
+ type: "boolean"
4956
+ }).option("mode", {
4957
+ alias: ["m"],
4958
+ describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
4959
+ choices: ["create", "createOrUpdate", "mirror"],
4960
+ default: "mirror",
4961
+ type: "string"
4962
+ }).option("onlyPatterns", {
4963
+ describe: "Only pulling patterns and not compositions",
4964
+ // This default differentiate this list command from composition list command
4965
+ default: true,
4966
+ type: "boolean",
4967
+ hidden: true
4968
+ }).option("patternType", {
4969
+ default: "all",
4970
+ choices: ["all", "component", "composition"],
4971
+ hidden: true
4972
+ })
4973
+ )
4974
+ )
4975
+ )
4976
+ )
4977
+ )
4978
+ };
4979
+
4980
+ // src/commands/canvas/commands/pattern/remove.ts
4981
+ var PatternRemoveModule = {
4982
+ ...CompositionRemoveModule,
4983
+ describe: "Delete a pattern"
4984
+ };
4985
+
4986
+ // src/commands/canvas/commands/pattern/unpublish.ts
4987
+ var PatternUnpublishModule = {
4988
+ command: "unpublish [ids]",
4989
+ describe: "Unpublish a pattern(s)",
4990
+ builder: (yargs36) => withConfiguration(
4991
+ withApiOptions(
4992
+ withProjectOptions(
4993
+ yargs36.positional("ids", {
4994
+ describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4995
+ type: "string"
4996
+ }).option("all", {
4997
+ alias: ["a"],
4998
+ describe: "Un-publishes all compositions. Use compositionId to publish one instead.",
4999
+ default: false,
5000
+ type: "boolean"
5001
+ }).option("what-if", {
5002
+ alias: ["w"],
5003
+ describe: "What-if mode reports what would be done but does not perform any publishing",
5004
+ default: false,
5005
+ type: "boolean"
5006
+ }).option("onlyCompositions", {
5007
+ describe: "Only un-publishing compositions and not patterns",
5008
+ default: false,
5009
+ type: "boolean"
5010
+ }).option("onlyPatterns", {
5011
+ describe: "Only un-publishing patterns and not compositions",
5012
+ default: true,
5013
+ type: "boolean",
5014
+ hidden: true
5015
+ })
5016
+ )
5017
+ )
5018
+ ),
5019
+ handler: CompositionUnpublishModule.handler
5020
+ };
5021
+
5022
+ // src/commands/canvas/commands/pattern/update.ts
5023
+ var PatternUpdateModule = {
5024
+ ...CompositionUpdateModule,
5025
+ describe: "Insert or update a pattern"
5026
+ };
5027
+
5028
+ // src/commands/canvas/commands/pattern.ts
5029
+ var PatternModule = {
5030
+ command: "pattern <command>",
5031
+ describe: "Commands for Canvas patterns",
5032
+ deprecated: 'will be removed in a future major release. Use "component-pattern" and "composition-pattern" instead.',
5033
+ builder: (yargs36) => yargs36.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
5034
+ handler: () => {
5035
+ yargs13.help();
5036
+ }
5037
+ };
5038
+
5039
+ // src/commands/canvas/commands/prompts.ts
5040
+ import yargs14 from "yargs";
5041
+
4779
5042
  // src/commands/canvas/commands/prompts/get.ts
4780
5043
  import { PromptClient } from "@uniformdev/canvas";
4781
5044
  var PromptGetModule = {
4782
5045
  command: "get <id>",
4783
5046
  describe: "Get a prompt",
4784
- builder: (yargs35) => withConfiguration(
5047
+ builder: (yargs36) => withConfiguration(
4785
5048
  withFormatOptions(
4786
5049
  withApiOptions(
4787
5050
  withProjectOptions(
4788
5051
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4789
- yargs35.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
5052
+ yargs36.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4790
5053
  )
4791
5054
  )
4792
5055
  )
@@ -4807,7 +5070,7 @@ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
4807
5070
  var PromptListModule = {
4808
5071
  command: "list",
4809
5072
  describe: "List prompts",
4810
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
5073
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
4811
5074
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4812
5075
  const fetch3 = nodeFetchProxy(proxy);
4813
5076
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -4855,12 +5118,12 @@ function createPromptEngineDataSource({
4855
5118
  var PromptPullModule = {
4856
5119
  command: "pull <directory>",
4857
5120
  describe: "Pulls all prompts to local files in a directory",
4858
- builder: (yargs35) => withConfiguration(
5121
+ builder: (yargs36) => withConfiguration(
4859
5122
  withApiOptions(
4860
5123
  withProjectOptions(
4861
5124
  withStateOptions(
4862
5125
  withDiffOptions(
4863
- yargs35.positional("directory", {
5126
+ yargs36.positional("directory", {
4864
5127
  describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4865
5128
  type: "string"
4866
5129
  }).option("format", {
@@ -4945,12 +5208,12 @@ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
4945
5208
  var PromptPushModule = {
4946
5209
  command: "push <directory>",
4947
5210
  describe: "Pushes all prompts from files in a directory to Uniform",
4948
- builder: (yargs35) => withConfiguration(
5211
+ builder: (yargs36) => withConfiguration(
4949
5212
  withApiOptions(
4950
5213
  withProjectOptions(
4951
5214
  withStateOptions(
4952
5215
  withDiffOptions(
4953
- yargs35.positional("directory", {
5216
+ yargs36.positional("directory", {
4954
5217
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
4955
5218
  type: "string"
4956
5219
  }).option("what-if", {
@@ -5024,9 +5287,9 @@ var PromptRemoveModule = {
5024
5287
  command: "remove <id>",
5025
5288
  aliases: ["delete", "rm"],
5026
5289
  describe: "Delete a prompt",
5027
- builder: (yargs35) => withConfiguration(
5290
+ builder: (yargs36) => withConfiguration(
5028
5291
  withApiOptions(
5029
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
5292
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
5030
5293
  )
5031
5294
  ),
5032
5295
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -5042,10 +5305,10 @@ var PromptUpdateModule = {
5042
5305
  command: "update <filename>",
5043
5306
  aliases: ["put"],
5044
5307
  describe: "Insert or update a prompt",
5045
- builder: (yargs35) => withConfiguration(
5308
+ builder: (yargs36) => withConfiguration(
5046
5309
  withApiOptions(
5047
5310
  withProjectOptions(
5048
- yargs35.positional("filename", { demandOption: true, describe: "Prompt file to put" })
5311
+ yargs36.positional("filename", { demandOption: true, describe: "Prompt file to put" })
5049
5312
  )
5050
5313
  )
5051
5314
  ),
@@ -5062,14 +5325,14 @@ var PromptModule = {
5062
5325
  command: "prompt <command>",
5063
5326
  aliases: ["dt"],
5064
5327
  describe: "Commands for AI Prompt definitions",
5065
- builder: (yargs35) => yargs35.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
5328
+ builder: (yargs36) => yargs36.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
5066
5329
  handler: () => {
5067
- yargs13.help();
5330
+ yargs14.help();
5068
5331
  }
5069
5332
  };
5070
5333
 
5071
5334
  // src/commands/canvas/commands/workflow.ts
5072
- import yargs14 from "yargs";
5335
+ import yargs15 from "yargs";
5073
5336
 
5074
5337
  // src/commands/canvas/commands/workflow/pull.ts
5075
5338
  import { WorkflowClient } from "@uniformdev/canvas";
@@ -5113,11 +5376,11 @@ function createWorkflowEngineDataSource({
5113
5376
  var WorkflowPullModule = {
5114
5377
  command: "pull <directory>",
5115
5378
  describe: "Pulls all workflows to local files in a directory",
5116
- builder: (yargs35) => withConfiguration(
5379
+ builder: (yargs36) => withConfiguration(
5117
5380
  withApiOptions(
5118
5381
  withProjectOptions(
5119
5382
  withDiffOptions(
5120
- yargs35.positional("directory", {
5383
+ yargs36.positional("directory", {
5121
5384
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5122
5385
  type: "string"
5123
5386
  }).option("format", {
@@ -5195,11 +5458,11 @@ import { WorkflowClient as WorkflowClient2 } from "@uniformdev/canvas";
5195
5458
  var WorkflowPushModule = {
5196
5459
  command: "push <directory>",
5197
5460
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
5198
- builder: (yargs35) => withConfiguration(
5461
+ builder: (yargs36) => withConfiguration(
5199
5462
  withApiOptions(
5200
5463
  withProjectOptions(
5201
5464
  withDiffOptions(
5202
- yargs35.positional("directory", {
5465
+ yargs36.positional("directory", {
5203
5466
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
5204
5467
  type: "string"
5205
5468
  }).option("what-if", {
@@ -5265,9 +5528,9 @@ var WorkflowModule = {
5265
5528
  command: "workflow <command>",
5266
5529
  aliases: ["wf"],
5267
5530
  describe: "Commands for Canvas workflows",
5268
- builder: (yargs35) => yargs35.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
5531
+ builder: (yargs36) => yargs36.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
5269
5532
  handler: () => {
5270
- yargs14.help();
5533
+ yargs15.help();
5271
5534
  }
5272
5535
  };
5273
5536
 
@@ -5276,28 +5539,28 @@ var CanvasCommand = {
5276
5539
  command: "canvas <command>",
5277
5540
  aliases: ["cv", "pm", "presentation"],
5278
5541
  describe: "Uniform Canvas commands",
5279
- builder: (yargs35) => yargs35.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).command(WorkflowModule).demandCommand(),
5542
+ builder: (yargs36) => yargs36.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(PatternModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).command(WorkflowModule).demandCommand(),
5280
5543
  handler: () => {
5281
- yargs15.showHelp();
5544
+ yargs16.showHelp();
5282
5545
  }
5283
5546
  };
5284
5547
 
5285
5548
  // src/commands/context/index.ts
5286
- import yargs22 from "yargs";
5549
+ import yargs23 from "yargs";
5287
5550
 
5288
5551
  // src/commands/context/commands/aggregate.ts
5289
- import yargs16 from "yargs";
5552
+ import yargs17 from "yargs";
5290
5553
 
5291
5554
  // src/commands/context/commands/aggregate/get.ts
5292
5555
  import { UncachedAggregateClient } from "@uniformdev/context/api";
5293
5556
  var AggregateGetModule = {
5294
5557
  command: "get <id>",
5295
5558
  describe: "Fetch an aggregate",
5296
- builder: (yargs35) => withConfiguration(
5559
+ builder: (yargs36) => withConfiguration(
5297
5560
  withFormatOptions(
5298
5561
  withApiOptions(
5299
5562
  withProjectOptions(
5300
- yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
5563
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
5301
5564
  )
5302
5565
  )
5303
5566
  )
@@ -5321,7 +5584,7 @@ var AggregateListModule = {
5321
5584
  command: "list",
5322
5585
  describe: "List aggregates",
5323
5586
  aliases: ["ls"],
5324
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
5587
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
5325
5588
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5326
5589
  const fetch3 = nodeFetchProxy(proxy);
5327
5590
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5388,11 +5651,11 @@ function writeContextPackage(filename, packageContents) {
5388
5651
  var AggregatePullModule = {
5389
5652
  command: "pull <directory>",
5390
5653
  describe: "Pulls all aggregates to local files in a directory",
5391
- builder: (yargs35) => withConfiguration(
5654
+ builder: (yargs36) => withConfiguration(
5392
5655
  withApiOptions(
5393
5656
  withProjectOptions(
5394
5657
  withDiffOptions(
5395
- yargs35.positional("directory", {
5658
+ yargs36.positional("directory", {
5396
5659
  describe: "Directory to save the aggregates to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5397
5660
  type: "string"
5398
5661
  }).option("format", {
@@ -5470,11 +5733,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
5470
5733
  var AggregatePushModule = {
5471
5734
  command: "push <directory>",
5472
5735
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
5473
- builder: (yargs35) => withConfiguration(
5736
+ builder: (yargs36) => withConfiguration(
5474
5737
  withApiOptions(
5475
5738
  withProjectOptions(
5476
5739
  withDiffOptions(
5477
- yargs35.positional("directory", {
5740
+ yargs36.positional("directory", {
5478
5741
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
5479
5742
  type: "string"
5480
5743
  }).option("what-if", {
@@ -5542,10 +5805,10 @@ var AggregateRemoveModule = {
5542
5805
  command: "remove <id>",
5543
5806
  aliases: ["delete", "rm"],
5544
5807
  describe: "Delete an aggregate",
5545
- builder: (yargs35) => withConfiguration(
5808
+ builder: (yargs36) => withConfiguration(
5546
5809
  withApiOptions(
5547
5810
  withProjectOptions(
5548
- yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
5811
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
5549
5812
  )
5550
5813
  )
5551
5814
  ),
@@ -5562,10 +5825,10 @@ var AggregateUpdateModule = {
5562
5825
  command: "update <filename>",
5563
5826
  aliases: ["put"],
5564
5827
  describe: "Insert or update an aggregate",
5565
- builder: (yargs35) => withConfiguration(
5828
+ builder: (yargs36) => withConfiguration(
5566
5829
  withApiOptions(
5567
5830
  withProjectOptions(
5568
- yargs35.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
5831
+ yargs36.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
5569
5832
  )
5570
5833
  )
5571
5834
  ),
@@ -5582,25 +5845,25 @@ var AggregateModule = {
5582
5845
  command: "aggregate <command>",
5583
5846
  aliases: ["agg", "intent", "audience"],
5584
5847
  describe: "Commands for Context aggregates (intents, audiences)",
5585
- builder: (yargs35) => yargs35.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
5848
+ builder: (yargs36) => yargs36.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
5586
5849
  handler: () => {
5587
- yargs16.help();
5850
+ yargs17.help();
5588
5851
  }
5589
5852
  };
5590
5853
 
5591
5854
  // src/commands/context/commands/enrichment.ts
5592
- import yargs17 from "yargs";
5855
+ import yargs18 from "yargs";
5593
5856
 
5594
5857
  // src/commands/context/commands/enrichment/get.ts
5595
5858
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
5596
5859
  var EnrichmentGetModule = {
5597
5860
  command: "get <id>",
5598
5861
  describe: "Fetch an enrichment category and its values",
5599
- builder: (yargs35) => withFormatOptions(
5862
+ builder: (yargs36) => withFormatOptions(
5600
5863
  withConfiguration(
5601
5864
  withApiOptions(
5602
5865
  withProjectOptions(
5603
- yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
5866
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
5604
5867
  )
5605
5868
  )
5606
5869
  )
@@ -5624,7 +5887,7 @@ var EnrichmentListModule = {
5624
5887
  command: "list",
5625
5888
  describe: "List enrichments",
5626
5889
  aliases: ["ls"],
5627
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
5890
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
5628
5891
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5629
5892
  const fetch3 = nodeFetchProxy(proxy);
5630
5893
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5726,11 +5989,11 @@ var createEnrichmentValueEngineDataSource = ({
5726
5989
  var EnrichmentPullModule = {
5727
5990
  command: "pull <directory>",
5728
5991
  describe: "Pulls all enrichments to local files in a directory",
5729
- builder: (yargs35) => withConfiguration(
5992
+ builder: (yargs36) => withConfiguration(
5730
5993
  withApiOptions(
5731
5994
  withProjectOptions(
5732
5995
  withDiffOptions(
5733
- yargs35.positional("directory", {
5996
+ yargs36.positional("directory", {
5734
5997
  describe: "Directory to save the enrichments to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5735
5998
  type: "string"
5736
5999
  }).option("format", {
@@ -5808,11 +6071,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
5808
6071
  var EnrichmentPushModule = {
5809
6072
  command: "push <directory>",
5810
6073
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
5811
- builder: (yargs35) => withConfiguration(
6074
+ builder: (yargs36) => withConfiguration(
5812
6075
  withApiOptions(
5813
6076
  withProjectOptions(
5814
6077
  withDiffOptions(
5815
- yargs35.positional("directory", {
6078
+ yargs36.positional("directory", {
5816
6079
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
5817
6080
  type: "string"
5818
6081
  }).option("what-if", {
@@ -5879,10 +6142,10 @@ var EnrichmentRemoveModule = {
5879
6142
  command: "remove <id>",
5880
6143
  aliases: ["delete", "rm"],
5881
6144
  describe: "Delete an enrichment category and its values",
5882
- builder: (yargs35) => withConfiguration(
6145
+ builder: (yargs36) => withConfiguration(
5883
6146
  withApiOptions(
5884
6147
  withProjectOptions(
5885
- yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
6148
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5886
6149
  )
5887
6150
  )
5888
6151
  ),
@@ -5898,14 +6161,14 @@ var EnrichmentModule = {
5898
6161
  command: "enrichment <command>",
5899
6162
  aliases: ["enr"],
5900
6163
  describe: "Commands for Context enrichments",
5901
- builder: (yargs35) => yargs35.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
6164
+ builder: (yargs36) => yargs36.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
5902
6165
  handler: () => {
5903
- yargs17.help();
6166
+ yargs18.help();
5904
6167
  }
5905
6168
  };
5906
6169
 
5907
6170
  // src/commands/context/commands/manifest.ts
5908
- import yargs18 from "yargs";
6171
+ import yargs19 from "yargs";
5909
6172
 
5910
6173
  // src/commands/context/commands/manifest/get.ts
5911
6174
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -5916,10 +6179,10 @@ var ManifestGetModule = {
5916
6179
  command: "get [output]",
5917
6180
  aliases: ["dl", "download"],
5918
6181
  describe: "Download the Uniform Context manifest for a project",
5919
- builder: (yargs35) => withConfiguration(
6182
+ builder: (yargs36) => withConfiguration(
5920
6183
  withApiOptions(
5921
6184
  withProjectOptions(
5922
- yargs35.option("preview", {
6185
+ yargs36.option("preview", {
5923
6186
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
5924
6187
  default: false,
5925
6188
  type: "boolean",
@@ -5981,7 +6244,7 @@ import { exit as exit2 } from "process";
5981
6244
  var ManifestPublishModule = {
5982
6245
  command: "publish",
5983
6246
  describe: "Publish the Uniform Context manifest for a project",
5984
- builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(yargs35))),
6247
+ builder: (yargs36) => withConfiguration(withApiOptions(withProjectOptions(yargs36))),
5985
6248
  handler: async ({ apiKey, apiHost, proxy, project }) => {
5986
6249
  const fetch3 = nodeFetchProxy(proxy);
5987
6250
  try {
@@ -6014,25 +6277,25 @@ var ManifestModule = {
6014
6277
  command: "manifest <command>",
6015
6278
  describe: "Commands for context manifests",
6016
6279
  aliases: ["man"],
6017
- builder: (yargs35) => yargs35.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
6280
+ builder: (yargs36) => yargs36.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
6018
6281
  handler: () => {
6019
- yargs18.help();
6282
+ yargs19.help();
6020
6283
  }
6021
6284
  };
6022
6285
 
6023
6286
  // src/commands/context/commands/quirk.ts
6024
- import yargs19 from "yargs";
6287
+ import yargs20 from "yargs";
6025
6288
 
6026
6289
  // src/commands/context/commands/quirk/get.ts
6027
6290
  import { UncachedQuirkClient } from "@uniformdev/context/api";
6028
6291
  var QuirkGetModule = {
6029
6292
  command: "get <id>",
6030
6293
  describe: "Fetch a quirk",
6031
- builder: (yargs35) => withConfiguration(
6294
+ builder: (yargs36) => withConfiguration(
6032
6295
  withFormatOptions(
6033
6296
  withApiOptions(
6034
6297
  withProjectOptions(
6035
- yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
6298
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
6036
6299
  )
6037
6300
  )
6038
6301
  )
@@ -6056,11 +6319,11 @@ var QuirkListModule = {
6056
6319
  command: "list",
6057
6320
  describe: "List quirks",
6058
6321
  aliases: ["ls"],
6059
- builder: (yargs35) => withConfiguration(
6322
+ builder: (yargs36) => withConfiguration(
6060
6323
  withFormatOptions(
6061
6324
  withApiOptions(
6062
6325
  withProjectOptions(
6063
- yargs35.option("withIntegrations", {
6326
+ yargs36.option("withIntegrations", {
6064
6327
  alias: ["i"],
6065
6328
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
6066
6329
  type: "boolean"
@@ -6118,11 +6381,11 @@ function createQuirkEngineDataSource({
6118
6381
  var QuirkPullModule = {
6119
6382
  command: "pull <directory>",
6120
6383
  describe: "Pulls all quirks to local files in a directory",
6121
- builder: (yargs35) => withConfiguration(
6384
+ builder: (yargs36) => withConfiguration(
6122
6385
  withApiOptions(
6123
6386
  withProjectOptions(
6124
6387
  withDiffOptions(
6125
- yargs35.positional("directory", {
6388
+ yargs36.positional("directory", {
6126
6389
  describe: "Directory to save the quirks to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6127
6390
  type: "string"
6128
6391
  }).option("format", {
@@ -6200,11 +6463,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
6200
6463
  var QuirkPushModule = {
6201
6464
  command: "push <directory>",
6202
6465
  describe: "Pushes all quirks from files in a directory or package to Uniform",
6203
- builder: (yargs35) => withConfiguration(
6466
+ builder: (yargs36) => withConfiguration(
6204
6467
  withApiOptions(
6205
6468
  withProjectOptions(
6206
6469
  withDiffOptions(
6207
- yargs35.positional("directory", {
6470
+ yargs36.positional("directory", {
6208
6471
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
6209
6472
  type: "string"
6210
6473
  }).option("what-if", {
@@ -6271,10 +6534,10 @@ var QuirkRemoveModule = {
6271
6534
  command: "remove <id>",
6272
6535
  aliases: ["delete", "rm"],
6273
6536
  describe: "Delete a quirk",
6274
- builder: (yargs35) => withConfiguration(
6537
+ builder: (yargs36) => withConfiguration(
6275
6538
  withApiOptions(
6276
6539
  withProjectOptions(
6277
- yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
6540
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
6278
6541
  )
6279
6542
  )
6280
6543
  ),
@@ -6291,10 +6554,10 @@ var QuirkUpdateModule = {
6291
6554
  command: "update <filename>",
6292
6555
  aliases: ["put"],
6293
6556
  describe: "Insert or update a quirk",
6294
- builder: (yargs35) => withConfiguration(
6557
+ builder: (yargs36) => withConfiguration(
6295
6558
  withApiOptions(
6296
6559
  withProjectOptions(
6297
- yargs35.positional("filename", { demandOption: true, describe: "Quirk file to put" })
6560
+ yargs36.positional("filename", { demandOption: true, describe: "Quirk file to put" })
6298
6561
  )
6299
6562
  )
6300
6563
  ),
@@ -6311,25 +6574,25 @@ var QuirkModule = {
6311
6574
  command: "quirk <command>",
6312
6575
  aliases: ["qk"],
6313
6576
  describe: "Commands for Context quirks",
6314
- builder: (yargs35) => yargs35.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
6577
+ builder: (yargs36) => yargs36.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
6315
6578
  handler: () => {
6316
- yargs19.help();
6579
+ yargs20.help();
6317
6580
  }
6318
6581
  };
6319
6582
 
6320
6583
  // src/commands/context/commands/signal.ts
6321
- import yargs20 from "yargs";
6584
+ import yargs21 from "yargs";
6322
6585
 
6323
6586
  // src/commands/context/commands/signal/get.ts
6324
6587
  import { UncachedSignalClient } from "@uniformdev/context/api";
6325
6588
  var SignalGetModule = {
6326
6589
  command: "get <id>",
6327
6590
  describe: "Fetch a signal",
6328
- builder: (yargs35) => withConfiguration(
6591
+ builder: (yargs36) => withConfiguration(
6329
6592
  withFormatOptions(
6330
6593
  withApiOptions(
6331
6594
  withProjectOptions(
6332
- yargs35.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
6595
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
6333
6596
  )
6334
6597
  )
6335
6598
  )
@@ -6353,7 +6616,7 @@ var SignalListModule = {
6353
6616
  command: "list",
6354
6617
  describe: "List signals",
6355
6618
  aliases: ["ls"],
6356
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
6619
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
6357
6620
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6358
6621
  const fetch3 = nodeFetchProxy(proxy);
6359
6622
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6403,11 +6666,11 @@ function createSignalEngineDataSource({
6403
6666
  var SignalPullModule = {
6404
6667
  command: "pull <directory>",
6405
6668
  describe: "Pulls all signals to local files in a directory",
6406
- builder: (yargs35) => withConfiguration(
6669
+ builder: (yargs36) => withConfiguration(
6407
6670
  withApiOptions(
6408
6671
  withProjectOptions(
6409
6672
  withDiffOptions(
6410
- yargs35.positional("directory", {
6673
+ yargs36.positional("directory", {
6411
6674
  describe: "Directory to save the signals to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6412
6675
  type: "string"
6413
6676
  }).option("format", {
@@ -6485,11 +6748,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
6485
6748
  var SignalPushModule = {
6486
6749
  command: "push <directory>",
6487
6750
  describe: "Pushes all signals from files in a directory or package to Uniform",
6488
- builder: (yargs35) => withConfiguration(
6751
+ builder: (yargs36) => withConfiguration(
6489
6752
  withApiOptions(
6490
6753
  withProjectOptions(
6491
6754
  withDiffOptions(
6492
- yargs35.positional("directory", {
6755
+ yargs36.positional("directory", {
6493
6756
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
6494
6757
  type: "string"
6495
6758
  }).option("what-if", {
@@ -6556,10 +6819,10 @@ var SignalRemoveModule = {
6556
6819
  command: "remove <id>",
6557
6820
  aliases: ["delete", "rm"],
6558
6821
  describe: "Delete a signal",
6559
- builder: (yargs35) => withConfiguration(
6822
+ builder: (yargs36) => withConfiguration(
6560
6823
  withApiOptions(
6561
6824
  withProjectOptions(
6562
- yargs35.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
6825
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
6563
6826
  )
6564
6827
  )
6565
6828
  ),
@@ -6576,10 +6839,10 @@ var SignalUpdateModule = {
6576
6839
  command: "update <filename>",
6577
6840
  aliases: ["put"],
6578
6841
  describe: "Insert or update a signal",
6579
- builder: (yargs35) => withConfiguration(
6842
+ builder: (yargs36) => withConfiguration(
6580
6843
  withApiOptions(
6581
6844
  withProjectOptions(
6582
- yargs35.positional("filename", { demandOption: true, describe: "Signal file to put" })
6845
+ yargs36.positional("filename", { demandOption: true, describe: "Signal file to put" })
6583
6846
  )
6584
6847
  )
6585
6848
  ),
@@ -6596,25 +6859,25 @@ var SignalModule = {
6596
6859
  command: "signal <command>",
6597
6860
  aliases: ["sig"],
6598
6861
  describe: "Commands for Context signals",
6599
- builder: (yargs35) => yargs35.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
6862
+ builder: (yargs36) => yargs36.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
6600
6863
  handler: () => {
6601
- yargs20.help();
6864
+ yargs21.help();
6602
6865
  }
6603
6866
  };
6604
6867
 
6605
6868
  // src/commands/context/commands/test.ts
6606
- import yargs21 from "yargs";
6869
+ import yargs22 from "yargs";
6607
6870
 
6608
6871
  // src/commands/context/commands/test/get.ts
6609
6872
  import { UncachedTestClient } from "@uniformdev/context/api";
6610
6873
  var TestGetModule = {
6611
6874
  command: "get <id>",
6612
6875
  describe: "Fetch a test",
6613
- builder: (yargs35) => withConfiguration(
6876
+ builder: (yargs36) => withConfiguration(
6614
6877
  withFormatOptions(
6615
6878
  withApiOptions(
6616
6879
  withProjectOptions(
6617
- yargs35.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
6880
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
6618
6881
  )
6619
6882
  )
6620
6883
  )
@@ -6638,7 +6901,7 @@ var TestListModule = {
6638
6901
  command: "list",
6639
6902
  describe: "List tests",
6640
6903
  aliases: ["ls"],
6641
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
6904
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
6642
6905
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6643
6906
  const fetch3 = nodeFetchProxy(proxy);
6644
6907
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6688,11 +6951,11 @@ function createTestEngineDataSource({
6688
6951
  var TestPullModule = {
6689
6952
  command: "pull <directory>",
6690
6953
  describe: "Pulls all tests to local files in a directory",
6691
- builder: (yargs35) => withConfiguration(
6954
+ builder: (yargs36) => withConfiguration(
6692
6955
  withApiOptions(
6693
6956
  withProjectOptions(
6694
6957
  withDiffOptions(
6695
- yargs35.positional("directory", {
6958
+ yargs36.positional("directory", {
6696
6959
  describe: "Directory to save the tests to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6697
6960
  type: "string"
6698
6961
  }).option("format", {
@@ -6770,11 +7033,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
6770
7033
  var TestPushModule = {
6771
7034
  command: "push <directory>",
6772
7035
  describe: "Pushes all tests from files in a directory or package to Uniform",
6773
- builder: (yargs35) => withConfiguration(
7036
+ builder: (yargs36) => withConfiguration(
6774
7037
  withApiOptions(
6775
7038
  withProjectOptions(
6776
7039
  withDiffOptions(
6777
- yargs35.positional("directory", {
7040
+ yargs36.positional("directory", {
6778
7041
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
6779
7042
  type: "string"
6780
7043
  }).option("what-if", {
@@ -6841,10 +7104,10 @@ var TestRemoveModule = {
6841
7104
  command: "remove <id>",
6842
7105
  aliases: ["delete", "rm"],
6843
7106
  describe: "Delete a test",
6844
- builder: (yargs35) => withConfiguration(
7107
+ builder: (yargs36) => withConfiguration(
6845
7108
  withApiOptions(
6846
7109
  withProjectOptions(
6847
- yargs35.positional("id", { demandOption: true, describe: "Test public ID to delete" })
7110
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to delete" })
6848
7111
  )
6849
7112
  )
6850
7113
  ),
@@ -6861,9 +7124,9 @@ var TestUpdateModule = {
6861
7124
  command: "update <filename>",
6862
7125
  aliases: ["put"],
6863
7126
  describe: "Insert or update a test",
6864
- builder: (yargs35) => withConfiguration(
7127
+ builder: (yargs36) => withConfiguration(
6865
7128
  withApiOptions(
6866
- withProjectOptions(yargs35.positional("filename", { demandOption: true, describe: "Test file to put" }))
7129
+ withProjectOptions(yargs36.positional("filename", { demandOption: true, describe: "Test file to put" }))
6867
7130
  )
6868
7131
  ),
6869
7132
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -6878,9 +7141,9 @@ var TestUpdateModule = {
6878
7141
  var TestModule = {
6879
7142
  command: "test <command>",
6880
7143
  describe: "Commands for Context A/B tests",
6881
- builder: (yargs35) => yargs35.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
7144
+ builder: (yargs36) => yargs36.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
6882
7145
  handler: () => {
6883
- yargs21.help();
7146
+ yargs22.help();
6884
7147
  }
6885
7148
  };
6886
7149
 
@@ -6889,20 +7152,20 @@ var ContextCommand = {
6889
7152
  command: "context <command>",
6890
7153
  aliases: ["ctx"],
6891
7154
  describe: "Uniform Context commands",
6892
- builder: (yargs35) => yargs35.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
7155
+ builder: (yargs36) => yargs36.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
6893
7156
  handler: () => {
6894
- yargs22.showHelp();
7157
+ yargs23.showHelp();
6895
7158
  }
6896
7159
  };
6897
7160
 
6898
7161
  // src/commands/integration/index.ts
6899
- import yargs25 from "yargs";
7162
+ import yargs26 from "yargs";
6900
7163
 
6901
7164
  // src/commands/integration/commands/definition.ts
6902
- import yargs24 from "yargs";
7165
+ import yargs25 from "yargs";
6903
7166
 
6904
7167
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
6905
- import yargs23 from "yargs";
7168
+ import yargs24 from "yargs";
6906
7169
 
6907
7170
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
6908
7171
  import { readFileSync } from "fs";
@@ -6940,8 +7203,8 @@ var EdgehancerClient = class extends ApiClient {
6940
7203
  };
6941
7204
 
6942
7205
  // src/commands/integration/commands/definition/edgehancer/util.ts
6943
- function withEdgehancerIdOptions(yargs35) {
6944
- return yargs35.option("connectorType", {
7206
+ function withEdgehancerIdOptions(yargs36) {
7207
+ return yargs36.option("connectorType", {
6945
7208
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
6946
7209
  demandOption: true,
6947
7210
  type: "string"
@@ -6961,11 +7224,11 @@ function withEdgehancerIdOptions(yargs35) {
6961
7224
  var IntegrationEdgehancerDeployModule = {
6962
7225
  command: "deploy <filename>",
6963
7226
  describe: "Deploys a custom edgehancer hook to run when a data resource of a specific archetype is fetched. The API key used must have team admin permissions.",
6964
- builder: (yargs35) => withConfiguration(
7227
+ builder: (yargs36) => withConfiguration(
6965
7228
  withApiOptions(
6966
7229
  withTeamOptions(
6967
7230
  withEdgehancerIdOptions(
6968
- yargs35.positional("filename", {
7231
+ yargs36.positional("filename", {
6969
7232
  demandOption: true,
6970
7233
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
6971
7234
  })
@@ -6985,7 +7248,7 @@ var IntegrationEdgehancerDeployModule = {
6985
7248
  var IntegrationEdgehancerRemoveModule = {
6986
7249
  command: "remove",
6987
7250
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
6988
- builder: (yargs35) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs35)))),
7251
+ builder: (yargs36) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs36)))),
6989
7252
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
6990
7253
  const fetch3 = nodeFetchProxy(proxy);
6991
7254
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch3, teamId });
@@ -6997,9 +7260,9 @@ var IntegrationEdgehancerRemoveModule = {
6997
7260
  var IntegrationEdgehancerModule = {
6998
7261
  command: "edgehancer <command>",
6999
7262
  describe: "Commands for managing custom integration edgehancers at the team level.",
7000
- builder: (yargs35) => yargs35.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
7263
+ builder: (yargs36) => yargs36.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
7001
7264
  handler: () => {
7002
- yargs23.help();
7265
+ yargs24.help();
7003
7266
  }
7004
7267
  };
7005
7268
 
@@ -7039,10 +7302,10 @@ var DefinitionClient = class extends ApiClient2 {
7039
7302
  var IntegrationDefinitionRegisterModule = {
7040
7303
  command: "register <filename>",
7041
7304
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
7042
- builder: (yargs35) => withConfiguration(
7305
+ builder: (yargs36) => withConfiguration(
7043
7306
  withApiOptions(
7044
7307
  withTeamOptions(
7045
- yargs35.positional("filename", {
7308
+ yargs36.positional("filename", {
7046
7309
  demandOption: true,
7047
7310
  describe: "Integration definition manifest to register"
7048
7311
  })
@@ -7061,10 +7324,10 @@ var IntegrationDefinitionRegisterModule = {
7061
7324
  var IntegrationDefinitionRemoveModule = {
7062
7325
  command: "remove <type>",
7063
7326
  describe: "Deletes a custom integration definition from a team. This will uninstall it on any active projects. Existing usages of the integration may break. The API key used must have team admin permissions.",
7064
- builder: (yargs35) => withConfiguration(
7327
+ builder: (yargs36) => withConfiguration(
7065
7328
  withApiOptions(
7066
7329
  withTeamOptions(
7067
- yargs35.positional("type", {
7330
+ yargs36.positional("type", {
7068
7331
  demandOption: true,
7069
7332
  describe: "Integration type (from its manifest) to remove."
7070
7333
  })
@@ -7082,9 +7345,9 @@ var IntegrationDefinitionRemoveModule = {
7082
7345
  var IntegrationDefinitionModule = {
7083
7346
  command: "definition <command>",
7084
7347
  describe: "Commands for managing custom integration definitions at the team level.",
7085
- builder: (yargs35) => yargs35.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
7348
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
7086
7349
  handler: () => {
7087
- yargs24.help();
7350
+ yargs25.help();
7088
7351
  }
7089
7352
  };
7090
7353
 
@@ -7124,10 +7387,10 @@ var InstallClient = class extends ApiClient3 {
7124
7387
  var IntegrationInstallModule = {
7125
7388
  command: "install <type>",
7126
7389
  describe: "Installs an integration to a project. The integration may be built-in or custom. Custom integrations must be registered to the parent team first.",
7127
- builder: (yargs35) => withConfiguration(
7390
+ builder: (yargs36) => withConfiguration(
7128
7391
  withApiOptions(
7129
7392
  withProjectOptions(
7130
- yargs35.positional("type", {
7393
+ yargs36.positional("type", {
7131
7394
  demandOption: true,
7132
7395
  describe: "Integration type to install (as defined in its manifest)"
7133
7396
  }).option("configuration", {
@@ -7149,10 +7412,10 @@ var IntegrationInstallModule = {
7149
7412
  var IntegrationUninstallModule = {
7150
7413
  command: "uninstall <type>",
7151
7414
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
7152
- builder: (yargs35) => withConfiguration(
7415
+ builder: (yargs36) => withConfiguration(
7153
7416
  withApiOptions(
7154
7417
  withProjectOptions(
7155
- yargs35.positional("type", {
7418
+ yargs36.positional("type", {
7156
7419
  demandOption: true,
7157
7420
  describe: "Integration type to uninstall (as defined in its manifest)"
7158
7421
  })
@@ -7170,9 +7433,9 @@ var IntegrationUninstallModule = {
7170
7433
  var IntegrationCommand = {
7171
7434
  command: "integration <command>",
7172
7435
  describe: "Integration management commands",
7173
- builder: (yargs35) => yargs35.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
7436
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
7174
7437
  handler: () => {
7175
- yargs25.showHelp();
7438
+ yargs26.showHelp();
7176
7439
  }
7177
7440
  };
7178
7441
 
@@ -7200,7 +7463,7 @@ import { PostHog } from "posthog-node";
7200
7463
  // package.json
7201
7464
  var package_default = {
7202
7465
  name: "@uniformdev/cli",
7203
- version: "19.164.0",
7466
+ version: "19.167.0",
7204
7467
  description: "Uniform command line interface tool",
7205
7468
  license: "SEE LICENSE IN LICENSE.txt",
7206
7469
  main: "./cli.js",
@@ -7241,7 +7504,7 @@ var package_default = {
7241
7504
  dotenv: "^16.0.3",
7242
7505
  execa: "5.1.1",
7243
7506
  "fs-jetpack": "5.1.0",
7244
- graphql: "16.8.1",
7507
+ graphql: "16.9.0",
7245
7508
  "graphql-request": "6.1.0",
7246
7509
  "image-size": "^1.0.2",
7247
7510
  inquirer: "9.2.17",
@@ -7258,7 +7521,7 @@ var package_default = {
7258
7521
  slugify: "1.6.6",
7259
7522
  undici: "^6.10.1",
7260
7523
  yargs: "^17.6.2",
7261
- zod: "3.22.4"
7524
+ zod: "3.23.8"
7262
7525
  },
7263
7526
  devDependencies: {
7264
7527
  "@types/diff": "5.0.9",
@@ -8216,10 +8479,10 @@ var NewMeshCmd = {
8216
8479
  };
8217
8480
 
8218
8481
  // src/commands/optimize/index.ts
8219
- import yargs27 from "yargs";
8482
+ import yargs28 from "yargs";
8220
8483
 
8221
8484
  // src/commands/optimize/manifest.ts
8222
- import yargs26 from "yargs";
8485
+ import yargs27 from "yargs";
8223
8486
 
8224
8487
  // src/commands/optimize/manifest/download.ts
8225
8488
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -8234,7 +8497,7 @@ var UniformBaseUrl = "https://uniform.app";
8234
8497
  var module = {
8235
8498
  command: "download [output]",
8236
8499
  describe: "Download intent manifest",
8237
- builder: (yargs35) => yargs35.option("apiKey", {
8500
+ builder: (yargs36) => yargs36.option("apiKey", {
8238
8501
  alias: "k",
8239
8502
  demandOption: true,
8240
8503
  string: true,
@@ -8335,10 +8598,10 @@ var module2 = {
8335
8598
  command: "manifest <command>",
8336
8599
  describe: "Intent manifest commands",
8337
8600
  builder: () => {
8338
- return yargs26.command(download_default);
8601
+ return yargs27.command(download_default);
8339
8602
  },
8340
8603
  handler: () => {
8341
- yargs26.showHelp();
8604
+ yargs27.showHelp();
8342
8605
  }
8343
8606
  };
8344
8607
  var manifest_default = module2;
@@ -8349,29 +8612,29 @@ var OptimizeCommand = {
8349
8612
  aliases: ["opt"],
8350
8613
  describe: "Uniform Optimize commands",
8351
8614
  builder: () => {
8352
- return yargs27.command(manifest_default);
8615
+ return yargs28.command(manifest_default);
8353
8616
  },
8354
8617
  handler: () => {
8355
- yargs27.showHelp();
8618
+ yargs28.showHelp();
8356
8619
  }
8357
8620
  };
8358
8621
 
8359
8622
  // src/commands/project-map/index.ts
8360
- import yargs30 from "yargs";
8623
+ import yargs31 from "yargs";
8361
8624
 
8362
8625
  // src/commands/project-map/commands/projectMapDefinition.ts
8363
- import yargs28 from "yargs";
8626
+ import yargs29 from "yargs";
8364
8627
 
8365
8628
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
8366
8629
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
8367
8630
  var ProjectMapDefinitionGetModule = {
8368
8631
  command: "get <id>",
8369
8632
  describe: "Fetch a project map",
8370
- builder: (yargs35) => withFormatOptions(
8633
+ builder: (yargs36) => withFormatOptions(
8371
8634
  withConfiguration(
8372
8635
  withApiOptions(
8373
8636
  withProjectOptions(
8374
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
8637
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
8375
8638
  )
8376
8639
  )
8377
8640
  )
@@ -8395,7 +8658,7 @@ var ProjectMapDefinitionListModule = {
8395
8658
  command: "list",
8396
8659
  describe: "List of project maps",
8397
8660
  aliases: ["ls"],
8398
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
8661
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
8399
8662
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8400
8663
  const fetch3 = nodeFetchProxy(proxy);
8401
8664
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8453,11 +8716,11 @@ function createProjectMapDefinitionEngineDataSource({
8453
8716
  var ProjectMapDefinitionPullModule = {
8454
8717
  command: "pull <directory>",
8455
8718
  describe: "Pulls all project maps to local files in a directory",
8456
- builder: (yargs35) => withConfiguration(
8719
+ builder: (yargs36) => withConfiguration(
8457
8720
  withApiOptions(
8458
8721
  withProjectOptions(
8459
8722
  withDiffOptions(
8460
- yargs35.positional("directory", {
8723
+ yargs36.positional("directory", {
8461
8724
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8462
8725
  type: "string"
8463
8726
  }).option("format", {
@@ -8535,11 +8798,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
8535
8798
  var ProjectMapDefinitionPushModule = {
8536
8799
  command: "push <directory>",
8537
8800
  describe: "Pushes all project maps from files in a directory or package to Uniform",
8538
- builder: (yargs35) => withConfiguration(
8801
+ builder: (yargs36) => withConfiguration(
8539
8802
  withApiOptions(
8540
8803
  withProjectOptions(
8541
8804
  withDiffOptions(
8542
- yargs35.positional("directory", {
8805
+ yargs36.positional("directory", {
8543
8806
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8544
8807
  type: "string"
8545
8808
  }).option("what-if", {
@@ -8606,9 +8869,9 @@ var ProjectMapDefinitionRemoveModule = {
8606
8869
  command: "remove <id>",
8607
8870
  aliases: ["delete", "rm"],
8608
8871
  describe: "Delete a project map",
8609
- builder: (yargs35) => withConfiguration(
8872
+ builder: (yargs36) => withConfiguration(
8610
8873
  withApiOptions(
8611
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
8874
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
8612
8875
  )
8613
8876
  ),
8614
8877
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8624,10 +8887,10 @@ var ProjectMapDefinitionUpdateModule = {
8624
8887
  command: "update <filename>",
8625
8888
  aliases: ["put"],
8626
8889
  describe: "Insert or update a project map",
8627
- builder: (yargs35) => withConfiguration(
8890
+ builder: (yargs36) => withConfiguration(
8628
8891
  withApiOptions(
8629
8892
  withProjectOptions(
8630
- yargs35.positional("filename", { demandOption: true, describe: "Project map file to put" })
8893
+ yargs36.positional("filename", { demandOption: true, describe: "Project map file to put" })
8631
8894
  )
8632
8895
  )
8633
8896
  ),
@@ -8643,25 +8906,25 @@ var ProjectMapDefinitionUpdateModule = {
8643
8906
  var ProjectMapDefinitionModule = {
8644
8907
  command: "definition <command>",
8645
8908
  describe: "Commands for ProjectMap Definitions",
8646
- builder: (yargs35) => yargs35.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
8909
+ builder: (yargs36) => yargs36.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
8647
8910
  handler: () => {
8648
- yargs28.help();
8911
+ yargs29.help();
8649
8912
  }
8650
8913
  };
8651
8914
 
8652
8915
  // src/commands/project-map/commands/projectMapNode.ts
8653
- import yargs29 from "yargs";
8916
+ import yargs30 from "yargs";
8654
8917
 
8655
8918
  // src/commands/project-map/commands/ProjectMapNode/get.ts
8656
8919
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
8657
8920
  var ProjectMapNodeGetModule = {
8658
8921
  command: "get <id> <projectMapId>",
8659
8922
  describe: "Fetch a project map node",
8660
- builder: (yargs35) => withConfiguration(
8923
+ builder: (yargs36) => withConfiguration(
8661
8924
  withFormatOptions(
8662
8925
  withApiOptions(
8663
8926
  withProjectOptions(
8664
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
8927
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
8665
8928
  )
8666
8929
  )
8667
8930
  )
@@ -8686,12 +8949,12 @@ var ProjectMapNodeListModule = {
8686
8949
  command: "list <projectMapId>",
8687
8950
  describe: "List project map nodes",
8688
8951
  aliases: ["ls"],
8689
- builder: (yargs35) => withConfiguration(
8952
+ builder: (yargs36) => withConfiguration(
8690
8953
  withFormatOptions(
8691
8954
  withApiOptions(
8692
8955
  withProjectOptions(
8693
8956
  withStateOptions(
8694
- yargs35.positional("projectMapId", {
8957
+ yargs36.positional("projectMapId", {
8695
8958
  demandOption: true,
8696
8959
  describe: "ProjectMap UUID to fetch from"
8697
8960
  })
@@ -8764,11 +9027,11 @@ function createProjectMapNodeEngineDataSource({
8764
9027
  var ProjectMapNodePullModule = {
8765
9028
  command: "pull <directory>",
8766
9029
  describe: "Pulls all project maps nodes to local files in a directory",
8767
- builder: (yargs35) => withConfiguration(
9030
+ builder: (yargs36) => withConfiguration(
8768
9031
  withApiOptions(
8769
9032
  withProjectOptions(
8770
9033
  withDiffOptions(
8771
- yargs35.positional("directory", {
9034
+ yargs36.positional("directory", {
8772
9035
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8773
9036
  type: "string"
8774
9037
  }).option("format", {
@@ -8850,11 +9113,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
8850
9113
  var ProjectMapNodePushModule = {
8851
9114
  command: "push <directory>",
8852
9115
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
8853
- builder: (yargs35) => withConfiguration(
9116
+ builder: (yargs36) => withConfiguration(
8854
9117
  withApiOptions(
8855
9118
  withProjectOptions(
8856
9119
  withDiffOptions(
8857
- yargs35.positional("directory", {
9120
+ yargs36.positional("directory", {
8858
9121
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8859
9122
  type: "string"
8860
9123
  }).option("what-if", {
@@ -8930,10 +9193,10 @@ var ProjectMapNodeRemoveModule = {
8930
9193
  command: "remove <id> <projectMapId>",
8931
9194
  aliases: ["delete", "rm"],
8932
9195
  describe: "Delete a project map node",
8933
- builder: (yargs35) => withConfiguration(
9196
+ builder: (yargs36) => withConfiguration(
8934
9197
  withApiOptions(
8935
9198
  withProjectOptions(
8936
- yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
9199
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
8937
9200
  )
8938
9201
  )
8939
9202
  ),
@@ -8950,10 +9213,10 @@ var ProjectMapNodeUpdateModule = {
8950
9213
  command: "update <filename> <projectMapId>",
8951
9214
  aliases: ["put"],
8952
9215
  describe: "Insert or update a project map node",
8953
- builder: (yargs35) => withConfiguration(
9216
+ builder: (yargs36) => withConfiguration(
8954
9217
  withApiOptions(
8955
9218
  withProjectOptions(
8956
- yargs35.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
9219
+ yargs36.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
8957
9220
  )
8958
9221
  )
8959
9222
  ),
@@ -8969,9 +9232,9 @@ var ProjectMapNodeUpdateModule = {
8969
9232
  var ProjectMapNodeModule = {
8970
9233
  command: "node <command>",
8971
9234
  describe: "Commands for ProjectMap Nodes",
8972
- builder: (yargs35) => yargs35.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
9235
+ builder: (yargs36) => yargs36.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
8973
9236
  handler: () => {
8974
- yargs29.help();
9237
+ yargs30.help();
8975
9238
  }
8976
9239
  };
8977
9240
 
@@ -8980,28 +9243,28 @@ var ProjectMapCommand = {
8980
9243
  command: "project-map <command>",
8981
9244
  aliases: ["prm"],
8982
9245
  describe: "Uniform ProjectMap commands",
8983
- builder: (yargs35) => yargs35.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
9246
+ builder: (yargs36) => yargs36.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
8984
9247
  handler: () => {
8985
- yargs30.showHelp();
9248
+ yargs31.showHelp();
8986
9249
  }
8987
9250
  };
8988
9251
 
8989
9252
  // src/commands/redirect/index.ts
8990
- import yargs32 from "yargs";
9253
+ import yargs33 from "yargs";
8991
9254
 
8992
9255
  // src/commands/redirect/commands/redirect.ts
8993
- import yargs31 from "yargs";
9256
+ import yargs32 from "yargs";
8994
9257
 
8995
9258
  // src/commands/redirect/commands/RedirectDefinition/get.ts
8996
9259
  import { UncachedRedirectClient } from "@uniformdev/redirect";
8997
9260
  var RedirectDefinitionGetModule = {
8998
9261
  command: "get <id>",
8999
9262
  describe: "Fetch a redirect",
9000
- builder: (yargs35) => withConfiguration(
9263
+ builder: (yargs36) => withConfiguration(
9001
9264
  withFormatOptions(
9002
9265
  withApiOptions(
9003
9266
  withProjectOptions(
9004
- yargs35.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
9267
+ yargs36.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
9005
9268
  )
9006
9269
  )
9007
9270
  )
@@ -9025,7 +9288,7 @@ var RedirectDefinitionListModule = {
9025
9288
  command: "list",
9026
9289
  describe: "List of redirects",
9027
9290
  aliases: ["ls"],
9028
- builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
9291
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
9029
9292
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9030
9293
  const fetch3 = nodeFetchProxy(proxy);
9031
9294
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -9092,11 +9355,11 @@ function createRedirectDefinitionEngineDataSource({
9092
9355
  var RedirectDefinitionPullModule = {
9093
9356
  command: "pull <directory>",
9094
9357
  describe: "Pulls all redirects to local files in a directory",
9095
- builder: (yargs35) => withConfiguration(
9358
+ builder: (yargs36) => withConfiguration(
9096
9359
  withApiOptions(
9097
9360
  withProjectOptions(
9098
9361
  withDiffOptions(
9099
- yargs35.positional("directory", {
9362
+ yargs36.positional("directory", {
9100
9363
  describe: "Directory to save redirects to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9101
9364
  type: "string"
9102
9365
  }).option("format", {
@@ -9175,11 +9438,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
9175
9438
  var RedirectDefinitionPushModule = {
9176
9439
  command: "push <directory>",
9177
9440
  describe: "Pushes all redirects from files in a directory or package to Uniform",
9178
- builder: (yargs35) => withConfiguration(
9441
+ builder: (yargs36) => withConfiguration(
9179
9442
  withApiOptions(
9180
9443
  withProjectOptions(
9181
9444
  withDiffOptions(
9182
- yargs35.positional("directory", {
9445
+ yargs36.positional("directory", {
9183
9446
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
9184
9447
  type: "string"
9185
9448
  }).option("what-if", {
@@ -9246,9 +9509,9 @@ var RedirectDefinitionRemoveModule = {
9246
9509
  command: "remove <id>",
9247
9510
  aliases: ["delete", "rm"],
9248
9511
  describe: "Delete a redirect",
9249
- builder: (yargs35) => withConfiguration(
9512
+ builder: (yargs36) => withConfiguration(
9250
9513
  withApiOptions(
9251
- withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
9514
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
9252
9515
  )
9253
9516
  ),
9254
9517
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -9264,10 +9527,10 @@ var RedirectDefinitionUpdateModule = {
9264
9527
  command: "update <filename>",
9265
9528
  aliases: ["put"],
9266
9529
  describe: "Insert or update a redirect",
9267
- builder: (yargs35) => withConfiguration(
9530
+ builder: (yargs36) => withConfiguration(
9268
9531
  withApiOptions(
9269
9532
  withProjectOptions(
9270
- yargs35.positional("filename", { demandOption: true, describe: "Redirect file to put" })
9533
+ yargs36.positional("filename", { demandOption: true, describe: "Redirect file to put" })
9271
9534
  )
9272
9535
  )
9273
9536
  ),
@@ -9283,9 +9546,9 @@ var RedirectDefinitionUpdateModule = {
9283
9546
  var RedirectDefinitionModule = {
9284
9547
  command: "definition <command>",
9285
9548
  describe: "Commands for Redirect Definitions",
9286
- builder: (yargs35) => yargs35.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
9549
+ builder: (yargs36) => yargs36.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
9287
9550
  handler: () => {
9288
- yargs31.help();
9551
+ yargs32.help();
9289
9552
  }
9290
9553
  };
9291
9554
 
@@ -9294,57 +9557,14 @@ var RedirectCommand = {
9294
9557
  command: "redirect <command>",
9295
9558
  aliases: ["red"],
9296
9559
  describe: "Uniform Redirect commands",
9297
- builder: (yargs35) => yargs35.command(RedirectDefinitionModule).demandCommand(),
9560
+ builder: (yargs36) => yargs36.command(RedirectDefinitionModule).demandCommand(),
9298
9561
  handler: () => {
9299
- yargs32.showHelp();
9562
+ yargs33.showHelp();
9300
9563
  }
9301
9564
  };
9302
9565
 
9303
9566
  // src/commands/sync/index.ts
9304
- import yargs33 from "yargs";
9305
-
9306
- // src/commands/canvas/commands/pattern/pull.ts
9307
- var PatternPullModule = {
9308
- ...CompositionPullModule,
9309
- describe: "Pulls all patterns to local files in a directory",
9310
- builder: (yargs35) => withConfiguration(
9311
- withApiOptions(
9312
- withProjectOptions(
9313
- withStateOptions(
9314
- withDiffOptions(
9315
- yargs35.positional("directory", {
9316
- describe: "Directory to save the definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9317
- type: "string"
9318
- }).option("format", {
9319
- alias: ["f"],
9320
- describe: "Output format",
9321
- default: "yaml",
9322
- choices: ["yaml", "json"],
9323
- type: "string"
9324
- }).option("onlyPatterns", {
9325
- describe: "Only pulling patterns and not compositions",
9326
- // This default differentiate this list command from composition list command
9327
- default: true,
9328
- type: "boolean",
9329
- hidden: true
9330
- }).option("what-if", {
9331
- alias: ["w"],
9332
- describe: "What-if mode reports what would be done but changes no files",
9333
- default: false,
9334
- type: "boolean"
9335
- }).option("mode", {
9336
- alias: ["m"],
9337
- describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
9338
- choices: ["create", "createOrUpdate", "mirror"],
9339
- default: "mirror",
9340
- type: "string"
9341
- })
9342
- )
9343
- )
9344
- )
9345
- )
9346
- )
9347
- };
9567
+ import yargs34 from "yargs";
9348
9568
 
9349
9569
  // src/commands/sync/commands/util.ts
9350
9570
  import ora2 from "ora";
@@ -9404,11 +9624,11 @@ function patchConsole(fn, ora3, replay = []) {
9404
9624
  var SyncPullModule = {
9405
9625
  command: "pull",
9406
9626
  describe: "Pulls whole project to local files in a directory",
9407
- builder: (yargs35) => withConfiguration(
9627
+ builder: (yargs36) => withConfiguration(
9408
9628
  withApiOptions(
9409
9629
  withProjectOptions(
9410
9630
  withDiffOptions(
9411
- yargs35.option("what-if", {
9631
+ yargs36.option("what-if", {
9412
9632
  alias: ["w"],
9413
9633
  describe: "What-if mode reports what would be done but changes no files",
9414
9634
  default: false,
@@ -9510,52 +9730,15 @@ var getFormat = (entityType, config2) => {
9510
9730
  });
9511
9731
  };
9512
9732
 
9513
- // src/commands/canvas/commands/pattern/push.ts
9514
- var PatternPushModule = {
9515
- ...CompositionPushModule,
9516
- describe: "Pushes all patterns from files in a directory to Uniform Canvas",
9517
- builder: (yargs35) => withConfiguration(
9518
- withApiOptions(
9519
- withProjectOptions(
9520
- withStateOptions(
9521
- withDiffOptions(
9522
- yargs35.positional("directory", {
9523
- describe: "Directory to read the patterns from. If a filename is used, a package will be read instead.",
9524
- type: "string"
9525
- }).option("what-if", {
9526
- alias: ["w"],
9527
- describe: "What-if mode reports what would be done but changes nothing",
9528
- default: false,
9529
- type: "boolean"
9530
- }).option("mode", {
9531
- alias: ["m"],
9532
- describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
9533
- choices: ["create", "createOrUpdate", "mirror"],
9534
- default: "mirror",
9535
- type: "string"
9536
- }).option("onlyPatterns", {
9537
- describe: "Only pulling patterns and not compositions",
9538
- // This default differentiate this list command from composition list command
9539
- default: true,
9540
- type: "boolean",
9541
- hidden: true
9542
- })
9543
- )
9544
- )
9545
- )
9546
- )
9547
- )
9548
- };
9549
-
9550
9733
  // src/commands/sync/commands/push.ts
9551
9734
  var SyncPushModule = {
9552
9735
  command: "push",
9553
9736
  describe: "Pushes whole project data from files in a directory or package to Uniform",
9554
- builder: (yargs35) => withConfiguration(
9737
+ builder: (yargs36) => withConfiguration(
9555
9738
  withApiOptions(
9556
9739
  withProjectOptions(
9557
9740
  withDiffOptions(
9558
- yargs35.option("what-if", {
9741
+ yargs36.option("what-if", {
9559
9742
  alias: ["w"],
9560
9743
  describe: "What-if mode reports what would be done but changes nothing",
9561
9744
  default: false,
@@ -9672,9 +9855,9 @@ var getFormat2 = (entityType, config2) => {
9672
9855
  var SyncCommand = {
9673
9856
  command: "sync <command>",
9674
9857
  describe: "Uniform Sync commands",
9675
- builder: (yargs35) => yargs35.command(SyncPullModule).command(SyncPushModule).demandCommand(),
9858
+ builder: (yargs36) => yargs36.command(SyncPullModule).command(SyncPushModule).demandCommand(),
9676
9859
  handler: () => {
9677
- yargs33.showHelp();
9860
+ yargs34.showHelp();
9678
9861
  }
9679
9862
  };
9680
9863
 
@@ -9909,8 +10092,7 @@ var checkLocalDepsVersions = async (args) => {
9909
10092
  let isOutside = false;
9910
10093
  let warning = `${magenta("Warning:")} Installed Uniform packages should be the same version`;
9911
10094
  const localPackages = await tryReadJSON(join4(process.cwd(), "package.json"));
9912
- if (!localPackages)
9913
- return;
10095
+ if (!localPackages) return;
9914
10096
  let firstVersion;
9915
10097
  const allDependencies = {
9916
10098
  ...localPackages?.dependencies ?? {},
@@ -9930,8 +10112,7 @@ First found was: v${firstVersion}`;
9930
10112
  }
9931
10113
  }
9932
10114
  }
9933
- if (isOutside)
9934
- logCallout(warning);
10115
+ if (isOutside) logCallout(warning);
9935
10116
  } catch (e) {
9936
10117
  if (args.verbose) {
9937
10118
  console.warn(`There was an error validating the local project dependencies`, e);
@@ -9941,7 +10122,7 @@ First found was: v${firstVersion}`;
9941
10122
 
9942
10123
  // src/index.ts
9943
10124
  dotenv.config();
9944
- var yarggery = yargs34(hideBin(process.argv));
10125
+ var yarggery = yargs35(hideBin(process.argv));
9945
10126
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
9946
10127
  var configuration = loadConfig(inlineConfigurationFilePath || null);
9947
10128
  yarggery.option("verbose", {