@uniformdev/cli 19.166.1 → 19.167.2-alpha.3

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
@@ -19,11 +19,11 @@ import {
19
19
 
20
20
  // src/index.ts
21
21
  import * as dotenv from "dotenv";
22
- import yargs33 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 yargs14 from "yargs";
26
+ import yargs16 from "yargs";
27
27
 
28
28
  // src/commands/canvas/commands/asset.ts
29
29
  import yargs from "yargs";
@@ -406,12 +406,12 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
406
406
  var AssetGetModule = {
407
407
  command: "get <id>",
408
408
  describe: "Get an asset",
409
- builder: (yargs34) => withConfiguration(
409
+ builder: (yargs36) => withConfiguration(
410
410
  withFormatOptions(
411
411
  withApiOptions(
412
412
  withProjectOptions(
413
413
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
414
- yargs34.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
414
+ yargs36.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
415
415
  )
416
416
  )
417
417
  )
@@ -432,7 +432,7 @@ import { UncachedAssetClient as UncachedAssetClient2 } from "@uniformdev/assets"
432
432
  var AssetListModule = {
433
433
  command: "list",
434
434
  describe: "List assets",
435
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
435
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
436
436
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
437
437
  const fetch3 = nodeFetchProxy(proxy);
438
438
  const client = new UncachedAssetClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -784,8 +784,8 @@ function prepCompositionForDisk(composition) {
784
784
  delete prepped.state;
785
785
  return prepped;
786
786
  }
787
- function withStateOptions(yargs34, defaultState = "preview") {
788
- return yargs34.option("state", {
787
+ function withStateOptions(yargs36, defaultState = "preview") {
788
+ return yargs36.option("state", {
789
789
  type: "string",
790
790
  describe: `State to fetch.`,
791
791
  choices: ["preview", "published"],
@@ -852,11 +852,11 @@ function writeCanvasPackage(filename, packageContents) {
852
852
  var AssetPullModule = {
853
853
  command: "pull <directory>",
854
854
  describe: "Pulls all assets to local files in a directory",
855
- builder: (yargs34) => withConfiguration(
855
+ builder: (yargs36) => withConfiguration(
856
856
  withApiOptions(
857
857
  withProjectOptions(
858
858
  withDiffOptions(
859
- yargs34.positional("directory", {
859
+ yargs36.positional("directory", {
860
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.",
861
861
  type: "string"
862
862
  }).option("format", {
@@ -974,11 +974,11 @@ import { UncachedFileClient as UncachedFileClient2 } from "@uniformdev/files";
974
974
  var AssetPushModule = {
975
975
  command: "push <directory>",
976
976
  describe: "Pushes all assets from files in a directory to Uniform",
977
- builder: (yargs34) => withConfiguration(
977
+ builder: (yargs36) => withConfiguration(
978
978
  withApiOptions(
979
979
  withProjectOptions(
980
980
  withDiffOptions(
981
- yargs34.positional("directory", {
981
+ yargs36.positional("directory", {
982
982
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
983
983
  type: "string"
984
984
  }).option("what-if", {
@@ -1079,9 +1079,9 @@ var AssetRemoveModule = {
1079
1079
  command: "remove <id>",
1080
1080
  aliases: ["delete", "rm"],
1081
1081
  describe: "Delete an asset",
1082
- builder: (yargs34) => withConfiguration(
1082
+ builder: (yargs36) => withConfiguration(
1083
1083
  withApiOptions(
1084
- withProjectOptions(yargs34.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1084
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1085
1085
  )
1086
1086
  ),
1087
1087
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -1097,10 +1097,10 @@ var AssetUpdateModule = {
1097
1097
  command: "update <filename>",
1098
1098
  aliases: ["put"],
1099
1099
  describe: "Insert or update an asset",
1100
- builder: (yargs34) => withConfiguration(
1100
+ builder: (yargs36) => withConfiguration(
1101
1101
  withApiOptions(
1102
1102
  withProjectOptions(
1103
- yargs34.positional("filename", { demandOption: true, describe: "Asset file to put" })
1103
+ yargs36.positional("filename", { demandOption: true, describe: "Asset file to put" })
1104
1104
  )
1105
1105
  )
1106
1106
  ),
@@ -1116,7 +1116,7 @@ var AssetUpdateModule = {
1116
1116
  var AssetModule = {
1117
1117
  command: "asset <command>",
1118
1118
  describe: "Commands for Assets",
1119
- builder: (yargs34) => yargs34.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(),
1120
1120
  handler: () => {
1121
1121
  yargs.help();
1122
1122
  }
@@ -1130,11 +1130,11 @@ import { UncachedCategoryClient } from "@uniformdev/canvas";
1130
1130
  var CategoryGetModule = {
1131
1131
  command: "get <id>",
1132
1132
  describe: "Fetch a category",
1133
- builder: (yargs34) => withConfiguration(
1133
+ builder: (yargs36) => withConfiguration(
1134
1134
  withFormatOptions(
1135
1135
  withApiOptions(
1136
1136
  withProjectOptions(
1137
- yargs34.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1137
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1138
1138
  )
1139
1139
  )
1140
1140
  )
@@ -1159,7 +1159,7 @@ var CategoryListModule = {
1159
1159
  command: "list",
1160
1160
  describe: "List categories",
1161
1161
  aliases: ["ls"],
1162
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34.options({}))))),
1162
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36.options({}))))),
1163
1163
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
1164
1164
  const fetch3 = nodeFetchProxy(proxy);
1165
1165
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1209,11 +1209,11 @@ function createCategoriesEngineDataSource({
1209
1209
  var CategoryPullModule = {
1210
1210
  command: "pull <directory>",
1211
1211
  describe: "Pulls all categories to local files in a directory",
1212
- builder: (yargs34) => withConfiguration(
1212
+ builder: (yargs36) => withConfiguration(
1213
1213
  withApiOptions(
1214
1214
  withProjectOptions(
1215
1215
  withDiffOptions(
1216
- yargs34.positional("directory", {
1216
+ yargs36.positional("directory", {
1217
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.",
1218
1218
  type: "string"
1219
1219
  }).option("format", {
@@ -1291,11 +1291,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
1291
1291
  var CategoryPushModule = {
1292
1292
  command: "push <directory>",
1293
1293
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1294
- builder: (yargs34) => withConfiguration(
1294
+ builder: (yargs36) => withConfiguration(
1295
1295
  withApiOptions(
1296
1296
  withProjectOptions(
1297
1297
  withDiffOptions(
1298
- yargs34.positional("directory", {
1298
+ yargs36.positional("directory", {
1299
1299
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1300
1300
  type: "string"
1301
1301
  }).option("what-if", {
@@ -1362,10 +1362,10 @@ var CategoryRemoveModule = {
1362
1362
  command: "remove <id>",
1363
1363
  aliases: ["delete", "rm"],
1364
1364
  describe: "Delete a category",
1365
- builder: (yargs34) => withConfiguration(
1365
+ builder: (yargs36) => withConfiguration(
1366
1366
  withApiOptions(
1367
1367
  withProjectOptions(
1368
- yargs34.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1368
+ yargs36.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1369
1369
  )
1370
1370
  )
1371
1371
  ),
@@ -1382,10 +1382,10 @@ var CategoryUpdateModule = {
1382
1382
  command: "update <filename>",
1383
1383
  aliases: ["put"],
1384
1384
  describe: "Insert or update a category",
1385
- builder: (yargs34) => withConfiguration(
1385
+ builder: (yargs36) => withConfiguration(
1386
1386
  withApiOptions(
1387
1387
  withProjectOptions(
1388
- yargs34.positional("filename", { demandOption: true, describe: "Category file to put" })
1388
+ yargs36.positional("filename", { demandOption: true, describe: "Category file to put" })
1389
1389
  )
1390
1390
  )
1391
1391
  ),
@@ -1402,7 +1402,7 @@ var CategoryModule = {
1402
1402
  command: "category <command>",
1403
1403
  aliases: ["cat"],
1404
1404
  describe: "Commands for Canvas categories",
1405
- builder: (yargs34) => yargs34.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(),
1406
1406
  handler: () => {
1407
1407
  yargs2.help();
1408
1408
  }
@@ -1423,11 +1423,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
1423
1423
  var ComponentGetModule = {
1424
1424
  command: "get <id>",
1425
1425
  describe: "Fetch a component definition",
1426
- builder: (yargs34) => withConfiguration(
1426
+ builder: (yargs36) => withConfiguration(
1427
1427
  withFormatOptions(
1428
1428
  withApiOptions(
1429
1429
  withProjectOptions(
1430
- yargs34.positional("id", {
1430
+ yargs36.positional("id", {
1431
1431
  demandOption: true,
1432
1432
  describe: "Component definition public ID to fetch"
1433
1433
  })
@@ -1461,11 +1461,11 @@ var ComponentListModule = {
1461
1461
  command: "list",
1462
1462
  describe: "List component definitions",
1463
1463
  aliases: ["ls"],
1464
- builder: (yargs34) => withConfiguration(
1464
+ builder: (yargs36) => withConfiguration(
1465
1465
  withFormatOptions(
1466
1466
  withApiOptions(
1467
1467
  withProjectOptions(
1468
- yargs34.options({
1468
+ yargs36.options({
1469
1469
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1470
1470
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1471
1471
  })
@@ -1521,11 +1521,11 @@ function createComponentDefinitionEngineDataSource({
1521
1521
  var ComponentPullModule = {
1522
1522
  command: "pull <directory>",
1523
1523
  describe: "Pulls all component definitions to local files in a directory",
1524
- builder: (yargs34) => withConfiguration(
1524
+ builder: (yargs36) => withConfiguration(
1525
1525
  withApiOptions(
1526
1526
  withProjectOptions(
1527
1527
  withDiffOptions(
1528
- yargs34.positional("directory", {
1528
+ yargs36.positional("directory", {
1529
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.",
1530
1530
  type: "string"
1531
1531
  }).option("format", {
@@ -1604,11 +1604,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1604
1604
  var ComponentPushModule = {
1605
1605
  command: "push <directory>",
1606
1606
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1607
- builder: (yargs34) => withConfiguration(
1607
+ builder: (yargs36) => withConfiguration(
1608
1608
  withApiOptions(
1609
1609
  withProjectOptions(
1610
1610
  withDiffOptions(
1611
- yargs34.positional("directory", {
1611
+ yargs36.positional("directory", {
1612
1612
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1613
1613
  type: "string"
1614
1614
  }).option("what-if", {
@@ -1676,10 +1676,10 @@ var ComponentRemoveModule = {
1676
1676
  command: "remove <id>",
1677
1677
  aliases: ["delete", "rm"],
1678
1678
  describe: "Delete a component definition",
1679
- builder: (yargs34) => withConfiguration(
1679
+ builder: (yargs36) => withConfiguration(
1680
1680
  withApiOptions(
1681
1681
  withProjectOptions(
1682
- yargs34.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1682
+ yargs36.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1683
1683
  )
1684
1684
  )
1685
1685
  ),
@@ -1696,10 +1696,10 @@ var ComponentUpdateModule = {
1696
1696
  command: "update <filename>",
1697
1697
  aliases: ["put"],
1698
1698
  describe: "Insert or update a component definition",
1699
- builder: (yargs34) => withConfiguration(
1699
+ builder: (yargs36) => withConfiguration(
1700
1700
  withApiOptions(
1701
1701
  withProjectOptions(
1702
- yargs34.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1702
+ yargs36.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1703
1703
  )
1704
1704
  )
1705
1705
  ),
@@ -1716,7 +1716,7 @@ var ComponentModule = {
1716
1716
  command: "component <command>",
1717
1717
  aliases: ["def"],
1718
1718
  describe: "Commands for Canvas component definitions",
1719
- builder: (yargs34) => yargs34.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(),
1720
1720
  handler: () => {
1721
1721
  yargs3.help();
1722
1722
  }
@@ -1730,12 +1730,12 @@ import { UncachedCanvasClient as UncachedCanvasClient7 } from "@uniformdev/canva
1730
1730
  var CompositionGetModule = {
1731
1731
  command: "get <id>",
1732
1732
  describe: "Fetch a composition",
1733
- builder: (yargs34) => withFormatOptions(
1733
+ builder: (yargs36) => withFormatOptions(
1734
1734
  withConfiguration(
1735
1735
  withApiOptions(
1736
1736
  withProjectOptions(
1737
1737
  withStateOptions(
1738
- yargs34.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({
1739
1739
  resolvePatterns: {
1740
1740
  type: "boolean",
1741
1741
  default: false,
@@ -1760,6 +1760,11 @@ var CompositionGetModule = {
1760
1760
  type: "boolean",
1761
1761
  default: false,
1762
1762
  describe: "Include diagnostics information when resolving data"
1763
+ },
1764
+ resolutionDepth: {
1765
+ type: "number",
1766
+ default: 1,
1767
+ describe: "Controls how many levels deep content references should be resolved"
1763
1768
  }
1764
1769
  })
1765
1770
  )
@@ -1781,7 +1786,8 @@ var CompositionGetModule = {
1781
1786
  resolveOverrides,
1782
1787
  componentIDs,
1783
1788
  resolveData,
1784
- diagnostics
1789
+ diagnostics,
1790
+ resolutionDepth
1785
1791
  }) => {
1786
1792
  const fetch3 = nodeFetchProxy(proxy);
1787
1793
  const client = new UncachedCanvasClient7({ apiKey, edgeApiHost, apiHost, fetch: fetch3, projectId });
@@ -1793,7 +1799,8 @@ var CompositionGetModule = {
1793
1799
  skipOverridesResolution: !resolveOverrides,
1794
1800
  withComponentIDs: componentIDs,
1795
1801
  skipDataResolution: !resolveData,
1796
- diagnostics
1802
+ diagnostics: resolveData ? diagnostics : void 0,
1803
+ resolutionDepth: resolveData ? resolutionDepth : void 0
1797
1804
  })
1798
1805
  );
1799
1806
  emitWithFormat(res, format, filename);
@@ -1812,12 +1819,12 @@ var CompositionListModule = {
1812
1819
  command: "list",
1813
1820
  describe: "List compositions",
1814
1821
  aliases: ["ls"],
1815
- builder: (yargs34) => withFormatOptions(
1822
+ builder: (yargs36) => withFormatOptions(
1816
1823
  withConfiguration(
1817
1824
  withApiOptions(
1818
1825
  withProjectOptions(
1819
1826
  withStateOptions(
1820
- yargs34.options({
1827
+ yargs36.options({
1821
1828
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1822
1829
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1823
1830
  search: { describe: "Search query", type: "string", default: "" },
@@ -1864,6 +1871,7 @@ var CompositionListModule = {
1864
1871
  filename,
1865
1872
  onlyCompositions,
1866
1873
  onlyPatterns,
1874
+ patternType,
1867
1875
  project: projectId,
1868
1876
  state,
1869
1877
  resolvePatterns,
@@ -1877,6 +1885,7 @@ var CompositionListModule = {
1877
1885
  offset,
1878
1886
  search: search.length > 0 ? search : void 0,
1879
1887
  pattern: onlyCompositions ? false : onlyPatterns ? true : void 0,
1888
+ patternType,
1880
1889
  state: convertStateOption(state),
1881
1890
  skipPatternResolution: !resolvePatterns,
1882
1891
  withComponentIDs: componentIDs,
@@ -1890,12 +1899,12 @@ var CompositionListModule = {
1890
1899
  var ComponentPatternListModule = {
1891
1900
  ...CompositionListModule,
1892
1901
  describe: "List component patterns",
1893
- builder: (yargs34) => withFormatOptions(
1902
+ builder: (yargs36) => withFormatOptions(
1894
1903
  withConfiguration(
1895
1904
  withApiOptions(
1896
1905
  withProjectOptions(
1897
1906
  withStateOptions(
1898
- yargs34.options({
1907
+ yargs36.options({
1899
1908
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1900
1909
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1901
1910
  resolvePatterns: {
@@ -1915,6 +1924,11 @@ var ComponentPatternListModule = {
1915
1924
  type: "boolean",
1916
1925
  hidden: true
1917
1926
  },
1927
+ patternType: {
1928
+ default: "component",
1929
+ choices: ["all", "component", "composition"],
1930
+ hidden: true
1931
+ },
1918
1932
  componentIDs: {
1919
1933
  alias: ["componentIDs"],
1920
1934
  type: "boolean",
@@ -1942,6 +1956,7 @@ function createComponentInstanceEngineDataSource({
1942
1956
  state,
1943
1957
  onlyCompositions,
1944
1958
  onlyPatterns,
1959
+ patternType,
1945
1960
  ...clientOptions
1946
1961
  }) {
1947
1962
  const stateId = convertStateOption(state);
@@ -1955,7 +1970,8 @@ function createComponentInstanceEngineDataSource({
1955
1970
  state: stateId,
1956
1971
  skipPatternResolution: true,
1957
1972
  skipOverridesResolution: true,
1958
- withComponentIDs: true
1973
+ withComponentIDs: true,
1974
+ patternType
1959
1975
  })).compositions,
1960
1976
  { pageSize: 100 }
1961
1977
  );
@@ -1985,11 +2001,11 @@ function createComponentInstanceEngineDataSource({
1985
2001
  var CompositionPublishModule = {
1986
2002
  command: "publish [ids]",
1987
2003
  describe: "Publishes composition(s)",
1988
- builder: (yargs34) => withConfiguration(
2004
+ builder: (yargs36) => withConfiguration(
1989
2005
  withApiOptions(
1990
2006
  withProjectOptions(
1991
2007
  withDiffOptions(
1992
- yargs34.positional("ids", {
2008
+ yargs36.positional("ids", {
1993
2009
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
1994
2010
  type: "string"
1995
2011
  }).option("all", {
@@ -2025,7 +2041,8 @@ var CompositionPublishModule = {
2025
2041
  whatIf,
2026
2042
  project: projectId,
2027
2043
  onlyCompositions,
2028
- onlyPatterns
2044
+ onlyPatterns,
2045
+ patternType
2029
2046
  }) => {
2030
2047
  if (!all && !ids || all && ids) {
2031
2048
  console.error(`Specify --all or composition ID(s) to publish.`);
@@ -2039,14 +2056,16 @@ var CompositionPublishModule = {
2039
2056
  state: "preview",
2040
2057
  compositionIDs: compositionIDsArray,
2041
2058
  onlyCompositions,
2042
- onlyPatterns
2059
+ onlyPatterns,
2060
+ patternType
2043
2061
  });
2044
2062
  const target = createComponentInstanceEngineDataSource({
2045
2063
  client,
2046
2064
  state: "published",
2047
2065
  compositionIDs: compositionIDsArray,
2048
2066
  onlyCompositions,
2049
- onlyPatterns
2067
+ onlyPatterns,
2068
+ patternType
2050
2069
  });
2051
2070
  await syncEngine({
2052
2071
  source,
@@ -2063,11 +2082,11 @@ var CompositionPublishModule = {
2063
2082
  var ComponentPatternPublishModule = {
2064
2083
  ...CompositionPublishModule,
2065
2084
  describe: "Publishes component pattern(s)",
2066
- builder: (yargs34) => withConfiguration(
2085
+ builder: (yargs36) => withConfiguration(
2067
2086
  withApiOptions(
2068
2087
  withProjectOptions(
2069
2088
  withDiffOptions(
2070
- yargs34.positional("ids", {
2089
+ yargs36.positional("ids", {
2071
2090
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2072
2091
  type: "string"
2073
2092
  }).option("all", {
@@ -2094,6 +2113,10 @@ var ComponentPatternPublishModule = {
2094
2113
  default: true,
2095
2114
  type: "boolean",
2096
2115
  hidden: true
2116
+ }).option("patternType", {
2117
+ default: "component",
2118
+ choices: ["all", "component", "composition"],
2119
+ hidden: true
2097
2120
  })
2098
2121
  )
2099
2122
  )
@@ -2107,12 +2130,12 @@ import { UncachedFileClient as UncachedFileClient3 } from "@uniformdev/files";
2107
2130
  var CompositionPullModule = {
2108
2131
  command: "pull <directory>",
2109
2132
  describe: "Pulls all compositions to local files in a directory",
2110
- builder: (yargs34) => withConfiguration(
2133
+ builder: (yargs36) => withConfiguration(
2111
2134
  withApiOptions(
2112
2135
  withProjectOptions(
2113
2136
  withStateOptions(
2114
2137
  withDiffOptions(
2115
- yargs34.positional("directory", {
2138
+ yargs36.positional("directory", {
2116
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.",
2117
2140
  type: "string"
2118
2141
  }).option("format", {
@@ -2155,6 +2178,7 @@ var CompositionPullModule = {
2155
2178
  format,
2156
2179
  onlyCompositions,
2157
2180
  onlyPatterns,
2181
+ patternType = "all",
2158
2182
  mode,
2159
2183
  whatIf,
2160
2184
  state,
@@ -2165,7 +2189,13 @@ var CompositionPullModule = {
2165
2189
  const fetch3 = nodeFetchProxy(proxy);
2166
2190
  const client = new UncachedCanvasClient10({ apiKey, apiHost, fetch: fetch3, projectId });
2167
2191
  const fileClient = new UncachedFileClient3({ apiKey, apiHost, fetch: fetch3, projectId });
2168
- const source = createComponentInstanceEngineDataSource({ client, state, onlyCompositions, onlyPatterns });
2192
+ const source = createComponentInstanceEngineDataSource({
2193
+ client,
2194
+ state,
2195
+ onlyCompositions,
2196
+ onlyPatterns,
2197
+ patternType
2198
+ });
2169
2199
  const isPackage = isPathAPackageFile(directory);
2170
2200
  let target;
2171
2201
  if (isPackage) {
@@ -2215,12 +2245,12 @@ var CompositionPullModule = {
2215
2245
  var ComponentPatternPullModule = {
2216
2246
  ...CompositionPullModule,
2217
2247
  describe: "Pulls all component patterns to local files in a directory",
2218
- builder: (yargs34) => withConfiguration(
2248
+ builder: (yargs36) => withConfiguration(
2219
2249
  withApiOptions(
2220
2250
  withProjectOptions(
2221
2251
  withStateOptions(
2222
2252
  withDiffOptions(
2223
- yargs34.positional("directory", {
2253
+ yargs36.positional("directory", {
2224
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.",
2225
2255
  type: "string"
2226
2256
  }).option("format", {
@@ -2235,6 +2265,10 @@ var ComponentPatternPullModule = {
2235
2265
  default: true,
2236
2266
  type: "boolean",
2237
2267
  hidden: true
2268
+ }).option("patternType", {
2269
+ default: "component",
2270
+ choices: ["all", "component", "composition"],
2271
+ hidden: true
2238
2272
  }).option("what-if", {
2239
2273
  alias: ["w"],
2240
2274
  describe: "What-if mode reports what would be done but changes no files",
@@ -2260,12 +2294,12 @@ import { UncachedFileClient as UncachedFileClient4 } from "@uniformdev/files";
2260
2294
  var CompositionPushModule = {
2261
2295
  command: "push <directory>",
2262
2296
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2263
- builder: (yargs34) => withConfiguration(
2297
+ builder: (yargs36) => withConfiguration(
2264
2298
  withApiOptions(
2265
2299
  withProjectOptions(
2266
2300
  withStateOptions(
2267
2301
  withDiffOptions(
2268
- yargs34.positional("directory", {
2302
+ yargs36.positional("directory", {
2269
2303
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2270
2304
  type: "string"
2271
2305
  }).option("what-if", {
@@ -2305,6 +2339,7 @@ var CompositionPushModule = {
2305
2339
  project: projectId,
2306
2340
  onlyCompositions,
2307
2341
  onlyPatterns,
2342
+ patternType,
2308
2343
  diff: diffMode,
2309
2344
  allowEmptySource
2310
2345
  }) => {
@@ -2327,7 +2362,13 @@ var CompositionPushModule = {
2327
2362
  selectDisplayName: selectDisplayName3
2328
2363
  });
2329
2364
  }
2330
- const target = createComponentInstanceEngineDataSource({ client, state, onlyCompositions, onlyPatterns });
2365
+ const target = createComponentInstanceEngineDataSource({
2366
+ client,
2367
+ state,
2368
+ onlyCompositions,
2369
+ onlyPatterns,
2370
+ patternType
2371
+ });
2331
2372
  const fileClient = new UncachedFileClient4({ apiKey, apiHost, fetch: fetch3, projectId });
2332
2373
  await syncEngine({
2333
2374
  source,
@@ -2355,12 +2396,12 @@ var CompositionPushModule = {
2355
2396
  var ComponentPatternPushModule = {
2356
2397
  ...CompositionPushModule,
2357
2398
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
2358
- builder: (yargs34) => withConfiguration(
2399
+ builder: (yargs36) => withConfiguration(
2359
2400
  withApiOptions(
2360
2401
  withProjectOptions(
2361
2402
  withStateOptions(
2362
2403
  withDiffOptions(
2363
- yargs34.positional("directory", {
2404
+ yargs36.positional("directory", {
2364
2405
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
2365
2406
  type: "string"
2366
2407
  }).option("what-if", {
@@ -2380,6 +2421,10 @@ var ComponentPatternPushModule = {
2380
2421
  default: true,
2381
2422
  type: "boolean",
2382
2423
  hidden: true
2424
+ }).option("patternType", {
2425
+ default: "component",
2426
+ choices: ["all", "component", "composition"],
2427
+ hidden: true
2383
2428
  })
2384
2429
  )
2385
2430
  )
@@ -2394,10 +2439,10 @@ var CompositionRemoveModule = {
2394
2439
  command: "remove <id>",
2395
2440
  aliases: ["delete", "rm"],
2396
2441
  describe: "Delete a composition",
2397
- builder: (yargs34) => withConfiguration(
2442
+ builder: (yargs36) => withConfiguration(
2398
2443
  withApiOptions(
2399
2444
  withProjectOptions(
2400
- yargs34.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2445
+ yargs36.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2401
2446
  )
2402
2447
  )
2403
2448
  ),
@@ -2415,15 +2460,18 @@ var ComponentPatternRemoveModule = {
2415
2460
  };
2416
2461
 
2417
2462
  // src/commands/canvas/commands/composition/unpublish.ts
2418
- import { CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2, UncachedCanvasClient as UncachedCanvasClient13 } from "@uniformdev/canvas";
2463
+ import {
2464
+ CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2,
2465
+ UncachedCanvasClient as UncachedCanvasClient13
2466
+ } from "@uniformdev/canvas";
2419
2467
  import { diffJson as diffJson2 } from "diff";
2420
2468
  var CompositionUnpublishModule = {
2421
2469
  command: "unpublish [ids]",
2422
2470
  describe: "Unpublish a composition(s)",
2423
- builder: (yargs34) => withConfiguration(
2471
+ builder: (yargs36) => withConfiguration(
2424
2472
  withApiOptions(
2425
2473
  withProjectOptions(
2426
- yargs34.positional("ids", {
2474
+ yargs36.positional("ids", {
2427
2475
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2428
2476
  type: "string"
2429
2477
  }).option("all", {
@@ -2457,6 +2505,7 @@ var CompositionUnpublishModule = {
2457
2505
  all,
2458
2506
  onlyCompositions,
2459
2507
  onlyPatterns,
2508
+ patternType,
2460
2509
  project: projectId,
2461
2510
  whatIf
2462
2511
  }) => {
@@ -2473,14 +2522,16 @@ var CompositionUnpublishModule = {
2473
2522
  state: "published",
2474
2523
  compositionIDs: compositionIDsArray,
2475
2524
  onlyCompositions,
2476
- onlyPatterns
2525
+ onlyPatterns,
2526
+ patternType
2477
2527
  });
2478
2528
  const target = createComponentInstanceEngineDataSource({
2479
2529
  client,
2480
2530
  state: "preview",
2481
2531
  compositionIDs: compositionIDsArray,
2482
2532
  onlyCompositions,
2483
- onlyPatterns
2533
+ onlyPatterns,
2534
+ patternType
2484
2535
  });
2485
2536
  const actions = [];
2486
2537
  const log = createPublishStatusSyncEngineConsoleLogger({ status: "unpublish" });
@@ -2515,15 +2566,15 @@ var CompositionUnpublishModule = {
2515
2566
  var ComponentPatternUnpublishModule = {
2516
2567
  command: "unpublish [ids]",
2517
2568
  describe: "Unpublish a component pattern(s)",
2518
- builder: (yargs34) => withConfiguration(
2569
+ builder: (yargs36) => withConfiguration(
2519
2570
  withApiOptions(
2520
2571
  withProjectOptions(
2521
- yargs34.positional("ids", {
2572
+ yargs36.positional("ids", {
2522
2573
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2523
2574
  type: "string"
2524
2575
  }).option("all", {
2525
2576
  alias: ["a"],
2526
- describe: "Un-pPublishes all compositions. Use compositionId to publish one instead.",
2577
+ describe: "Un-publishes all compositions. Use compositionId to publish one instead.",
2527
2578
  default: false,
2528
2579
  type: "boolean"
2529
2580
  }).option("what-if", {
@@ -2532,14 +2583,18 @@ var ComponentPatternUnpublishModule = {
2532
2583
  default: false,
2533
2584
  type: "boolean"
2534
2585
  }).option("onlyCompositions", {
2535
- describe: "Only publishing compositions and not component patterns",
2586
+ describe: "Only un-publishing compositions and not component patterns",
2536
2587
  default: false,
2537
2588
  type: "boolean"
2538
2589
  }).option("onlyPatterns", {
2539
- describe: "Only pulling component patterns and not compositions",
2590
+ describe: "Only un-publishing component patterns and not compositions",
2540
2591
  default: true,
2541
2592
  type: "boolean",
2542
2593
  hidden: true
2594
+ }).option("patternType", {
2595
+ default: "component",
2596
+ choices: ["all", "component", "composition"],
2597
+ hidden: true
2543
2598
  })
2544
2599
  )
2545
2600
  )
@@ -2553,11 +2608,11 @@ var CompositionUpdateModule = {
2553
2608
  command: "update <filename>",
2554
2609
  aliases: ["put"],
2555
2610
  describe: "Insert or update a composition",
2556
- builder: (yargs34) => withConfiguration(
2611
+ builder: (yargs36) => withConfiguration(
2557
2612
  withApiOptions(
2558
2613
  withProjectOptions(
2559
2614
  withStateOptions(
2560
- yargs34.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2615
+ yargs36.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2561
2616
  )
2562
2617
  )
2563
2618
  )
@@ -2579,9 +2634,8 @@ var ComponentPatternUpdateModule = {
2579
2634
  // src/commands/canvas/commands/componentPattern.ts
2580
2635
  var ComponentPatternModule = {
2581
2636
  command: "component-pattern <command>",
2582
- aliases: ["pattern"],
2583
2637
  describe: "Commands for Canvas component patterns",
2584
- builder: (yargs34) => yargs34.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(),
2585
2639
  handler: () => {
2586
2640
  yargs4.help();
2587
2641
  }
@@ -2593,26 +2647,277 @@ var CompositionModule = {
2593
2647
  command: "composition <command>",
2594
2648
  describe: "Commands for Canvas compositions",
2595
2649
  aliases: ["comp"],
2596
- builder: (yargs34) => yargs34.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(),
2597
2651
  handler: () => {
2598
2652
  yargs5.help();
2599
2653
  }
2600
2654
  };
2601
2655
 
2602
- // src/commands/canvas/commands/contentType.ts
2656
+ // src/commands/canvas/commands/compositionPattern.ts
2603
2657
  import yargs6 from "yargs";
2604
2658
 
2659
+ // src/commands/canvas/commands/compositionPattern/get.ts
2660
+ var CompositionPatternGetModule = {
2661
+ ...CompositionGetModule,
2662
+ describe: "Fetch a composition pattern"
2663
+ };
2664
+
2665
+ // src/commands/canvas/commands/compositionPattern/list.ts
2666
+ var CompositionPatternListModule = {
2667
+ ...CompositionListModule,
2668
+ describe: "List composition patterns",
2669
+ builder: (yargs36) => withFormatOptions(
2670
+ withConfiguration(
2671
+ withApiOptions(
2672
+ withProjectOptions(
2673
+ withStateOptions(
2674
+ yargs36.options({
2675
+ offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2676
+ limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2677
+ resolvePatterns: {
2678
+ type: "boolean",
2679
+ default: false,
2680
+ describe: "Resolve composition pattern references in the composition"
2681
+ },
2682
+ resolveOverrides: {
2683
+ type: "boolean",
2684
+ default: false,
2685
+ describe: "Resolves composition pattern overrides in the composition and removes override definition data"
2686
+ },
2687
+ onlyPatterns: {
2688
+ describe: "Only pulling composition patterns and not compositions",
2689
+ // This default differentiate this list command from composition list command
2690
+ default: true,
2691
+ type: "boolean",
2692
+ hidden: true
2693
+ },
2694
+ patternType: {
2695
+ default: "composition",
2696
+ choices: ["all", "component", "composition"],
2697
+ hidden: true
2698
+ },
2699
+ componentIDs: {
2700
+ alias: ["componentIDs"],
2701
+ type: "boolean",
2702
+ default: false,
2703
+ describe: "Include individual composition pattern UIDs"
2704
+ }
2705
+ })
2706
+ )
2707
+ )
2708
+ )
2709
+ )
2710
+ )
2711
+ };
2712
+
2713
+ // src/commands/canvas/commands/compositionPattern/publish.ts
2714
+ var CompositionPatternPublishModule = {
2715
+ ...CompositionPublishModule,
2716
+ describe: "Publishes composition pattern(s)",
2717
+ builder: (yargs36) => withConfiguration(
2718
+ withApiOptions(
2719
+ withProjectOptions(
2720
+ withDiffOptions(
2721
+ yargs36.positional("ids", {
2722
+ describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2723
+ type: "string"
2724
+ }).option("all", {
2725
+ alias: ["a"],
2726
+ describe: "Publishes all composition patterns. Use compositionId to publish one instead.",
2727
+ default: false,
2728
+ type: "boolean"
2729
+ }).option("what-if", {
2730
+ alias: ["w"],
2731
+ describe: "What-if mode reports what would be done but does not perform any un-publishing",
2732
+ default: false,
2733
+ type: "boolean"
2734
+ }).option("publishingState", {
2735
+ describe: 'Publishing state to update to. Can be "published" or "preview".',
2736
+ default: "published",
2737
+ type: "string",
2738
+ hidden: true
2739
+ }).option("onlyCompositions", {
2740
+ describe: "Only publishing compositions and not composition patterns",
2741
+ default: false,
2742
+ type: "boolean",
2743
+ hidden: true
2744
+ }).option("patternType", {
2745
+ default: "composition",
2746
+ choices: ["all", "component", "composition"],
2747
+ hidden: true
2748
+ }).option("onlyPatterns", {
2749
+ describe: "Only pulling composition patterns and not compositions",
2750
+ default: true,
2751
+ type: "boolean",
2752
+ hidden: true
2753
+ })
2754
+ )
2755
+ )
2756
+ )
2757
+ )
2758
+ };
2759
+
2760
+ // src/commands/canvas/commands/compositionPattern/pull.ts
2761
+ var CompositionPatternPullModule = {
2762
+ ...CompositionPullModule,
2763
+ describe: "Pulls all composition patterns to local files in a directory",
2764
+ builder: (yargs36) => withConfiguration(
2765
+ withApiOptions(
2766
+ withProjectOptions(
2767
+ withStateOptions(
2768
+ withDiffOptions(
2769
+ yargs36.positional("directory", {
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.",
2771
+ type: "string"
2772
+ }).option("format", {
2773
+ alias: ["f"],
2774
+ describe: "Output format",
2775
+ default: "yaml",
2776
+ choices: ["yaml", "json"],
2777
+ type: "string"
2778
+ }).option("onlyPatterns", {
2779
+ describe: "Only pulling composition patterns and not compositions",
2780
+ // This default differentiates this list command from composition list command
2781
+ default: true,
2782
+ type: "boolean",
2783
+ hidden: true
2784
+ }).option("patternType", {
2785
+ default: "composition",
2786
+ choices: ["all", "component", "composition"],
2787
+ hidden: true
2788
+ }).option("what-if", {
2789
+ alias: ["w"],
2790
+ describe: "What-if mode reports what would be done but changes no files",
2791
+ default: false,
2792
+ type: "boolean"
2793
+ }).option("mode", {
2794
+ alias: ["m"],
2795
+ 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',
2796
+ choices: ["create", "createOrUpdate", "mirror"],
2797
+ default: "mirror",
2798
+ type: "string"
2799
+ })
2800
+ )
2801
+ )
2802
+ )
2803
+ )
2804
+ )
2805
+ };
2806
+
2807
+ // src/commands/canvas/commands/compositionPattern/push.ts
2808
+ var CompositionPatternPushModule = {
2809
+ ...CompositionPushModule,
2810
+ describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
2811
+ builder: (yargs36) => withConfiguration(
2812
+ withApiOptions(
2813
+ withProjectOptions(
2814
+ withStateOptions(
2815
+ withDiffOptions(
2816
+ yargs36.positional("directory", {
2817
+ describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
2818
+ type: "string"
2819
+ }).option("what-if", {
2820
+ alias: ["w"],
2821
+ describe: "What-if mode reports what would be done but changes nothing",
2822
+ default: false,
2823
+ type: "boolean"
2824
+ }).option("mode", {
2825
+ alias: ["m"],
2826
+ 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',
2827
+ choices: ["create", "createOrUpdate", "mirror"],
2828
+ default: "mirror",
2829
+ type: "string"
2830
+ }).option("onlyPatterns", {
2831
+ describe: "Only pulling composition patterns and not compositions",
2832
+ // This default differentiate this list command from composition list command
2833
+ default: true,
2834
+ type: "boolean",
2835
+ hidden: true
2836
+ }).option("patternType", {
2837
+ default: "composition",
2838
+ choices: ["all", "component", "composition"],
2839
+ hidden: true
2840
+ })
2841
+ )
2842
+ )
2843
+ )
2844
+ )
2845
+ )
2846
+ };
2847
+
2848
+ // src/commands/canvas/commands/compositionPattern/remove.ts
2849
+ var CompositionPatternRemoveModule = {
2850
+ ...CompositionRemoveModule,
2851
+ describe: "Delete a composition pattern"
2852
+ };
2853
+
2854
+ // src/commands/canvas/commands/compositionPattern/unpublish.ts
2855
+ var CompositionPatternUnpublishModule = {
2856
+ command: "unpublish [ids]",
2857
+ describe: "Unpublish a composition pattern(s)",
2858
+ builder: (yargs36) => withConfiguration(
2859
+ withApiOptions(
2860
+ withProjectOptions(
2861
+ yargs36.positional("ids", {
2862
+ describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2863
+ type: "string"
2864
+ }).option("all", {
2865
+ alias: ["a"],
2866
+ describe: "Un-publishes all compositions. Use compositionId to publish one instead.",
2867
+ default: false,
2868
+ type: "boolean"
2869
+ }).option("what-if", {
2870
+ alias: ["w"],
2871
+ describe: "What-if mode reports what would be done but does not perform any publishing",
2872
+ default: false,
2873
+ type: "boolean"
2874
+ }).option("onlyCompositions", {
2875
+ describe: "Only un-publishing compositions and not composition patterns",
2876
+ default: false,
2877
+ type: "boolean",
2878
+ hidden: true
2879
+ }).option("onlyPatterns", {
2880
+ describe: "Only un-publishing composition patterns and not compositions",
2881
+ default: true,
2882
+ type: "boolean",
2883
+ hidden: true
2884
+ })
2885
+ )
2886
+ )
2887
+ ),
2888
+ handler: CompositionUnpublishModule.handler
2889
+ };
2890
+
2891
+ // src/commands/canvas/commands/compositionPattern/update.ts
2892
+ var CompositionPatternUpdateModule = {
2893
+ ...CompositionUpdateModule,
2894
+ describe: "Insert or update a composition pattern"
2895
+ };
2896
+
2897
+ // src/commands/canvas/commands/compositionPattern.ts
2898
+ var CompositionPatternModule = {
2899
+ command: "composition-pattern <command>",
2900
+ describe: "Commands for Canvas composition patterns",
2901
+ builder: (yargs36) => yargs36.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
2902
+ handler: () => {
2903
+ yargs6.help();
2904
+ }
2905
+ };
2906
+
2907
+ // src/commands/canvas/commands/contentType.ts
2908
+ import yargs7 from "yargs";
2909
+
2605
2910
  // src/commands/canvas/commands/contentType/get.ts
2606
2911
  import { ContentClient } from "@uniformdev/canvas";
2607
2912
  var ContentTypeGetModule = {
2608
2913
  command: "get <id>",
2609
2914
  describe: "Get a content type",
2610
- builder: (yargs34) => withConfiguration(
2915
+ builder: (yargs36) => withConfiguration(
2611
2916
  withFormatOptions(
2612
2917
  withApiOptions(
2613
2918
  withProjectOptions(
2614
2919
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2615
- yargs34.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2920
+ yargs36.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2616
2921
  )
2617
2922
  )
2618
2923
  )
@@ -2634,7 +2939,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2634
2939
  var ContentTypeListModule = {
2635
2940
  command: "list",
2636
2941
  describe: "List content types",
2637
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
2942
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
2638
2943
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2639
2944
  const fetch3 = nodeFetchProxy(proxy);
2640
2945
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2682,11 +2987,11 @@ function createContentTypeEngineDataSource({
2682
2987
  var ContentTypePullModule = {
2683
2988
  command: "pull <directory>",
2684
2989
  describe: "Pulls all content types to local files in a directory",
2685
- builder: (yargs34) => withConfiguration(
2990
+ builder: (yargs36) => withConfiguration(
2686
2991
  withApiOptions(
2687
2992
  withProjectOptions(
2688
2993
  withDiffOptions(
2689
- yargs34.positional("directory", {
2994
+ yargs36.positional("directory", {
2690
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.",
2691
2996
  type: "string"
2692
2997
  }).option("format", {
@@ -2770,11 +3075,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2770
3075
  var ContentTypePushModule = {
2771
3076
  command: "push <directory>",
2772
3077
  describe: "Pushes all content types from files in a directory to Uniform",
2773
- builder: (yargs34) => withConfiguration(
3078
+ builder: (yargs36) => withConfiguration(
2774
3079
  withApiOptions(
2775
3080
  withProjectOptions(
2776
3081
  withDiffOptions(
2777
- yargs34.positional("directory", {
3082
+ yargs36.positional("directory", {
2778
3083
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
2779
3084
  type: "string"
2780
3085
  }).option("what-if", {
@@ -2847,10 +3152,10 @@ var ContentTypeRemoveModule = {
2847
3152
  command: "remove <id>",
2848
3153
  aliases: ["delete", "rm"],
2849
3154
  describe: "Delete a content type",
2850
- builder: (yargs34) => withConfiguration(
3155
+ builder: (yargs36) => withConfiguration(
2851
3156
  withApiOptions(
2852
3157
  withProjectOptions(
2853
- yargs34.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3158
+ yargs36.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2854
3159
  )
2855
3160
  )
2856
3161
  ),
@@ -2867,10 +3172,10 @@ var ContentTypeUpdateModule = {
2867
3172
  command: "update <filename>",
2868
3173
  aliases: ["put"],
2869
3174
  describe: "Insert or update a content type",
2870
- builder: (yargs34) => withConfiguration(
3175
+ builder: (yargs36) => withConfiguration(
2871
3176
  withApiOptions(
2872
3177
  withProjectOptions(
2873
- yargs34.positional("filename", { demandOption: true, describe: "Content type file to put" })
3178
+ yargs36.positional("filename", { demandOption: true, describe: "Content type file to put" })
2874
3179
  )
2875
3180
  )
2876
3181
  ),
@@ -2887,25 +3192,25 @@ var ContentTypeModule = {
2887
3192
  command: "contenttype <command>",
2888
3193
  aliases: ["ct"],
2889
3194
  describe: "Commands for Content Types",
2890
- builder: (yargs34) => yargs34.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(),
2891
3196
  handler: () => {
2892
- yargs6.help();
3197
+ yargs7.help();
2893
3198
  }
2894
3199
  };
2895
3200
 
2896
3201
  // src/commands/canvas/commands/dataSource.ts
2897
- import yargs7 from "yargs";
3202
+ import yargs8 from "yargs";
2898
3203
 
2899
3204
  // src/commands/canvas/commands/dataSource/get.ts
2900
3205
  import { DataSourceClient } from "@uniformdev/canvas";
2901
3206
  var DataSourceGetModule = {
2902
3207
  command: "get <id>",
2903
3208
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
2904
- builder: (yargs34) => withConfiguration(
3209
+ builder: (yargs36) => withConfiguration(
2905
3210
  withApiOptions(
2906
3211
  withProjectOptions(
2907
3212
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2908
- yargs34.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3213
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
2909
3214
  )
2910
3215
  )
2911
3216
  ),
@@ -2923,10 +3228,10 @@ var DataSourceRemoveModule = {
2923
3228
  command: "remove <id>",
2924
3229
  aliases: ["delete", "rm"],
2925
3230
  describe: "Delete a data source",
2926
- builder: (yargs34) => withConfiguration(
3231
+ builder: (yargs36) => withConfiguration(
2927
3232
  withApiOptions(
2928
3233
  withProjectOptions(
2929
- yargs34.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3234
+ yargs36.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
2930
3235
  )
2931
3236
  )
2932
3237
  ),
@@ -2943,10 +3248,10 @@ var DataSourceUpdateModule = {
2943
3248
  command: "update <dataSource>",
2944
3249
  aliases: ["put"],
2945
3250
  describe: "Insert or update a data source",
2946
- builder: (yargs34) => withConfiguration(
3251
+ builder: (yargs36) => withConfiguration(
2947
3252
  withApiOptions(
2948
3253
  withProjectOptions(
2949
- yargs34.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", {
2950
3255
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
2951
3256
  type: "string",
2952
3257
  demandOption: true
@@ -2966,14 +3271,14 @@ var DataSourceModule = {
2966
3271
  command: "datasource <command>",
2967
3272
  aliases: ["ds"],
2968
3273
  describe: "Commands for Data Source definitions",
2969
- builder: (yargs34) => yargs34.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3274
+ builder: (yargs36) => yargs36.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
2970
3275
  handler: () => {
2971
- yargs7.help();
3276
+ yargs8.help();
2972
3277
  }
2973
3278
  };
2974
3279
 
2975
3280
  // src/commands/canvas/commands/dataType.ts
2976
- import yargs8 from "yargs";
3281
+ import yargs9 from "yargs";
2977
3282
 
2978
3283
  // src/commands/canvas/commands/dataType/get.ts
2979
3284
  import { DataTypeClient } from "@uniformdev/canvas";
@@ -2981,12 +3286,12 @@ var DataTypeGetModule = {
2981
3286
  command: "get <id>",
2982
3287
  describe: "Get a data type",
2983
3288
  aliases: ["ls"],
2984
- builder: (yargs34) => withConfiguration(
3289
+ builder: (yargs36) => withConfiguration(
2985
3290
  withFormatOptions(
2986
3291
  withApiOptions(
2987
3292
  withProjectOptions(
2988
3293
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2989
- yargs34.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3294
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2990
3295
  )
2991
3296
  )
2992
3297
  )
@@ -3009,7 +3314,7 @@ var DataTypeListModule = {
3009
3314
  command: "list",
3010
3315
  describe: "List data types",
3011
3316
  aliases: ["ls"],
3012
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
3317
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
3013
3318
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3014
3319
  const fetch3 = nodeFetchProxy(proxy);
3015
3320
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3059,11 +3364,11 @@ function createDataTypeEngineDataSource({
3059
3364
  var DataTypePullModule = {
3060
3365
  command: "pull <directory>",
3061
3366
  describe: "Pulls all data types to local files in a directory",
3062
- builder: (yargs34) => withConfiguration(
3367
+ builder: (yargs36) => withConfiguration(
3063
3368
  withApiOptions(
3064
3369
  withProjectOptions(
3065
3370
  withDiffOptions(
3066
- yargs34.positional("directory", {
3371
+ yargs36.positional("directory", {
3067
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.",
3068
3373
  type: "string"
3069
3374
  }).option("format", {
@@ -3147,11 +3452,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
3147
3452
  var DataTypePushModule = {
3148
3453
  command: "push <directory>",
3149
3454
  describe: "Pushes all data types from files in a directory to Uniform",
3150
- builder: (yargs34) => withConfiguration(
3455
+ builder: (yargs36) => withConfiguration(
3151
3456
  withApiOptions(
3152
3457
  withProjectOptions(
3153
3458
  withDiffOptions(
3154
- yargs34.positional("directory", {
3459
+ yargs36.positional("directory", {
3155
3460
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
3156
3461
  type: "string"
3157
3462
  }).option("what-if", {
@@ -3224,10 +3529,10 @@ var DataTypeRemoveModule = {
3224
3529
  command: "remove <id>",
3225
3530
  aliases: ["delete", "rm"],
3226
3531
  describe: "Delete a data type",
3227
- builder: (yargs34) => withConfiguration(
3532
+ builder: (yargs36) => withConfiguration(
3228
3533
  withApiOptions(
3229
3534
  withProjectOptions(
3230
- yargs34.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3535
+ yargs36.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3231
3536
  )
3232
3537
  )
3233
3538
  ),
@@ -3244,10 +3549,10 @@ var DataTypeUpdateModule = {
3244
3549
  command: "update <filename>",
3245
3550
  aliases: ["put"],
3246
3551
  describe: "Insert or update a data type",
3247
- builder: (yargs34) => withConfiguration(
3552
+ builder: (yargs36) => withConfiguration(
3248
3553
  withApiOptions(
3249
3554
  withProjectOptions(
3250
- yargs34.positional("filename", { demandOption: true, describe: "Data type file to put" })
3555
+ yargs36.positional("filename", { demandOption: true, describe: "Data type file to put" })
3251
3556
  )
3252
3557
  )
3253
3558
  ),
@@ -3264,27 +3569,43 @@ var DataTypeModule = {
3264
3569
  command: "datatype <command>",
3265
3570
  aliases: ["dt"],
3266
3571
  describe: "Commands for Data Type definitions",
3267
- builder: (yargs34) => yargs34.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(),
3268
3573
  handler: () => {
3269
- yargs8.help();
3574
+ yargs9.help();
3270
3575
  }
3271
3576
  };
3272
3577
 
3273
3578
  // src/commands/canvas/commands/entry.ts
3274
- import yargs9 from "yargs";
3579
+ import yargs10 from "yargs";
3275
3580
 
3276
3581
  // src/commands/canvas/commands/entry/get.ts
3277
3582
  import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
3278
3583
  var EntryGetModule = {
3279
3584
  command: "get <id>",
3280
3585
  describe: "Get an entry",
3281
- builder: (yargs34) => withConfiguration(
3586
+ builder: (yargs36) => withConfiguration(
3282
3587
  withFormatOptions(
3283
3588
  withApiOptions(
3284
3589
  withProjectOptions(
3285
3590
  withStateOptions(
3286
3591
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3287
- yargs34.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: 1,
3606
+ describe: "Controls how many levels deep content references should be resolved"
3607
+ }
3608
+ }),
3288
3609
  // for backwards compatibility, we default to the "published" state, unlike compositions
3289
3610
  "published"
3290
3611
  )
@@ -3301,7 +3622,10 @@ var EntryGetModule = {
3301
3622
  format,
3302
3623
  filename,
3303
3624
  project: projectId,
3304
- state
3625
+ state,
3626
+ resolveData,
3627
+ diagnostics,
3628
+ resolutionDepth
3305
3629
  }) => {
3306
3630
  const fetch3 = nodeFetchProxy(proxy);
3307
3631
  const client = new ContentClient7({ apiKey, apiHost, edgeApiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3312,7 +3636,9 @@ var EntryGetModule = {
3312
3636
  state: convertStateOption(state),
3313
3637
  skipOverridesResolution: true,
3314
3638
  skipPatternResolution: true,
3315
- skipDataResolution: true
3639
+ skipDataResolution: !resolveData,
3640
+ diagnostics: resolveData ? diagnostics : void 0,
3641
+ resolutionDepth: resolveData ? resolutionDepth : void 0
3316
3642
  });
3317
3643
  if (res.entries.length !== 1) {
3318
3644
  throw new Error(`Entry with ID ${id} not found`);
@@ -3327,12 +3653,12 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
3327
3653
  var EntryListModule = {
3328
3654
  command: "list",
3329
3655
  describe: "List entries",
3330
- builder: (yargs34) => withConfiguration(
3656
+ builder: (yargs36) => withConfiguration(
3331
3657
  withFormatOptions(
3332
3658
  withApiOptions(
3333
3659
  withProjectOptions(
3334
3660
  withStateOptions(
3335
- yargs34.options({
3661
+ yargs36.options({
3336
3662
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
3337
3663
  limit: { describe: "Number of rows to fetch", type: "number", default: LEGACY_DEFAULT_LIMIT },
3338
3664
  search: { describe: "Search query", type: "string", default: "" }
@@ -3433,11 +3759,11 @@ function createEntryEngineDataSource({
3433
3759
  var EntryPublishModule = {
3434
3760
  command: "publish [ids]",
3435
3761
  describe: "Publishes entry(ies)",
3436
- builder: (yargs34) => withConfiguration(
3762
+ builder: (yargs36) => withConfiguration(
3437
3763
  withApiOptions(
3438
3764
  withProjectOptions(
3439
3765
  withDiffOptions(
3440
- yargs34.positional("ids", {
3766
+ yargs36.positional("ids", {
3441
3767
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3442
3768
  type: "string"
3443
3769
  }).option("all", {
@@ -3492,12 +3818,12 @@ import { UncachedFileClient as UncachedFileClient5 } from "@uniformdev/files";
3492
3818
  var EntryPullModule = {
3493
3819
  command: "pull <directory>",
3494
3820
  describe: "Pulls all entries to local files in a directory",
3495
- builder: (yargs34) => withConfiguration(
3821
+ builder: (yargs36) => withConfiguration(
3496
3822
  withApiOptions(
3497
3823
  withProjectOptions(
3498
3824
  withStateOptions(
3499
3825
  withDiffOptions(
3500
- yargs34.positional("directory", {
3826
+ yargs36.positional("directory", {
3501
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.",
3502
3828
  type: "string"
3503
3829
  }).option("format", {
@@ -3597,12 +3923,12 @@ import { UncachedFileClient as UncachedFileClient6 } from "@uniformdev/files";
3597
3923
  var EntryPushModule = {
3598
3924
  command: "push <directory>",
3599
3925
  describe: "Pushes all entries from files in a directory to Uniform",
3600
- builder: (yargs34) => withConfiguration(
3926
+ builder: (yargs36) => withConfiguration(
3601
3927
  withApiOptions(
3602
3928
  withProjectOptions(
3603
3929
  withStateOptions(
3604
3930
  withDiffOptions(
3605
- yargs34.positional("directory", {
3931
+ yargs36.positional("directory", {
3606
3932
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
3607
3933
  type: "string"
3608
3934
  }).option("what-if", {
@@ -3689,10 +4015,10 @@ var EntryRemoveModule = {
3689
4015
  command: "remove <id>",
3690
4016
  aliases: ["delete", "rm"],
3691
4017
  describe: "Delete an entry",
3692
- builder: (yargs34) => withConfiguration(
4018
+ builder: (yargs36) => withConfiguration(
3693
4019
  withApiOptions(
3694
4020
  withProjectOptions(
3695
- yargs34.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
4021
+ yargs36.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3696
4022
  )
3697
4023
  )
3698
4024
  ),
@@ -3709,10 +4035,10 @@ import { diffJson as diffJson3 } from "diff";
3709
4035
  var EntryUnpublishModule = {
3710
4036
  command: "unpublish [ids]",
3711
4037
  describe: "Unpublish an entry(ies)",
3712
- builder: (yargs34) => withConfiguration(
4038
+ builder: (yargs36) => withConfiguration(
3713
4039
  withApiOptions(
3714
4040
  withProjectOptions(
3715
- yargs34.positional("ids", {
4041
+ yargs36.positional("ids", {
3716
4042
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3717
4043
  type: "string"
3718
4044
  }).option("all", {
@@ -3785,11 +4111,11 @@ var EntryUpdateModule = {
3785
4111
  command: "update <filename>",
3786
4112
  aliases: ["put"],
3787
4113
  describe: "Insert or update an entry",
3788
- builder: (yargs34) => withConfiguration(
4114
+ builder: (yargs36) => withConfiguration(
3789
4115
  withApiOptions(
3790
4116
  withProjectOptions(
3791
4117
  withStateOptions(
3792
- yargs34.positional("filename", { demandOption: true, describe: "Entry file to put" })
4118
+ yargs36.positional("filename", { demandOption: true, describe: "Entry file to put" })
3793
4119
  )
3794
4120
  )
3795
4121
  )
@@ -3806,27 +4132,27 @@ var EntryUpdateModule = {
3806
4132
  var EntryModule = {
3807
4133
  command: "entry <command>",
3808
4134
  describe: "Commands for Entries",
3809
- builder: (yargs34) => yargs34.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(),
3810
4136
  handler: () => {
3811
- yargs9.help();
4137
+ yargs10.help();
3812
4138
  }
3813
4139
  };
3814
4140
 
3815
4141
  // src/commands/canvas/commands/entryPattern.ts
3816
- import yargs10 from "yargs";
4142
+ import yargs11 from "yargs";
3817
4143
 
3818
4144
  // src/commands/canvas/commands/entryPattern/get.ts
3819
4145
  import { ContentClient as ContentClient16 } from "@uniformdev/canvas";
3820
4146
  var EntryPatternGetModule = {
3821
4147
  command: "get <id>",
3822
4148
  describe: "Get an entry pattern",
3823
- builder: (yargs34) => withConfiguration(
4149
+ builder: (yargs36) => withConfiguration(
3824
4150
  withFormatOptions(
3825
4151
  withApiOptions(
3826
4152
  withProjectOptions(
3827
4153
  withStateOptions(
3828
4154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3829
- yargs34.positional("id", {
4155
+ yargs36.positional("id", {
3830
4156
  demandOption: true,
3831
4157
  describe: "Entry pattern public ID to fetch"
3832
4158
  }),
@@ -3861,8 +4187,8 @@ import { ContentClient as ContentClient17 } from "@uniformdev/canvas";
3861
4187
  var EntryPatternListModule = {
3862
4188
  command: "list",
3863
4189
  describe: "List entry patterns",
3864
- builder: (yargs34) => withConfiguration(
3865
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs34, "published"))))
4190
+ builder: (yargs36) => withConfiguration(
4191
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs36, "published"))))
3866
4192
  ),
3867
4193
  handler: async ({ apiHost, edgeApiHost, apiKey, proxy, format, filename, project: projectId, state }) => {
3868
4194
  const fetch3 = nodeFetchProxy(proxy);
@@ -3885,11 +4211,11 @@ import { ContentClient as ContentClient18 } from "@uniformdev/canvas";
3885
4211
  var EntryPatternPublishModule = {
3886
4212
  command: "publish [ids]",
3887
4213
  describe: "Publishes entry pattern(s)",
3888
- builder: (yargs34) => withConfiguration(
4214
+ builder: (yargs36) => withConfiguration(
3889
4215
  withApiOptions(
3890
4216
  withProjectOptions(
3891
4217
  withDiffOptions(
3892
- yargs34.positional("ids", {
4218
+ yargs36.positional("ids", {
3893
4219
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3894
4220
  type: "string"
3895
4221
  }).option("all", {
@@ -3944,12 +4270,12 @@ import { UncachedFileClient as UncachedFileClient7 } from "@uniformdev/files";
3944
4270
  var EntryPatternPullModule = {
3945
4271
  command: "pull <directory>",
3946
4272
  describe: "Pulls all entry patterns to local files in a directory",
3947
- builder: (yargs34) => withConfiguration(
4273
+ builder: (yargs36) => withConfiguration(
3948
4274
  withApiOptions(
3949
4275
  withProjectOptions(
3950
4276
  withStateOptions(
3951
4277
  withDiffOptions(
3952
- yargs34.positional("directory", {
4278
+ yargs36.positional("directory", {
3953
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.",
3954
4280
  type: "string"
3955
4281
  }).option("format", {
@@ -4049,12 +4375,12 @@ import { UncachedFileClient as UncachedFileClient8 } from "@uniformdev/files";
4049
4375
  var EntryPatternPushModule = {
4050
4376
  command: "push <directory>",
4051
4377
  describe: "Pushes all entry patterns from files in a directory to Uniform",
4052
- builder: (yargs34) => withConfiguration(
4378
+ builder: (yargs36) => withConfiguration(
4053
4379
  withApiOptions(
4054
4380
  withProjectOptions(
4055
4381
  withStateOptions(
4056
4382
  withDiffOptions(
4057
- yargs34.positional("directory", {
4383
+ yargs36.positional("directory", {
4058
4384
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
4059
4385
  type: "string"
4060
4386
  }).option("what-if", {
@@ -4141,10 +4467,10 @@ var EntryPatternRemoveModule = {
4141
4467
  command: "remove <id>",
4142
4468
  aliases: ["delete", "rm"],
4143
4469
  describe: "Delete an entry pattern",
4144
- builder: (yargs34) => withConfiguration(
4470
+ builder: (yargs36) => withConfiguration(
4145
4471
  withApiOptions(
4146
4472
  withProjectOptions(
4147
- yargs34.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
4473
+ yargs36.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
4148
4474
  )
4149
4475
  )
4150
4476
  ),
@@ -4161,10 +4487,10 @@ import { diffJson as diffJson4 } from "diff";
4161
4487
  var EntryPatternUnpublishModule = {
4162
4488
  command: "unpublish [ids]",
4163
4489
  describe: "Unpublish an entry patterns",
4164
- builder: (yargs34) => withConfiguration(
4490
+ builder: (yargs36) => withConfiguration(
4165
4491
  withApiOptions(
4166
4492
  withProjectOptions(
4167
- yargs34.positional("ids", {
4493
+ yargs36.positional("ids", {
4168
4494
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4169
4495
  type: "string"
4170
4496
  }).option("all", {
@@ -4237,11 +4563,11 @@ var EntryPatternUpdateModule = {
4237
4563
  command: "update <filename>",
4238
4564
  aliases: ["put"],
4239
4565
  describe: "Insert or update an entry pattern",
4240
- builder: (yargs34) => withConfiguration(
4566
+ builder: (yargs36) => withConfiguration(
4241
4567
  withApiOptions(
4242
4568
  withProjectOptions(
4243
4569
  withStateOptions(
4244
- yargs34.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
4570
+ yargs36.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
4245
4571
  )
4246
4572
  )
4247
4573
  )
@@ -4258,14 +4584,14 @@ var EntryPatternUpdateModule = {
4258
4584
  var EntryPatternModule = {
4259
4585
  command: "entry-pattern <command>",
4260
4586
  describe: "Commands for Entry patterns",
4261
- builder: (yargs34) => yargs34.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(),
4262
4588
  handler: () => {
4263
- yargs10.help();
4589
+ yargs11.help();
4264
4590
  }
4265
4591
  };
4266
4592
 
4267
4593
  // src/commands/canvas/commands/locale.ts
4268
- import yargs11 from "yargs";
4594
+ import yargs12 from "yargs";
4269
4595
 
4270
4596
  // src/commands/canvas/commands/locale/pull.ts
4271
4597
  import { LocaleClient } from "@uniformdev/canvas";
@@ -4304,11 +4630,11 @@ function createLocaleEngineDataSource({
4304
4630
  var LocalePullModule = {
4305
4631
  command: "pull <directory>",
4306
4632
  describe: "Pulls all locales to local files in a directory",
4307
- builder: (yargs34) => withConfiguration(
4633
+ builder: (yargs36) => withConfiguration(
4308
4634
  withApiOptions(
4309
4635
  withProjectOptions(
4310
4636
  withDiffOptions(
4311
- yargs34.positional("directory", {
4637
+ yargs36.positional("directory", {
4312
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.",
4313
4639
  type: "string"
4314
4640
  }).option("format", {
@@ -4392,11 +4718,11 @@ import { LocaleClient as LocaleClient2 } from "@uniformdev/canvas";
4392
4718
  var LocalePushModule = {
4393
4719
  command: "push <directory>",
4394
4720
  describe: "Pushes all locales from files in a directory to Uniform",
4395
- builder: (yargs34) => withConfiguration(
4721
+ builder: (yargs36) => withConfiguration(
4396
4722
  withApiOptions(
4397
4723
  withProjectOptions(
4398
4724
  withDiffOptions(
4399
- yargs34.positional("directory", {
4725
+ yargs36.positional("directory", {
4400
4726
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
4401
4727
  type: "string"
4402
4728
  }).option("what-if", {
@@ -4467,26 +4793,263 @@ var LocalePushModule = {
4467
4793
  var LocaleModule = {
4468
4794
  command: "locale <command>",
4469
4795
  describe: "Commands for locale definitions",
4470
- builder: (yargs34) => yargs34.command(LocalePullModule).command(LocalePushModule),
4796
+ builder: (yargs36) => yargs36.command(LocalePullModule).command(LocalePushModule),
4471
4797
  handler: () => {
4472
- yargs11.help();
4798
+ yargs12.help();
4799
+ }
4800
+ };
4801
+
4802
+ // src/commands/canvas/commands/pattern.ts
4803
+ import yargs13 from "yargs";
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();
4473
5036
  }
4474
5037
  };
4475
5038
 
4476
5039
  // src/commands/canvas/commands/prompts.ts
4477
- import yargs12 from "yargs";
5040
+ import yargs14 from "yargs";
4478
5041
 
4479
5042
  // src/commands/canvas/commands/prompts/get.ts
4480
5043
  import { PromptClient } from "@uniformdev/canvas";
4481
5044
  var PromptGetModule = {
4482
5045
  command: "get <id>",
4483
5046
  describe: "Get a prompt",
4484
- builder: (yargs34) => withConfiguration(
5047
+ builder: (yargs36) => withConfiguration(
4485
5048
  withFormatOptions(
4486
5049
  withApiOptions(
4487
5050
  withProjectOptions(
4488
5051
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4489
- yargs34.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
5052
+ yargs36.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4490
5053
  )
4491
5054
  )
4492
5055
  )
@@ -4507,7 +5070,7 @@ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
4507
5070
  var PromptListModule = {
4508
5071
  command: "list",
4509
5072
  describe: "List prompts",
4510
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
5073
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
4511
5074
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4512
5075
  const fetch3 = nodeFetchProxy(proxy);
4513
5076
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -4555,12 +5118,12 @@ function createPromptEngineDataSource({
4555
5118
  var PromptPullModule = {
4556
5119
  command: "pull <directory>",
4557
5120
  describe: "Pulls all prompts to local files in a directory",
4558
- builder: (yargs34) => withConfiguration(
5121
+ builder: (yargs36) => withConfiguration(
4559
5122
  withApiOptions(
4560
5123
  withProjectOptions(
4561
5124
  withStateOptions(
4562
5125
  withDiffOptions(
4563
- yargs34.positional("directory", {
5126
+ yargs36.positional("directory", {
4564
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.",
4565
5128
  type: "string"
4566
5129
  }).option("format", {
@@ -4645,12 +5208,12 @@ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
4645
5208
  var PromptPushModule = {
4646
5209
  command: "push <directory>",
4647
5210
  describe: "Pushes all prompts from files in a directory to Uniform",
4648
- builder: (yargs34) => withConfiguration(
5211
+ builder: (yargs36) => withConfiguration(
4649
5212
  withApiOptions(
4650
5213
  withProjectOptions(
4651
5214
  withStateOptions(
4652
5215
  withDiffOptions(
4653
- yargs34.positional("directory", {
5216
+ yargs36.positional("directory", {
4654
5217
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
4655
5218
  type: "string"
4656
5219
  }).option("what-if", {
@@ -4724,9 +5287,9 @@ var PromptRemoveModule = {
4724
5287
  command: "remove <id>",
4725
5288
  aliases: ["delete", "rm"],
4726
5289
  describe: "Delete a prompt",
4727
- builder: (yargs34) => withConfiguration(
5290
+ builder: (yargs36) => withConfiguration(
4728
5291
  withApiOptions(
4729
- withProjectOptions(yargs34.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
5292
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4730
5293
  )
4731
5294
  ),
4732
5295
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -4742,10 +5305,10 @@ var PromptUpdateModule = {
4742
5305
  command: "update <filename>",
4743
5306
  aliases: ["put"],
4744
5307
  describe: "Insert or update a prompt",
4745
- builder: (yargs34) => withConfiguration(
5308
+ builder: (yargs36) => withConfiguration(
4746
5309
  withApiOptions(
4747
5310
  withProjectOptions(
4748
- yargs34.positional("filename", { demandOption: true, describe: "Prompt file to put" })
5311
+ yargs36.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4749
5312
  )
4750
5313
  )
4751
5314
  ),
@@ -4762,14 +5325,14 @@ var PromptModule = {
4762
5325
  command: "prompt <command>",
4763
5326
  aliases: ["dt"],
4764
5327
  describe: "Commands for AI Prompt definitions",
4765
- builder: (yargs34) => yargs34.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(),
4766
5329
  handler: () => {
4767
- yargs12.help();
5330
+ yargs14.help();
4768
5331
  }
4769
5332
  };
4770
5333
 
4771
5334
  // src/commands/canvas/commands/workflow.ts
4772
- import yargs13 from "yargs";
5335
+ import yargs15 from "yargs";
4773
5336
 
4774
5337
  // src/commands/canvas/commands/workflow/pull.ts
4775
5338
  import { WorkflowClient } from "@uniformdev/canvas";
@@ -4813,11 +5376,11 @@ function createWorkflowEngineDataSource({
4813
5376
  var WorkflowPullModule = {
4814
5377
  command: "pull <directory>",
4815
5378
  describe: "Pulls all workflows to local files in a directory",
4816
- builder: (yargs34) => withConfiguration(
5379
+ builder: (yargs36) => withConfiguration(
4817
5380
  withApiOptions(
4818
5381
  withProjectOptions(
4819
5382
  withDiffOptions(
4820
- yargs34.positional("directory", {
5383
+ yargs36.positional("directory", {
4821
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.",
4822
5385
  type: "string"
4823
5386
  }).option("format", {
@@ -4895,11 +5458,11 @@ import { WorkflowClient as WorkflowClient2 } from "@uniformdev/canvas";
4895
5458
  var WorkflowPushModule = {
4896
5459
  command: "push <directory>",
4897
5460
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
4898
- builder: (yargs34) => withConfiguration(
5461
+ builder: (yargs36) => withConfiguration(
4899
5462
  withApiOptions(
4900
5463
  withProjectOptions(
4901
5464
  withDiffOptions(
4902
- yargs34.positional("directory", {
5465
+ yargs36.positional("directory", {
4903
5466
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
4904
5467
  type: "string"
4905
5468
  }).option("what-if", {
@@ -4965,9 +5528,9 @@ var WorkflowModule = {
4965
5528
  command: "workflow <command>",
4966
5529
  aliases: ["wf"],
4967
5530
  describe: "Commands for Canvas workflows",
4968
- builder: (yargs34) => yargs34.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
5531
+ builder: (yargs36) => yargs36.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
4969
5532
  handler: () => {
4970
- yargs13.help();
5533
+ yargs15.help();
4971
5534
  }
4972
5535
  };
4973
5536
 
@@ -4976,28 +5539,28 @@ var CanvasCommand = {
4976
5539
  command: "canvas <command>",
4977
5540
  aliases: ["cv", "pm", "presentation"],
4978
5541
  describe: "Uniform Canvas commands",
4979
- builder: (yargs34) => yargs34.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).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(),
4980
5543
  handler: () => {
4981
- yargs14.showHelp();
5544
+ yargs16.showHelp();
4982
5545
  }
4983
5546
  };
4984
5547
 
4985
5548
  // src/commands/context/index.ts
4986
- import yargs21 from "yargs";
5549
+ import yargs23 from "yargs";
4987
5550
 
4988
5551
  // src/commands/context/commands/aggregate.ts
4989
- import yargs15 from "yargs";
5552
+ import yargs17 from "yargs";
4990
5553
 
4991
5554
  // src/commands/context/commands/aggregate/get.ts
4992
5555
  import { UncachedAggregateClient } from "@uniformdev/context/api";
4993
5556
  var AggregateGetModule = {
4994
5557
  command: "get <id>",
4995
5558
  describe: "Fetch an aggregate",
4996
- builder: (yargs34) => withConfiguration(
5559
+ builder: (yargs36) => withConfiguration(
4997
5560
  withFormatOptions(
4998
5561
  withApiOptions(
4999
5562
  withProjectOptions(
5000
- yargs34.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
5563
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
5001
5564
  )
5002
5565
  )
5003
5566
  )
@@ -5021,7 +5584,7 @@ var AggregateListModule = {
5021
5584
  command: "list",
5022
5585
  describe: "List aggregates",
5023
5586
  aliases: ["ls"],
5024
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
5587
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
5025
5588
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5026
5589
  const fetch3 = nodeFetchProxy(proxy);
5027
5590
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5088,11 +5651,11 @@ function writeContextPackage(filename, packageContents) {
5088
5651
  var AggregatePullModule = {
5089
5652
  command: "pull <directory>",
5090
5653
  describe: "Pulls all aggregates to local files in a directory",
5091
- builder: (yargs34) => withConfiguration(
5654
+ builder: (yargs36) => withConfiguration(
5092
5655
  withApiOptions(
5093
5656
  withProjectOptions(
5094
5657
  withDiffOptions(
5095
- yargs34.positional("directory", {
5658
+ yargs36.positional("directory", {
5096
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.",
5097
5660
  type: "string"
5098
5661
  }).option("format", {
@@ -5170,11 +5733,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
5170
5733
  var AggregatePushModule = {
5171
5734
  command: "push <directory>",
5172
5735
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
5173
- builder: (yargs34) => withConfiguration(
5736
+ builder: (yargs36) => withConfiguration(
5174
5737
  withApiOptions(
5175
5738
  withProjectOptions(
5176
5739
  withDiffOptions(
5177
- yargs34.positional("directory", {
5740
+ yargs36.positional("directory", {
5178
5741
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
5179
5742
  type: "string"
5180
5743
  }).option("what-if", {
@@ -5242,10 +5805,10 @@ var AggregateRemoveModule = {
5242
5805
  command: "remove <id>",
5243
5806
  aliases: ["delete", "rm"],
5244
5807
  describe: "Delete an aggregate",
5245
- builder: (yargs34) => withConfiguration(
5808
+ builder: (yargs36) => withConfiguration(
5246
5809
  withApiOptions(
5247
5810
  withProjectOptions(
5248
- yargs34.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
5811
+ yargs36.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
5249
5812
  )
5250
5813
  )
5251
5814
  ),
@@ -5262,10 +5825,10 @@ var AggregateUpdateModule = {
5262
5825
  command: "update <filename>",
5263
5826
  aliases: ["put"],
5264
5827
  describe: "Insert or update an aggregate",
5265
- builder: (yargs34) => withConfiguration(
5828
+ builder: (yargs36) => withConfiguration(
5266
5829
  withApiOptions(
5267
5830
  withProjectOptions(
5268
- yargs34.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
5831
+ yargs36.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
5269
5832
  )
5270
5833
  )
5271
5834
  ),
@@ -5282,25 +5845,25 @@ var AggregateModule = {
5282
5845
  command: "aggregate <command>",
5283
5846
  aliases: ["agg", "intent", "audience"],
5284
5847
  describe: "Commands for Context aggregates (intents, audiences)",
5285
- builder: (yargs34) => yargs34.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(),
5286
5849
  handler: () => {
5287
- yargs15.help();
5850
+ yargs17.help();
5288
5851
  }
5289
5852
  };
5290
5853
 
5291
5854
  // src/commands/context/commands/enrichment.ts
5292
- import yargs16 from "yargs";
5855
+ import yargs18 from "yargs";
5293
5856
 
5294
5857
  // src/commands/context/commands/enrichment/get.ts
5295
5858
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
5296
5859
  var EnrichmentGetModule = {
5297
5860
  command: "get <id>",
5298
5861
  describe: "Fetch an enrichment category and its values",
5299
- builder: (yargs34) => withFormatOptions(
5862
+ builder: (yargs36) => withFormatOptions(
5300
5863
  withConfiguration(
5301
5864
  withApiOptions(
5302
5865
  withProjectOptions(
5303
- yargs34.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
5866
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
5304
5867
  )
5305
5868
  )
5306
5869
  )
@@ -5324,7 +5887,7 @@ var EnrichmentListModule = {
5324
5887
  command: "list",
5325
5888
  describe: "List enrichments",
5326
5889
  aliases: ["ls"],
5327
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
5890
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
5328
5891
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5329
5892
  const fetch3 = nodeFetchProxy(proxy);
5330
5893
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5426,11 +5989,11 @@ var createEnrichmentValueEngineDataSource = ({
5426
5989
  var EnrichmentPullModule = {
5427
5990
  command: "pull <directory>",
5428
5991
  describe: "Pulls all enrichments to local files in a directory",
5429
- builder: (yargs34) => withConfiguration(
5992
+ builder: (yargs36) => withConfiguration(
5430
5993
  withApiOptions(
5431
5994
  withProjectOptions(
5432
5995
  withDiffOptions(
5433
- yargs34.positional("directory", {
5996
+ yargs36.positional("directory", {
5434
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.",
5435
5998
  type: "string"
5436
5999
  }).option("format", {
@@ -5508,11 +6071,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
5508
6071
  var EnrichmentPushModule = {
5509
6072
  command: "push <directory>",
5510
6073
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
5511
- builder: (yargs34) => withConfiguration(
6074
+ builder: (yargs36) => withConfiguration(
5512
6075
  withApiOptions(
5513
6076
  withProjectOptions(
5514
6077
  withDiffOptions(
5515
- yargs34.positional("directory", {
6078
+ yargs36.positional("directory", {
5516
6079
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
5517
6080
  type: "string"
5518
6081
  }).option("what-if", {
@@ -5579,10 +6142,10 @@ var EnrichmentRemoveModule = {
5579
6142
  command: "remove <id>",
5580
6143
  aliases: ["delete", "rm"],
5581
6144
  describe: "Delete an enrichment category and its values",
5582
- builder: (yargs34) => withConfiguration(
6145
+ builder: (yargs36) => withConfiguration(
5583
6146
  withApiOptions(
5584
6147
  withProjectOptions(
5585
- yargs34.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
6148
+ yargs36.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5586
6149
  )
5587
6150
  )
5588
6151
  ),
@@ -5598,14 +6161,14 @@ var EnrichmentModule = {
5598
6161
  command: "enrichment <command>",
5599
6162
  aliases: ["enr"],
5600
6163
  describe: "Commands for Context enrichments",
5601
- builder: (yargs34) => yargs34.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(),
5602
6165
  handler: () => {
5603
- yargs16.help();
6166
+ yargs18.help();
5604
6167
  }
5605
6168
  };
5606
6169
 
5607
6170
  // src/commands/context/commands/manifest.ts
5608
- import yargs17 from "yargs";
6171
+ import yargs19 from "yargs";
5609
6172
 
5610
6173
  // src/commands/context/commands/manifest/get.ts
5611
6174
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -5616,10 +6179,10 @@ var ManifestGetModule = {
5616
6179
  command: "get [output]",
5617
6180
  aliases: ["dl", "download"],
5618
6181
  describe: "Download the Uniform Context manifest for a project",
5619
- builder: (yargs34) => withConfiguration(
6182
+ builder: (yargs36) => withConfiguration(
5620
6183
  withApiOptions(
5621
6184
  withProjectOptions(
5622
- yargs34.option("preview", {
6185
+ yargs36.option("preview", {
5623
6186
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
5624
6187
  default: false,
5625
6188
  type: "boolean",
@@ -5681,7 +6244,7 @@ import { exit as exit2 } from "process";
5681
6244
  var ManifestPublishModule = {
5682
6245
  command: "publish",
5683
6246
  describe: "Publish the Uniform Context manifest for a project",
5684
- builder: (yargs34) => withConfiguration(withApiOptions(withProjectOptions(yargs34))),
6247
+ builder: (yargs36) => withConfiguration(withApiOptions(withProjectOptions(yargs36))),
5685
6248
  handler: async ({ apiKey, apiHost, proxy, project }) => {
5686
6249
  const fetch3 = nodeFetchProxy(proxy);
5687
6250
  try {
@@ -5714,25 +6277,25 @@ var ManifestModule = {
5714
6277
  command: "manifest <command>",
5715
6278
  describe: "Commands for context manifests",
5716
6279
  aliases: ["man"],
5717
- builder: (yargs34) => yargs34.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
6280
+ builder: (yargs36) => yargs36.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
5718
6281
  handler: () => {
5719
- yargs17.help();
6282
+ yargs19.help();
5720
6283
  }
5721
6284
  };
5722
6285
 
5723
6286
  // src/commands/context/commands/quirk.ts
5724
- import yargs18 from "yargs";
6287
+ import yargs20 from "yargs";
5725
6288
 
5726
6289
  // src/commands/context/commands/quirk/get.ts
5727
6290
  import { UncachedQuirkClient } from "@uniformdev/context/api";
5728
6291
  var QuirkGetModule = {
5729
6292
  command: "get <id>",
5730
6293
  describe: "Fetch a quirk",
5731
- builder: (yargs34) => withConfiguration(
6294
+ builder: (yargs36) => withConfiguration(
5732
6295
  withFormatOptions(
5733
6296
  withApiOptions(
5734
6297
  withProjectOptions(
5735
- yargs34.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
6298
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
5736
6299
  )
5737
6300
  )
5738
6301
  )
@@ -5756,11 +6319,11 @@ var QuirkListModule = {
5756
6319
  command: "list",
5757
6320
  describe: "List quirks",
5758
6321
  aliases: ["ls"],
5759
- builder: (yargs34) => withConfiguration(
6322
+ builder: (yargs36) => withConfiguration(
5760
6323
  withFormatOptions(
5761
6324
  withApiOptions(
5762
6325
  withProjectOptions(
5763
- yargs34.option("withIntegrations", {
6326
+ yargs36.option("withIntegrations", {
5764
6327
  alias: ["i"],
5765
6328
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
5766
6329
  type: "boolean"
@@ -5818,11 +6381,11 @@ function createQuirkEngineDataSource({
5818
6381
  var QuirkPullModule = {
5819
6382
  command: "pull <directory>",
5820
6383
  describe: "Pulls all quirks to local files in a directory",
5821
- builder: (yargs34) => withConfiguration(
6384
+ builder: (yargs36) => withConfiguration(
5822
6385
  withApiOptions(
5823
6386
  withProjectOptions(
5824
6387
  withDiffOptions(
5825
- yargs34.positional("directory", {
6388
+ yargs36.positional("directory", {
5826
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.",
5827
6390
  type: "string"
5828
6391
  }).option("format", {
@@ -5900,11 +6463,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
5900
6463
  var QuirkPushModule = {
5901
6464
  command: "push <directory>",
5902
6465
  describe: "Pushes all quirks from files in a directory or package to Uniform",
5903
- builder: (yargs34) => withConfiguration(
6466
+ builder: (yargs36) => withConfiguration(
5904
6467
  withApiOptions(
5905
6468
  withProjectOptions(
5906
6469
  withDiffOptions(
5907
- yargs34.positional("directory", {
6470
+ yargs36.positional("directory", {
5908
6471
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
5909
6472
  type: "string"
5910
6473
  }).option("what-if", {
@@ -5971,10 +6534,10 @@ var QuirkRemoveModule = {
5971
6534
  command: "remove <id>",
5972
6535
  aliases: ["delete", "rm"],
5973
6536
  describe: "Delete a quirk",
5974
- builder: (yargs34) => withConfiguration(
6537
+ builder: (yargs36) => withConfiguration(
5975
6538
  withApiOptions(
5976
6539
  withProjectOptions(
5977
- yargs34.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
6540
+ yargs36.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5978
6541
  )
5979
6542
  )
5980
6543
  ),
@@ -5991,10 +6554,10 @@ var QuirkUpdateModule = {
5991
6554
  command: "update <filename>",
5992
6555
  aliases: ["put"],
5993
6556
  describe: "Insert or update a quirk",
5994
- builder: (yargs34) => withConfiguration(
6557
+ builder: (yargs36) => withConfiguration(
5995
6558
  withApiOptions(
5996
6559
  withProjectOptions(
5997
- yargs34.positional("filename", { demandOption: true, describe: "Quirk file to put" })
6560
+ yargs36.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5998
6561
  )
5999
6562
  )
6000
6563
  ),
@@ -6011,25 +6574,25 @@ var QuirkModule = {
6011
6574
  command: "quirk <command>",
6012
6575
  aliases: ["qk"],
6013
6576
  describe: "Commands for Context quirks",
6014
- builder: (yargs34) => yargs34.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(),
6015
6578
  handler: () => {
6016
- yargs18.help();
6579
+ yargs20.help();
6017
6580
  }
6018
6581
  };
6019
6582
 
6020
6583
  // src/commands/context/commands/signal.ts
6021
- import yargs19 from "yargs";
6584
+ import yargs21 from "yargs";
6022
6585
 
6023
6586
  // src/commands/context/commands/signal/get.ts
6024
6587
  import { UncachedSignalClient } from "@uniformdev/context/api";
6025
6588
  var SignalGetModule = {
6026
6589
  command: "get <id>",
6027
6590
  describe: "Fetch a signal",
6028
- builder: (yargs34) => withConfiguration(
6591
+ builder: (yargs36) => withConfiguration(
6029
6592
  withFormatOptions(
6030
6593
  withApiOptions(
6031
6594
  withProjectOptions(
6032
- yargs34.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
6595
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
6033
6596
  )
6034
6597
  )
6035
6598
  )
@@ -6053,7 +6616,7 @@ var SignalListModule = {
6053
6616
  command: "list",
6054
6617
  describe: "List signals",
6055
6618
  aliases: ["ls"],
6056
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
6619
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
6057
6620
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6058
6621
  const fetch3 = nodeFetchProxy(proxy);
6059
6622
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6103,11 +6666,11 @@ function createSignalEngineDataSource({
6103
6666
  var SignalPullModule = {
6104
6667
  command: "pull <directory>",
6105
6668
  describe: "Pulls all signals to local files in a directory",
6106
- builder: (yargs34) => withConfiguration(
6669
+ builder: (yargs36) => withConfiguration(
6107
6670
  withApiOptions(
6108
6671
  withProjectOptions(
6109
6672
  withDiffOptions(
6110
- yargs34.positional("directory", {
6673
+ yargs36.positional("directory", {
6111
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.",
6112
6675
  type: "string"
6113
6676
  }).option("format", {
@@ -6185,11 +6748,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
6185
6748
  var SignalPushModule = {
6186
6749
  command: "push <directory>",
6187
6750
  describe: "Pushes all signals from files in a directory or package to Uniform",
6188
- builder: (yargs34) => withConfiguration(
6751
+ builder: (yargs36) => withConfiguration(
6189
6752
  withApiOptions(
6190
6753
  withProjectOptions(
6191
6754
  withDiffOptions(
6192
- yargs34.positional("directory", {
6755
+ yargs36.positional("directory", {
6193
6756
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
6194
6757
  type: "string"
6195
6758
  }).option("what-if", {
@@ -6256,10 +6819,10 @@ var SignalRemoveModule = {
6256
6819
  command: "remove <id>",
6257
6820
  aliases: ["delete", "rm"],
6258
6821
  describe: "Delete a signal",
6259
- builder: (yargs34) => withConfiguration(
6822
+ builder: (yargs36) => withConfiguration(
6260
6823
  withApiOptions(
6261
6824
  withProjectOptions(
6262
- yargs34.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
6825
+ yargs36.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
6263
6826
  )
6264
6827
  )
6265
6828
  ),
@@ -6276,10 +6839,10 @@ var SignalUpdateModule = {
6276
6839
  command: "update <filename>",
6277
6840
  aliases: ["put"],
6278
6841
  describe: "Insert or update a signal",
6279
- builder: (yargs34) => withConfiguration(
6842
+ builder: (yargs36) => withConfiguration(
6280
6843
  withApiOptions(
6281
6844
  withProjectOptions(
6282
- yargs34.positional("filename", { demandOption: true, describe: "Signal file to put" })
6845
+ yargs36.positional("filename", { demandOption: true, describe: "Signal file to put" })
6283
6846
  )
6284
6847
  )
6285
6848
  ),
@@ -6296,25 +6859,25 @@ var SignalModule = {
6296
6859
  command: "signal <command>",
6297
6860
  aliases: ["sig"],
6298
6861
  describe: "Commands for Context signals",
6299
- builder: (yargs34) => yargs34.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(),
6300
6863
  handler: () => {
6301
- yargs19.help();
6864
+ yargs21.help();
6302
6865
  }
6303
6866
  };
6304
6867
 
6305
6868
  // src/commands/context/commands/test.ts
6306
- import yargs20 from "yargs";
6869
+ import yargs22 from "yargs";
6307
6870
 
6308
6871
  // src/commands/context/commands/test/get.ts
6309
6872
  import { UncachedTestClient } from "@uniformdev/context/api";
6310
6873
  var TestGetModule = {
6311
6874
  command: "get <id>",
6312
6875
  describe: "Fetch a test",
6313
- builder: (yargs34) => withConfiguration(
6876
+ builder: (yargs36) => withConfiguration(
6314
6877
  withFormatOptions(
6315
6878
  withApiOptions(
6316
6879
  withProjectOptions(
6317
- yargs34.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
6880
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
6318
6881
  )
6319
6882
  )
6320
6883
  )
@@ -6338,7 +6901,7 @@ var TestListModule = {
6338
6901
  command: "list",
6339
6902
  describe: "List tests",
6340
6903
  aliases: ["ls"],
6341
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
6904
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
6342
6905
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6343
6906
  const fetch3 = nodeFetchProxy(proxy);
6344
6907
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6388,11 +6951,11 @@ function createTestEngineDataSource({
6388
6951
  var TestPullModule = {
6389
6952
  command: "pull <directory>",
6390
6953
  describe: "Pulls all tests to local files in a directory",
6391
- builder: (yargs34) => withConfiguration(
6954
+ builder: (yargs36) => withConfiguration(
6392
6955
  withApiOptions(
6393
6956
  withProjectOptions(
6394
6957
  withDiffOptions(
6395
- yargs34.positional("directory", {
6958
+ yargs36.positional("directory", {
6396
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.",
6397
6960
  type: "string"
6398
6961
  }).option("format", {
@@ -6470,11 +7033,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
6470
7033
  var TestPushModule = {
6471
7034
  command: "push <directory>",
6472
7035
  describe: "Pushes all tests from files in a directory or package to Uniform",
6473
- builder: (yargs34) => withConfiguration(
7036
+ builder: (yargs36) => withConfiguration(
6474
7037
  withApiOptions(
6475
7038
  withProjectOptions(
6476
7039
  withDiffOptions(
6477
- yargs34.positional("directory", {
7040
+ yargs36.positional("directory", {
6478
7041
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
6479
7042
  type: "string"
6480
7043
  }).option("what-if", {
@@ -6541,10 +7104,10 @@ var TestRemoveModule = {
6541
7104
  command: "remove <id>",
6542
7105
  aliases: ["delete", "rm"],
6543
7106
  describe: "Delete a test",
6544
- builder: (yargs34) => withConfiguration(
7107
+ builder: (yargs36) => withConfiguration(
6545
7108
  withApiOptions(
6546
7109
  withProjectOptions(
6547
- yargs34.positional("id", { demandOption: true, describe: "Test public ID to delete" })
7110
+ yargs36.positional("id", { demandOption: true, describe: "Test public ID to delete" })
6548
7111
  )
6549
7112
  )
6550
7113
  ),
@@ -6561,9 +7124,9 @@ var TestUpdateModule = {
6561
7124
  command: "update <filename>",
6562
7125
  aliases: ["put"],
6563
7126
  describe: "Insert or update a test",
6564
- builder: (yargs34) => withConfiguration(
7127
+ builder: (yargs36) => withConfiguration(
6565
7128
  withApiOptions(
6566
- withProjectOptions(yargs34.positional("filename", { demandOption: true, describe: "Test file to put" }))
7129
+ withProjectOptions(yargs36.positional("filename", { demandOption: true, describe: "Test file to put" }))
6567
7130
  )
6568
7131
  ),
6569
7132
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -6578,9 +7141,9 @@ var TestUpdateModule = {
6578
7141
  var TestModule = {
6579
7142
  command: "test <command>",
6580
7143
  describe: "Commands for Context A/B tests",
6581
- builder: (yargs34) => yargs34.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(),
6582
7145
  handler: () => {
6583
- yargs20.help();
7146
+ yargs22.help();
6584
7147
  }
6585
7148
  };
6586
7149
 
@@ -6589,20 +7152,20 @@ var ContextCommand = {
6589
7152
  command: "context <command>",
6590
7153
  aliases: ["ctx"],
6591
7154
  describe: "Uniform Context commands",
6592
- builder: (yargs34) => yargs34.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(),
6593
7156
  handler: () => {
6594
- yargs21.showHelp();
7157
+ yargs23.showHelp();
6595
7158
  }
6596
7159
  };
6597
7160
 
6598
7161
  // src/commands/integration/index.ts
6599
- import yargs24 from "yargs";
7162
+ import yargs26 from "yargs";
6600
7163
 
6601
7164
  // src/commands/integration/commands/definition.ts
6602
- import yargs23 from "yargs";
7165
+ import yargs25 from "yargs";
6603
7166
 
6604
7167
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
6605
- import yargs22 from "yargs";
7168
+ import yargs24 from "yargs";
6606
7169
 
6607
7170
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
6608
7171
  import { readFileSync } from "fs";
@@ -6640,8 +7203,8 @@ var EdgehancerClient = class extends ApiClient {
6640
7203
  };
6641
7204
 
6642
7205
  // src/commands/integration/commands/definition/edgehancer/util.ts
6643
- function withEdgehancerIdOptions(yargs34) {
6644
- return yargs34.option("connectorType", {
7206
+ function withEdgehancerIdOptions(yargs36) {
7207
+ return yargs36.option("connectorType", {
6645
7208
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
6646
7209
  demandOption: true,
6647
7210
  type: "string"
@@ -6661,11 +7224,11 @@ function withEdgehancerIdOptions(yargs34) {
6661
7224
  var IntegrationEdgehancerDeployModule = {
6662
7225
  command: "deploy <filename>",
6663
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.",
6664
- builder: (yargs34) => withConfiguration(
7227
+ builder: (yargs36) => withConfiguration(
6665
7228
  withApiOptions(
6666
7229
  withTeamOptions(
6667
7230
  withEdgehancerIdOptions(
6668
- yargs34.positional("filename", {
7231
+ yargs36.positional("filename", {
6669
7232
  demandOption: true,
6670
7233
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
6671
7234
  })
@@ -6685,7 +7248,7 @@ var IntegrationEdgehancerDeployModule = {
6685
7248
  var IntegrationEdgehancerRemoveModule = {
6686
7249
  command: "remove",
6687
7250
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
6688
- builder: (yargs34) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs34)))),
7251
+ builder: (yargs36) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs36)))),
6689
7252
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
6690
7253
  const fetch3 = nodeFetchProxy(proxy);
6691
7254
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch3, teamId });
@@ -6697,9 +7260,9 @@ var IntegrationEdgehancerRemoveModule = {
6697
7260
  var IntegrationEdgehancerModule = {
6698
7261
  command: "edgehancer <command>",
6699
7262
  describe: "Commands for managing custom integration edgehancers at the team level.",
6700
- builder: (yargs34) => yargs34.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
7263
+ builder: (yargs36) => yargs36.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
6701
7264
  handler: () => {
6702
- yargs22.help();
7265
+ yargs24.help();
6703
7266
  }
6704
7267
  };
6705
7268
 
@@ -6739,10 +7302,10 @@ var DefinitionClient = class extends ApiClient2 {
6739
7302
  var IntegrationDefinitionRegisterModule = {
6740
7303
  command: "register <filename>",
6741
7304
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
6742
- builder: (yargs34) => withConfiguration(
7305
+ builder: (yargs36) => withConfiguration(
6743
7306
  withApiOptions(
6744
7307
  withTeamOptions(
6745
- yargs34.positional("filename", {
7308
+ yargs36.positional("filename", {
6746
7309
  demandOption: true,
6747
7310
  describe: "Integration definition manifest to register"
6748
7311
  })
@@ -6761,10 +7324,10 @@ var IntegrationDefinitionRegisterModule = {
6761
7324
  var IntegrationDefinitionRemoveModule = {
6762
7325
  command: "remove <type>",
6763
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.",
6764
- builder: (yargs34) => withConfiguration(
7327
+ builder: (yargs36) => withConfiguration(
6765
7328
  withApiOptions(
6766
7329
  withTeamOptions(
6767
- yargs34.positional("type", {
7330
+ yargs36.positional("type", {
6768
7331
  demandOption: true,
6769
7332
  describe: "Integration type (from its manifest) to remove."
6770
7333
  })
@@ -6782,9 +7345,9 @@ var IntegrationDefinitionRemoveModule = {
6782
7345
  var IntegrationDefinitionModule = {
6783
7346
  command: "definition <command>",
6784
7347
  describe: "Commands for managing custom integration definitions at the team level.",
6785
- builder: (yargs34) => yargs34.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
7348
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
6786
7349
  handler: () => {
6787
- yargs23.help();
7350
+ yargs25.help();
6788
7351
  }
6789
7352
  };
6790
7353
 
@@ -6824,10 +7387,10 @@ var InstallClient = class extends ApiClient3 {
6824
7387
  var IntegrationInstallModule = {
6825
7388
  command: "install <type>",
6826
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.",
6827
- builder: (yargs34) => withConfiguration(
7390
+ builder: (yargs36) => withConfiguration(
6828
7391
  withApiOptions(
6829
7392
  withProjectOptions(
6830
- yargs34.positional("type", {
7393
+ yargs36.positional("type", {
6831
7394
  demandOption: true,
6832
7395
  describe: "Integration type to install (as defined in its manifest)"
6833
7396
  }).option("configuration", {
@@ -6849,10 +7412,10 @@ var IntegrationInstallModule = {
6849
7412
  var IntegrationUninstallModule = {
6850
7413
  command: "uninstall <type>",
6851
7414
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
6852
- builder: (yargs34) => withConfiguration(
7415
+ builder: (yargs36) => withConfiguration(
6853
7416
  withApiOptions(
6854
7417
  withProjectOptions(
6855
- yargs34.positional("type", {
7418
+ yargs36.positional("type", {
6856
7419
  demandOption: true,
6857
7420
  describe: "Integration type to uninstall (as defined in its manifest)"
6858
7421
  })
@@ -6870,9 +7433,9 @@ var IntegrationUninstallModule = {
6870
7433
  var IntegrationCommand = {
6871
7434
  command: "integration <command>",
6872
7435
  describe: "Integration management commands",
6873
- builder: (yargs34) => yargs34.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
7436
+ builder: (yargs36) => yargs36.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
6874
7437
  handler: () => {
6875
- yargs24.showHelp();
7438
+ yargs26.showHelp();
6876
7439
  }
6877
7440
  };
6878
7441
 
@@ -6900,7 +7463,7 @@ import { PostHog } from "posthog-node";
6900
7463
  // package.json
6901
7464
  var package_default = {
6902
7465
  name: "@uniformdev/cli",
6903
- version: "19.166.1",
7466
+ version: "19.167.1",
6904
7467
  description: "Uniform command line interface tool",
6905
7468
  license: "SEE LICENSE IN LICENSE.txt",
6906
7469
  main: "./cli.js",
@@ -6958,7 +7521,7 @@ var package_default = {
6958
7521
  slugify: "1.6.6",
6959
7522
  undici: "^6.10.1",
6960
7523
  yargs: "^17.6.2",
6961
- zod: "3.22.4"
7524
+ zod: "3.23.8"
6962
7525
  },
6963
7526
  devDependencies: {
6964
7527
  "@types/diff": "5.0.9",
@@ -7916,10 +8479,10 @@ var NewMeshCmd = {
7916
8479
  };
7917
8480
 
7918
8481
  // src/commands/optimize/index.ts
7919
- import yargs26 from "yargs";
8482
+ import yargs28 from "yargs";
7920
8483
 
7921
8484
  // src/commands/optimize/manifest.ts
7922
- import yargs25 from "yargs";
8485
+ import yargs27 from "yargs";
7923
8486
 
7924
8487
  // src/commands/optimize/manifest/download.ts
7925
8488
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -7934,7 +8497,7 @@ var UniformBaseUrl = "https://uniform.app";
7934
8497
  var module = {
7935
8498
  command: "download [output]",
7936
8499
  describe: "Download intent manifest",
7937
- builder: (yargs34) => yargs34.option("apiKey", {
8500
+ builder: (yargs36) => yargs36.option("apiKey", {
7938
8501
  alias: "k",
7939
8502
  demandOption: true,
7940
8503
  string: true,
@@ -8035,10 +8598,10 @@ var module2 = {
8035
8598
  command: "manifest <command>",
8036
8599
  describe: "Intent manifest commands",
8037
8600
  builder: () => {
8038
- return yargs25.command(download_default);
8601
+ return yargs27.command(download_default);
8039
8602
  },
8040
8603
  handler: () => {
8041
- yargs25.showHelp();
8604
+ yargs27.showHelp();
8042
8605
  }
8043
8606
  };
8044
8607
  var manifest_default = module2;
@@ -8049,29 +8612,29 @@ var OptimizeCommand = {
8049
8612
  aliases: ["opt"],
8050
8613
  describe: "Uniform Optimize commands",
8051
8614
  builder: () => {
8052
- return yargs26.command(manifest_default);
8615
+ return yargs28.command(manifest_default);
8053
8616
  },
8054
8617
  handler: () => {
8055
- yargs26.showHelp();
8618
+ yargs28.showHelp();
8056
8619
  }
8057
8620
  };
8058
8621
 
8059
8622
  // src/commands/project-map/index.ts
8060
- import yargs29 from "yargs";
8623
+ import yargs31 from "yargs";
8061
8624
 
8062
8625
  // src/commands/project-map/commands/projectMapDefinition.ts
8063
- import yargs27 from "yargs";
8626
+ import yargs29 from "yargs";
8064
8627
 
8065
8628
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
8066
8629
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
8067
8630
  var ProjectMapDefinitionGetModule = {
8068
8631
  command: "get <id>",
8069
8632
  describe: "Fetch a project map",
8070
- builder: (yargs34) => withFormatOptions(
8633
+ builder: (yargs36) => withFormatOptions(
8071
8634
  withConfiguration(
8072
8635
  withApiOptions(
8073
8636
  withProjectOptions(
8074
- yargs34.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
8637
+ yargs36.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
8075
8638
  )
8076
8639
  )
8077
8640
  )
@@ -8095,7 +8658,7 @@ var ProjectMapDefinitionListModule = {
8095
8658
  command: "list",
8096
8659
  describe: "List of project maps",
8097
8660
  aliases: ["ls"],
8098
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
8661
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
8099
8662
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8100
8663
  const fetch3 = nodeFetchProxy(proxy);
8101
8664
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8153,11 +8716,11 @@ function createProjectMapDefinitionEngineDataSource({
8153
8716
  var ProjectMapDefinitionPullModule = {
8154
8717
  command: "pull <directory>",
8155
8718
  describe: "Pulls all project maps to local files in a directory",
8156
- builder: (yargs34) => withConfiguration(
8719
+ builder: (yargs36) => withConfiguration(
8157
8720
  withApiOptions(
8158
8721
  withProjectOptions(
8159
8722
  withDiffOptions(
8160
- yargs34.positional("directory", {
8723
+ yargs36.positional("directory", {
8161
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.",
8162
8725
  type: "string"
8163
8726
  }).option("format", {
@@ -8235,11 +8798,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
8235
8798
  var ProjectMapDefinitionPushModule = {
8236
8799
  command: "push <directory>",
8237
8800
  describe: "Pushes all project maps from files in a directory or package to Uniform",
8238
- builder: (yargs34) => withConfiguration(
8801
+ builder: (yargs36) => withConfiguration(
8239
8802
  withApiOptions(
8240
8803
  withProjectOptions(
8241
8804
  withDiffOptions(
8242
- yargs34.positional("directory", {
8805
+ yargs36.positional("directory", {
8243
8806
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8244
8807
  type: "string"
8245
8808
  }).option("what-if", {
@@ -8306,9 +8869,9 @@ var ProjectMapDefinitionRemoveModule = {
8306
8869
  command: "remove <id>",
8307
8870
  aliases: ["delete", "rm"],
8308
8871
  describe: "Delete a project map",
8309
- builder: (yargs34) => withConfiguration(
8872
+ builder: (yargs36) => withConfiguration(
8310
8873
  withApiOptions(
8311
- withProjectOptions(yargs34.positional("id", { demandOption: true, describe: " UUID to delete" }))
8874
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
8312
8875
  )
8313
8876
  ),
8314
8877
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8324,10 +8887,10 @@ var ProjectMapDefinitionUpdateModule = {
8324
8887
  command: "update <filename>",
8325
8888
  aliases: ["put"],
8326
8889
  describe: "Insert or update a project map",
8327
- builder: (yargs34) => withConfiguration(
8890
+ builder: (yargs36) => withConfiguration(
8328
8891
  withApiOptions(
8329
8892
  withProjectOptions(
8330
- yargs34.positional("filename", { demandOption: true, describe: "Project map file to put" })
8893
+ yargs36.positional("filename", { demandOption: true, describe: "Project map file to put" })
8331
8894
  )
8332
8895
  )
8333
8896
  ),
@@ -8343,25 +8906,25 @@ var ProjectMapDefinitionUpdateModule = {
8343
8906
  var ProjectMapDefinitionModule = {
8344
8907
  command: "definition <command>",
8345
8908
  describe: "Commands for ProjectMap Definitions",
8346
- builder: (yargs34) => yargs34.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(),
8347
8910
  handler: () => {
8348
- yargs27.help();
8911
+ yargs29.help();
8349
8912
  }
8350
8913
  };
8351
8914
 
8352
8915
  // src/commands/project-map/commands/projectMapNode.ts
8353
- import yargs28 from "yargs";
8916
+ import yargs30 from "yargs";
8354
8917
 
8355
8918
  // src/commands/project-map/commands/ProjectMapNode/get.ts
8356
8919
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
8357
8920
  var ProjectMapNodeGetModule = {
8358
8921
  command: "get <id> <projectMapId>",
8359
8922
  describe: "Fetch a project map node",
8360
- builder: (yargs34) => withConfiguration(
8923
+ builder: (yargs36) => withConfiguration(
8361
8924
  withFormatOptions(
8362
8925
  withApiOptions(
8363
8926
  withProjectOptions(
8364
- yargs34.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" })
8365
8928
  )
8366
8929
  )
8367
8930
  )
@@ -8386,12 +8949,12 @@ var ProjectMapNodeListModule = {
8386
8949
  command: "list <projectMapId>",
8387
8950
  describe: "List project map nodes",
8388
8951
  aliases: ["ls"],
8389
- builder: (yargs34) => withConfiguration(
8952
+ builder: (yargs36) => withConfiguration(
8390
8953
  withFormatOptions(
8391
8954
  withApiOptions(
8392
8955
  withProjectOptions(
8393
8956
  withStateOptions(
8394
- yargs34.positional("projectMapId", {
8957
+ yargs36.positional("projectMapId", {
8395
8958
  demandOption: true,
8396
8959
  describe: "ProjectMap UUID to fetch from"
8397
8960
  })
@@ -8464,11 +9027,11 @@ function createProjectMapNodeEngineDataSource({
8464
9027
  var ProjectMapNodePullModule = {
8465
9028
  command: "pull <directory>",
8466
9029
  describe: "Pulls all project maps nodes to local files in a directory",
8467
- builder: (yargs34) => withConfiguration(
9030
+ builder: (yargs36) => withConfiguration(
8468
9031
  withApiOptions(
8469
9032
  withProjectOptions(
8470
9033
  withDiffOptions(
8471
- yargs34.positional("directory", {
9034
+ yargs36.positional("directory", {
8472
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.",
8473
9036
  type: "string"
8474
9037
  }).option("format", {
@@ -8550,11 +9113,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
8550
9113
  var ProjectMapNodePushModule = {
8551
9114
  command: "push <directory>",
8552
9115
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
8553
- builder: (yargs34) => withConfiguration(
9116
+ builder: (yargs36) => withConfiguration(
8554
9117
  withApiOptions(
8555
9118
  withProjectOptions(
8556
9119
  withDiffOptions(
8557
- yargs34.positional("directory", {
9120
+ yargs36.positional("directory", {
8558
9121
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8559
9122
  type: "string"
8560
9123
  }).option("what-if", {
@@ -8630,10 +9193,10 @@ var ProjectMapNodeRemoveModule = {
8630
9193
  command: "remove <id> <projectMapId>",
8631
9194
  aliases: ["delete", "rm"],
8632
9195
  describe: "Delete a project map node",
8633
- builder: (yargs34) => withConfiguration(
9196
+ builder: (yargs36) => withConfiguration(
8634
9197
  withApiOptions(
8635
9198
  withProjectOptions(
8636
- yargs34.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" })
8637
9200
  )
8638
9201
  )
8639
9202
  ),
@@ -8650,10 +9213,10 @@ var ProjectMapNodeUpdateModule = {
8650
9213
  command: "update <filename> <projectMapId>",
8651
9214
  aliases: ["put"],
8652
9215
  describe: "Insert or update a project map node",
8653
- builder: (yargs34) => withConfiguration(
9216
+ builder: (yargs36) => withConfiguration(
8654
9217
  withApiOptions(
8655
9218
  withProjectOptions(
8656
- yargs34.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" })
8657
9220
  )
8658
9221
  )
8659
9222
  ),
@@ -8669,9 +9232,9 @@ var ProjectMapNodeUpdateModule = {
8669
9232
  var ProjectMapNodeModule = {
8670
9233
  command: "node <command>",
8671
9234
  describe: "Commands for ProjectMap Nodes",
8672
- builder: (yargs34) => yargs34.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(),
8673
9236
  handler: () => {
8674
- yargs28.help();
9237
+ yargs30.help();
8675
9238
  }
8676
9239
  };
8677
9240
 
@@ -8680,28 +9243,28 @@ var ProjectMapCommand = {
8680
9243
  command: "project-map <command>",
8681
9244
  aliases: ["prm"],
8682
9245
  describe: "Uniform ProjectMap commands",
8683
- builder: (yargs34) => yargs34.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
9246
+ builder: (yargs36) => yargs36.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
8684
9247
  handler: () => {
8685
- yargs29.showHelp();
9248
+ yargs31.showHelp();
8686
9249
  }
8687
9250
  };
8688
9251
 
8689
9252
  // src/commands/redirect/index.ts
8690
- import yargs31 from "yargs";
9253
+ import yargs33 from "yargs";
8691
9254
 
8692
9255
  // src/commands/redirect/commands/redirect.ts
8693
- import yargs30 from "yargs";
9256
+ import yargs32 from "yargs";
8694
9257
 
8695
9258
  // src/commands/redirect/commands/RedirectDefinition/get.ts
8696
9259
  import { UncachedRedirectClient } from "@uniformdev/redirect";
8697
9260
  var RedirectDefinitionGetModule = {
8698
9261
  command: "get <id>",
8699
9262
  describe: "Fetch a redirect",
8700
- builder: (yargs34) => withConfiguration(
9263
+ builder: (yargs36) => withConfiguration(
8701
9264
  withFormatOptions(
8702
9265
  withApiOptions(
8703
9266
  withProjectOptions(
8704
- yargs34.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
9267
+ yargs36.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
8705
9268
  )
8706
9269
  )
8707
9270
  )
@@ -8725,7 +9288,7 @@ var RedirectDefinitionListModule = {
8725
9288
  command: "list",
8726
9289
  describe: "List of redirects",
8727
9290
  aliases: ["ls"],
8728
- builder: (yargs34) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs34)))),
9291
+ builder: (yargs36) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs36)))),
8729
9292
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8730
9293
  const fetch3 = nodeFetchProxy(proxy);
8731
9294
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8792,11 +9355,11 @@ function createRedirectDefinitionEngineDataSource({
8792
9355
  var RedirectDefinitionPullModule = {
8793
9356
  command: "pull <directory>",
8794
9357
  describe: "Pulls all redirects to local files in a directory",
8795
- builder: (yargs34) => withConfiguration(
9358
+ builder: (yargs36) => withConfiguration(
8796
9359
  withApiOptions(
8797
9360
  withProjectOptions(
8798
9361
  withDiffOptions(
8799
- yargs34.positional("directory", {
9362
+ yargs36.positional("directory", {
8800
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.",
8801
9364
  type: "string"
8802
9365
  }).option("format", {
@@ -8875,11 +9438,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
8875
9438
  var RedirectDefinitionPushModule = {
8876
9439
  command: "push <directory>",
8877
9440
  describe: "Pushes all redirects from files in a directory or package to Uniform",
8878
- builder: (yargs34) => withConfiguration(
9441
+ builder: (yargs36) => withConfiguration(
8879
9442
  withApiOptions(
8880
9443
  withProjectOptions(
8881
9444
  withDiffOptions(
8882
- yargs34.positional("directory", {
9445
+ yargs36.positional("directory", {
8883
9446
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
8884
9447
  type: "string"
8885
9448
  }).option("what-if", {
@@ -8946,9 +9509,9 @@ var RedirectDefinitionRemoveModule = {
8946
9509
  command: "remove <id>",
8947
9510
  aliases: ["delete", "rm"],
8948
9511
  describe: "Delete a redirect",
8949
- builder: (yargs34) => withConfiguration(
9512
+ builder: (yargs36) => withConfiguration(
8950
9513
  withApiOptions(
8951
- withProjectOptions(yargs34.positional("id", { demandOption: true, describe: " UUID to delete" }))
9514
+ withProjectOptions(yargs36.positional("id", { demandOption: true, describe: " UUID to delete" }))
8952
9515
  )
8953
9516
  ),
8954
9517
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8964,10 +9527,10 @@ var RedirectDefinitionUpdateModule = {
8964
9527
  command: "update <filename>",
8965
9528
  aliases: ["put"],
8966
9529
  describe: "Insert or update a redirect",
8967
- builder: (yargs34) => withConfiguration(
9530
+ builder: (yargs36) => withConfiguration(
8968
9531
  withApiOptions(
8969
9532
  withProjectOptions(
8970
- yargs34.positional("filename", { demandOption: true, describe: "Redirect file to put" })
9533
+ yargs36.positional("filename", { demandOption: true, describe: "Redirect file to put" })
8971
9534
  )
8972
9535
  )
8973
9536
  ),
@@ -8983,9 +9546,9 @@ var RedirectDefinitionUpdateModule = {
8983
9546
  var RedirectDefinitionModule = {
8984
9547
  command: "definition <command>",
8985
9548
  describe: "Commands for Redirect Definitions",
8986
- builder: (yargs34) => yargs34.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(),
8987
9550
  handler: () => {
8988
- yargs30.help();
9551
+ yargs32.help();
8989
9552
  }
8990
9553
  };
8991
9554
 
@@ -8994,14 +9557,14 @@ var RedirectCommand = {
8994
9557
  command: "redirect <command>",
8995
9558
  aliases: ["red"],
8996
9559
  describe: "Uniform Redirect commands",
8997
- builder: (yargs34) => yargs34.command(RedirectDefinitionModule).demandCommand(),
9560
+ builder: (yargs36) => yargs36.command(RedirectDefinitionModule).demandCommand(),
8998
9561
  handler: () => {
8999
- yargs31.showHelp();
9562
+ yargs33.showHelp();
9000
9563
  }
9001
9564
  };
9002
9565
 
9003
9566
  // src/commands/sync/index.ts
9004
- import yargs32 from "yargs";
9567
+ import yargs34 from "yargs";
9005
9568
 
9006
9569
  // src/commands/sync/commands/util.ts
9007
9570
  import ora2 from "ora";
@@ -9061,11 +9624,11 @@ function patchConsole(fn, ora3, replay = []) {
9061
9624
  var SyncPullModule = {
9062
9625
  command: "pull",
9063
9626
  describe: "Pulls whole project to local files in a directory",
9064
- builder: (yargs34) => withConfiguration(
9627
+ builder: (yargs36) => withConfiguration(
9065
9628
  withApiOptions(
9066
9629
  withProjectOptions(
9067
9630
  withDiffOptions(
9068
- yargs34.option("what-if", {
9631
+ yargs36.option("what-if", {
9069
9632
  alias: ["w"],
9070
9633
  describe: "What-if mode reports what would be done but changes no files",
9071
9634
  default: false,
@@ -9077,11 +9640,6 @@ var SyncPullModule = {
9077
9640
  ),
9078
9641
  handler: async ({ serialization, ...otherParams }) => {
9079
9642
  const config2 = serialization;
9080
- let isUsingDeprecatedPatternConfig = false;
9081
- if (config2.entitiesConfig.pattern) {
9082
- isUsingDeprecatedPatternConfig = true;
9083
- config2.entitiesConfig.componentPattern ??= config2.entitiesConfig.pattern;
9084
- }
9085
9643
  const enabledEntities = Object.entries({
9086
9644
  locale: LocalePullModule,
9087
9645
  asset: AssetPullModule,
@@ -9095,7 +9653,9 @@ var SyncPullModule = {
9095
9653
  enrichment: EnrichmentPullModule,
9096
9654
  aggregate: AggregatePullModule,
9097
9655
  component: ComponentPullModule,
9656
+ pattern: PatternPullModule,
9098
9657
  componentPattern: ComponentPatternPullModule,
9658
+ compositionPattern: CompositionPatternPullModule,
9099
9659
  composition: CompositionPullModule,
9100
9660
  projectMapDefinition: ProjectMapDefinitionPullModule,
9101
9661
  projectMapNode: ProjectMapNodePullModule,
@@ -9124,9 +9684,10 @@ var SyncPullModule = {
9124
9684
  state: entityConfigSupportsPullState(entityConfig) ? entityConfig.state ?? 0 : 0,
9125
9685
  format: getFormat(entityType, config2),
9126
9686
  onlyCompositions: entityType === "composition" ? true : void 0,
9127
- onlyPatterns: entityType === "componentPattern" ? true : void 0,
9687
+ onlyPatterns: ["componentPattern", "compositionPattern"].includes(entityType) ? true : void 0,
9688
+ patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
9128
9689
  mode: getPullMode(entityType, config2),
9129
- directory: getPullFilename(entityType, config2, { isUsingDeprecatedPatternConfig }),
9690
+ directory: getPullFilename(entityType, config2),
9130
9691
  allowEmptySource: config2.allowEmptySource
9131
9692
  }),
9132
9693
  {
@@ -9153,13 +9714,11 @@ var getPullMode = (entityType, config2) => {
9153
9714
  entityType
9154
9715
  });
9155
9716
  };
9156
- var getPullFilename = (entityType, config2, { isUsingDeprecatedPatternConfig }) => {
9717
+ var getPullFilename = (entityType, config2) => {
9157
9718
  return getDirectoryOrFilename({
9158
9719
  operation: "pull",
9159
9720
  config: config2,
9160
- entityType,
9161
- // This fallback can be removed when publishing a major release
9162
- defaultEntityFolderName: isUsingDeprecatedPatternConfig && entityType === "componentPattern" ? "pattern" : void 0
9721
+ entityType
9163
9722
  });
9164
9723
  };
9165
9724
  var getFormat = (entityType, config2) => {
@@ -9175,11 +9734,11 @@ var getFormat = (entityType, config2) => {
9175
9734
  var SyncPushModule = {
9176
9735
  command: "push",
9177
9736
  describe: "Pushes whole project data from files in a directory or package to Uniform",
9178
- builder: (yargs34) => withConfiguration(
9737
+ builder: (yargs36) => withConfiguration(
9179
9738
  withApiOptions(
9180
9739
  withProjectOptions(
9181
9740
  withDiffOptions(
9182
- yargs34.option("what-if", {
9741
+ yargs36.option("what-if", {
9183
9742
  alias: ["w"],
9184
9743
  describe: "What-if mode reports what would be done but changes nothing",
9185
9744
  default: false,
@@ -9191,11 +9750,6 @@ var SyncPushModule = {
9191
9750
  ),
9192
9751
  handler: async ({ serialization, ...otherParams }) => {
9193
9752
  const config2 = serialization;
9194
- let isUsingDeprecatedPatternConfig = false;
9195
- if (config2.entitiesConfig.pattern) {
9196
- isUsingDeprecatedPatternConfig = true;
9197
- config2.entitiesConfig.componentPattern ??= config2.entitiesConfig.pattern;
9198
- }
9199
9753
  const enabledEntities = Object.entries({
9200
9754
  locale: LocalePushModule,
9201
9755
  asset: AssetPushModule,
@@ -9209,7 +9763,9 @@ var SyncPushModule = {
9209
9763
  enrichment: EnrichmentPushModule,
9210
9764
  aggregate: AggregatePushModule,
9211
9765
  component: ComponentPushModule,
9766
+ pattern: PatternPushModule,
9212
9767
  componentPattern: ComponentPatternPushModule,
9768
+ compositionPattern: CompositionPatternPushModule,
9213
9769
  composition: CompositionPushModule,
9214
9770
  projectMapDefinition: ProjectMapDefinitionPushModule,
9215
9771
  projectMapNode: ProjectMapNodePushModule,
@@ -9234,9 +9790,10 @@ var SyncPushModule = {
9234
9790
  state: 0,
9235
9791
  format: getFormat2(entityType, config2),
9236
9792
  onlyCompositions: entityType === "composition" ? true : void 0,
9237
- onlyPatterns: entityType === "componentPattern" ? true : void 0,
9793
+ onlyPatterns: ["componentPattern", "compositionPattern"].includes(entityType) ? true : void 0,
9794
+ patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
9238
9795
  mode: getPushMode(entityType, config2),
9239
- directory: getPushFilename(entityType, config2, { isUsingDeprecatedPatternConfig }),
9796
+ directory: getPushFilename(entityType, config2),
9240
9797
  allowEmptySource: config2.allowEmptySource
9241
9798
  }),
9242
9799
  {
@@ -9256,6 +9813,9 @@ var SyncPushModule = {
9256
9813
  if (config2.entitiesConfig?.componentPattern && config2.entitiesConfig?.componentPattern?.push?.disabled !== true && config2.entitiesConfig?.componentPattern?.publish) {
9257
9814
  await ComponentPatternPublishModule.handler({ ...otherParams, all: true });
9258
9815
  }
9816
+ if (config2.entitiesConfig?.compositionPattern && config2.entitiesConfig?.compositionPattern?.push?.disabled !== true && config2.entitiesConfig?.compositionPattern?.publish) {
9817
+ await CompositionPatternPublishModule.handler({ ...otherParams, all: true });
9818
+ }
9259
9819
  if (config2.entitiesConfig?.composition && config2.entitiesConfig?.composition?.push?.disabled !== true && config2.entitiesConfig?.composition?.publish) {
9260
9820
  await CompositionPublishModule.handler({ ...otherParams, all: true });
9261
9821
  }
@@ -9275,13 +9835,11 @@ var getPushMode = (entityType, config2) => {
9275
9835
  entityType
9276
9836
  });
9277
9837
  };
9278
- var getPushFilename = (entityType, config2, { isUsingDeprecatedPatternConfig }) => {
9838
+ var getPushFilename = (entityType, config2) => {
9279
9839
  return getDirectoryOrFilename({
9280
9840
  operation: "push",
9281
9841
  config: config2,
9282
- entityType,
9283
- // This fallback can be removed when publishing a major release
9284
- defaultEntityFolderName: isUsingDeprecatedPatternConfig && entityType === "componentPattern" ? "pattern" : void 0
9842
+ entityType
9285
9843
  });
9286
9844
  };
9287
9845
  var getFormat2 = (entityType, config2) => {
@@ -9297,9 +9855,9 @@ var getFormat2 = (entityType, config2) => {
9297
9855
  var SyncCommand = {
9298
9856
  command: "sync <command>",
9299
9857
  describe: "Uniform Sync commands",
9300
- builder: (yargs34) => yargs34.command(SyncPullModule).command(SyncPushModule).demandCommand(),
9858
+ builder: (yargs36) => yargs36.command(SyncPullModule).command(SyncPushModule).demandCommand(),
9301
9859
  handler: () => {
9302
- yargs32.showHelp();
9860
+ yargs34.showHelp();
9303
9861
  }
9304
9862
  };
9305
9863
 
@@ -9564,7 +10122,7 @@ First found was: v${firstVersion}`;
9564
10122
 
9565
10123
  // src/index.ts
9566
10124
  dotenv.config();
9567
- var yarggery = yargs33(hideBin(process.argv));
10125
+ var yarggery = yargs35(hideBin(process.argv));
9568
10126
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
9569
10127
  var configuration = loadConfig(inlineConfigurationFilePath || null);
9570
10128
  yarggery.option("verbose", {