@uniformdev/cli 19.137.1-alpha.4 → 19.138.1-alpha.4

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
@@ -16,11 +16,11 @@ var __dirname = /* @__PURE__ */ getDirname();
16
16
 
17
17
  // src/index.ts
18
18
  import * as dotenv from "dotenv";
19
- import yargs32 from "yargs";
19
+ import yargs31 from "yargs";
20
20
  import { hideBin } from "yargs/helpers";
21
21
 
22
22
  // src/commands/canvas/index.ts
23
- import yargs13 from "yargs";
23
+ import yargs12 from "yargs";
24
24
 
25
25
  // src/commands/canvas/commands/asset.ts
26
26
  import yargs from "yargs";
@@ -136,14 +136,14 @@ import { mkdirSync, readFileSync, writeFileSync } from "fs";
136
136
  import { dump, load } from "js-yaml";
137
137
  import { dirname, extname, isAbsolute, resolve, sep } from "path";
138
138
  import { fetch as undiciFetch, ProxyAgent } from "undici";
139
- function withConfiguration(yargs33) {
140
- return yargs33.option("serialization", {
139
+ function withConfiguration(yargs32) {
140
+ return yargs32.option("serialization", {
141
141
  skipValidation: true,
142
142
  hidden: true
143
143
  });
144
144
  }
145
- function withApiOptions(yargs33) {
146
- return yargs33.option("apiKey", {
145
+ function withApiOptions(yargs32) {
146
+ return yargs32.option("apiKey", {
147
147
  describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
148
148
  default: process.env.UNIFORM_CLI_API_KEY ?? // deprecated
149
149
  process.env.CANVAS_CLI_API_KEY ?? // deprecated
@@ -182,8 +182,8 @@ function nodeFetchProxy(proxy) {
182
182
  };
183
183
  return wrappedFetch;
184
184
  }
185
- function withProjectOptions(yargs33) {
186
- return yargs33.option("project", {
185
+ function withProjectOptions(yargs32) {
186
+ return yargs32.option("project", {
187
187
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
188
188
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? // deprecated
189
189
  process.env.CANVAS_CLI_PROJECT_ID ?? // deprecated
@@ -193,8 +193,8 @@ function withProjectOptions(yargs33) {
193
193
  alias: ["p"]
194
194
  });
195
195
  }
196
- function withTeamOptions(yargs33) {
197
- return yargs33.option("team", {
196
+ function withTeamOptions(yargs32) {
197
+ return yargs32.option("team", {
198
198
  describe: "Uniform team ID. Defaults to UNIFORM_CLI_TEAM_ID or UNIFORM_TEAM_ID env. Supports dotenv.",
199
199
  default: process.env.UNIFORM_CLI_TEAM_ID ?? process.env.UNIFORM_TEAM_ID,
200
200
  demandOption: true,
@@ -202,8 +202,8 @@ function withTeamOptions(yargs33) {
202
202
  alias: ["p"]
203
203
  });
204
204
  }
205
- function withFormatOptions(yargs33) {
206
- return yargs33.option("format", {
205
+ function withFormatOptions(yargs32) {
206
+ return yargs32.option("format", {
207
207
  alias: ["f"],
208
208
  describe: "Output format",
209
209
  default: "yaml",
@@ -215,8 +215,8 @@ function withFormatOptions(yargs33) {
215
215
  type: "string"
216
216
  });
217
217
  }
218
- function withDiffOptions(yargs33) {
219
- return yargs33.option("diff", {
218
+ function withDiffOptions(yargs32) {
219
+ return yargs32.option("diff", {
220
220
  describe: "Whether to show diffs in stdout. off = no diffs; update = on for updates; on = updates, creates, deletes. Can be set by UNIFORM_CLI_DIFF_MODE environment variable.",
221
221
  default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
222
222
  type: "string",
@@ -641,12 +641,12 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
641
641
  var AssetGetModule = {
642
642
  command: "get <id>",
643
643
  describe: "Get an asset",
644
- builder: (yargs33) => withConfiguration(
644
+ builder: (yargs32) => withConfiguration(
645
645
  withFormatOptions(
646
646
  withApiOptions(
647
647
  withProjectOptions(
648
648
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
649
- yargs33.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
649
+ yargs32.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
650
650
  )
651
651
  )
652
652
  )
@@ -667,7 +667,7 @@ import { UncachedAssetClient as UncachedAssetClient2 } from "@uniformdev/assets"
667
667
  var AssetListModule = {
668
668
  command: "list",
669
669
  describe: "List assets",
670
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
670
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
671
671
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
672
672
  const fetch3 = nodeFetchProxy(proxy);
673
673
  const client = new UncachedAssetClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1023,8 +1023,8 @@ function prepCompositionForDisk(composition) {
1023
1023
  delete prepped.state;
1024
1024
  return prepped;
1025
1025
  }
1026
- function withStateOptions(yargs33) {
1027
- return yargs33.option("state", {
1026
+ function withStateOptions(yargs32) {
1027
+ return yargs32.option("state", {
1028
1028
  type: "string",
1029
1029
  describe: `Composition state to fetch.`,
1030
1030
  choices: ["preview", "published"],
@@ -1090,11 +1090,11 @@ function writeCanvasPackage(filename, packageContents) {
1090
1090
  var AssetPullModule = {
1091
1091
  command: "pull <directory>",
1092
1092
  describe: "Pulls all assets to local files in a directory",
1093
- builder: (yargs33) => withConfiguration(
1093
+ builder: (yargs32) => withConfiguration(
1094
1094
  withApiOptions(
1095
1095
  withProjectOptions(
1096
1096
  withDiffOptions(
1097
- yargs33.positional("directory", {
1097
+ yargs32.positional("directory", {
1098
1098
  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.",
1099
1099
  type: "string"
1100
1100
  }).option("format", {
@@ -1213,11 +1213,11 @@ import { UncachedFileClient as UncachedFileClient2 } from "@uniformdev/files";
1213
1213
  var AssetPushModule = {
1214
1214
  command: "push <directory>",
1215
1215
  describe: "Pushes all assets from files in a directory to Uniform",
1216
- builder: (yargs33) => withConfiguration(
1216
+ builder: (yargs32) => withConfiguration(
1217
1217
  withApiOptions(
1218
1218
  withProjectOptions(
1219
1219
  withDiffOptions(
1220
- yargs33.positional("directory", {
1220
+ yargs32.positional("directory", {
1221
1221
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
1222
1222
  type: "string"
1223
1223
  }).option("what-if", {
@@ -1317,9 +1317,9 @@ var AssetRemoveModule = {
1317
1317
  command: "remove <id>",
1318
1318
  aliases: ["delete", "rm"],
1319
1319
  describe: "Delete an asset",
1320
- builder: (yargs33) => withConfiguration(
1320
+ builder: (yargs32) => withConfiguration(
1321
1321
  withApiOptions(
1322
- withProjectOptions(yargs33.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1322
+ withProjectOptions(yargs32.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1323
1323
  )
1324
1324
  ),
1325
1325
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -1335,10 +1335,10 @@ var AssetUpdateModule = {
1335
1335
  command: "update <filename>",
1336
1336
  aliases: ["put"],
1337
1337
  describe: "Insert or update an asset",
1338
- builder: (yargs33) => withConfiguration(
1338
+ builder: (yargs32) => withConfiguration(
1339
1339
  withApiOptions(
1340
1340
  withProjectOptions(
1341
- yargs33.positional("filename", { demandOption: true, describe: "Asset file to put" })
1341
+ yargs32.positional("filename", { demandOption: true, describe: "Asset file to put" })
1342
1342
  )
1343
1343
  )
1344
1344
  ),
@@ -1354,7 +1354,7 @@ var AssetUpdateModule = {
1354
1354
  var AssetModule = {
1355
1355
  command: "asset <command>",
1356
1356
  describe: "Commands for Assets",
1357
- builder: (yargs33) => yargs33.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1357
+ builder: (yargs32) => yargs32.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1358
1358
  handler: () => {
1359
1359
  yargs.help();
1360
1360
  }
@@ -1368,11 +1368,11 @@ import { UncachedCategoryClient } from "@uniformdev/canvas";
1368
1368
  var CategoryGetModule = {
1369
1369
  command: "get <id>",
1370
1370
  describe: "Fetch a category",
1371
- builder: (yargs33) => withConfiguration(
1371
+ builder: (yargs32) => withConfiguration(
1372
1372
  withFormatOptions(
1373
1373
  withApiOptions(
1374
1374
  withProjectOptions(
1375
- yargs33.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1375
+ yargs32.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1376
1376
  )
1377
1377
  )
1378
1378
  )
@@ -1397,7 +1397,7 @@ var CategoryListModule = {
1397
1397
  command: "list",
1398
1398
  describe: "List categories",
1399
1399
  aliases: ["ls"],
1400
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33.options({}))))),
1400
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32.options({}))))),
1401
1401
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
1402
1402
  const fetch3 = nodeFetchProxy(proxy);
1403
1403
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1446,11 +1446,11 @@ function createCategoriesEngineDataSource({
1446
1446
  var CategoryPullModule = {
1447
1447
  command: "pull <directory>",
1448
1448
  describe: "Pulls all categories to local files in a directory",
1449
- builder: (yargs33) => withConfiguration(
1449
+ builder: (yargs32) => withConfiguration(
1450
1450
  withApiOptions(
1451
1451
  withProjectOptions(
1452
1452
  withDiffOptions(
1453
- yargs33.positional("directory", {
1453
+ yargs32.positional("directory", {
1454
1454
  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.",
1455
1455
  type: "string"
1456
1456
  }).option("format", {
@@ -1527,11 +1527,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
1527
1527
  var CategoryPushModule = {
1528
1528
  command: "push <directory>",
1529
1529
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1530
- builder: (yargs33) => withConfiguration(
1530
+ builder: (yargs32) => withConfiguration(
1531
1531
  withApiOptions(
1532
1532
  withProjectOptions(
1533
1533
  withDiffOptions(
1534
- yargs33.positional("directory", {
1534
+ yargs32.positional("directory", {
1535
1535
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1536
1536
  type: "string"
1537
1537
  }).option("what-if", {
@@ -1597,10 +1597,10 @@ var CategoryRemoveModule = {
1597
1597
  command: "remove <id>",
1598
1598
  aliases: ["delete", "rm"],
1599
1599
  describe: "Delete a category",
1600
- builder: (yargs33) => withConfiguration(
1600
+ builder: (yargs32) => withConfiguration(
1601
1601
  withApiOptions(
1602
1602
  withProjectOptions(
1603
- yargs33.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1603
+ yargs32.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1604
1604
  )
1605
1605
  )
1606
1606
  ),
@@ -1617,10 +1617,10 @@ var CategoryUpdateModule = {
1617
1617
  command: "update <filename>",
1618
1618
  aliases: ["put"],
1619
1619
  describe: "Insert or update a category",
1620
- builder: (yargs33) => withConfiguration(
1620
+ builder: (yargs32) => withConfiguration(
1621
1621
  withApiOptions(
1622
1622
  withProjectOptions(
1623
- yargs33.positional("filename", { demandOption: true, describe: "Category file to put" })
1623
+ yargs32.positional("filename", { demandOption: true, describe: "Category file to put" })
1624
1624
  )
1625
1625
  )
1626
1626
  ),
@@ -1637,7 +1637,7 @@ var CategoryModule = {
1637
1637
  command: "category <command>",
1638
1638
  aliases: ["cat"],
1639
1639
  describe: "Commands for Canvas categories",
1640
- builder: (yargs33) => yargs33.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1640
+ builder: (yargs32) => yargs32.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1641
1641
  handler: () => {
1642
1642
  yargs2.help();
1643
1643
  }
@@ -1658,11 +1658,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
1658
1658
  var ComponentGetModule = {
1659
1659
  command: "get <id>",
1660
1660
  describe: "Fetch a component definition",
1661
- builder: (yargs33) => withConfiguration(
1661
+ builder: (yargs32) => withConfiguration(
1662
1662
  withFormatOptions(
1663
1663
  withApiOptions(
1664
1664
  withProjectOptions(
1665
- yargs33.positional("id", {
1665
+ yargs32.positional("id", {
1666
1666
  demandOption: true,
1667
1667
  describe: "Component definition public ID to fetch"
1668
1668
  })
@@ -1696,11 +1696,11 @@ var ComponentListModule = {
1696
1696
  command: "list",
1697
1697
  describe: "List component definitions",
1698
1698
  aliases: ["ls"],
1699
- builder: (yargs33) => withConfiguration(
1699
+ builder: (yargs32) => withConfiguration(
1700
1700
  withFormatOptions(
1701
1701
  withApiOptions(
1702
1702
  withProjectOptions(
1703
- yargs33.options({
1703
+ yargs32.options({
1704
1704
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1705
1705
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1706
1706
  })
@@ -1755,11 +1755,11 @@ function createComponentDefinitionEngineDataSource({
1755
1755
  var ComponentPullModule = {
1756
1756
  command: "pull <directory>",
1757
1757
  describe: "Pulls all component definitions to local files in a directory",
1758
- builder: (yargs33) => withConfiguration(
1758
+ builder: (yargs32) => withConfiguration(
1759
1759
  withApiOptions(
1760
1760
  withProjectOptions(
1761
1761
  withDiffOptions(
1762
- yargs33.positional("directory", {
1762
+ yargs32.positional("directory", {
1763
1763
  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.",
1764
1764
  type: "string"
1765
1765
  }).option("format", {
@@ -1837,11 +1837,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1837
1837
  var ComponentPushModule = {
1838
1838
  command: "push <directory>",
1839
1839
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1840
- builder: (yargs33) => withConfiguration(
1840
+ builder: (yargs32) => withConfiguration(
1841
1841
  withApiOptions(
1842
1842
  withProjectOptions(
1843
1843
  withDiffOptions(
1844
- yargs33.positional("directory", {
1844
+ yargs32.positional("directory", {
1845
1845
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1846
1846
  type: "string"
1847
1847
  }).option("what-if", {
@@ -1908,10 +1908,10 @@ var ComponentRemoveModule = {
1908
1908
  command: "remove <id>",
1909
1909
  aliases: ["delete", "rm"],
1910
1910
  describe: "Delete a component definition",
1911
- builder: (yargs33) => withConfiguration(
1911
+ builder: (yargs32) => withConfiguration(
1912
1912
  withApiOptions(
1913
1913
  withProjectOptions(
1914
- yargs33.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1914
+ yargs32.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1915
1915
  )
1916
1916
  )
1917
1917
  ),
@@ -1928,10 +1928,10 @@ var ComponentUpdateModule = {
1928
1928
  command: "update <filename>",
1929
1929
  aliases: ["put"],
1930
1930
  describe: "Insert or update a component definition",
1931
- builder: (yargs33) => withConfiguration(
1931
+ builder: (yargs32) => withConfiguration(
1932
1932
  withApiOptions(
1933
1933
  withProjectOptions(
1934
- yargs33.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1934
+ yargs32.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1935
1935
  )
1936
1936
  )
1937
1937
  ),
@@ -1948,13 +1948,13 @@ var ComponentModule = {
1948
1948
  command: "component <command>",
1949
1949
  aliases: ["def"],
1950
1950
  describe: "Commands for Canvas component definitions",
1951
- builder: (yargs33) => yargs33.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1951
+ builder: (yargs32) => yargs32.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1952
1952
  handler: () => {
1953
1953
  yargs3.help();
1954
1954
  }
1955
1955
  };
1956
1956
 
1957
- // src/commands/canvas/commands/componentPattern.ts
1957
+ // src/commands/canvas/commands/composition.ts
1958
1958
  import yargs4 from "yargs";
1959
1959
 
1960
1960
  // src/commands/canvas/commands/composition/get.ts
@@ -1962,12 +1962,12 @@ import { UncachedCanvasClient as UncachedCanvasClient7 } from "@uniformdev/canva
1962
1962
  var CompositionGetModule = {
1963
1963
  command: "get <id>",
1964
1964
  describe: "Fetch a composition",
1965
- builder: (yargs33) => withFormatOptions(
1965
+ builder: (yargs32) => withFormatOptions(
1966
1966
  withConfiguration(
1967
1967
  withApiOptions(
1968
1968
  withProjectOptions(
1969
1969
  withStateOptions(
1970
- yargs33.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1970
+ yargs32.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1971
1971
  resolvePatterns: {
1972
1972
  type: "boolean",
1973
1973
  default: false,
@@ -2032,24 +2032,18 @@ var CompositionGetModule = {
2032
2032
  }
2033
2033
  };
2034
2034
 
2035
- // src/commands/canvas/commands/componentPattern/get.ts
2036
- var ComponentPatternGetModule = {
2037
- ...CompositionGetModule,
2038
- describe: "Fetch a component pattern"
2039
- };
2040
-
2041
2035
  // src/commands/canvas/commands/composition/list.ts
2042
2036
  import { UncachedCanvasClient as UncachedCanvasClient8 } from "@uniformdev/canvas";
2043
2037
  var CompositionListModule = {
2044
2038
  command: "list",
2045
2039
  describe: "List compositions",
2046
2040
  aliases: ["ls"],
2047
- builder: (yargs33) => withFormatOptions(
2041
+ builder: (yargs32) => withFormatOptions(
2048
2042
  withConfiguration(
2049
2043
  withApiOptions(
2050
2044
  withProjectOptions(
2051
2045
  withStateOptions(
2052
- yargs33.options({
2046
+ yargs32.options({
2053
2047
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2054
2048
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2055
2049
  resolvePatterns: {
@@ -2115,49 +2109,6 @@ var CompositionListModule = {
2115
2109
  }
2116
2110
  };
2117
2111
 
2118
- // src/commands/canvas/commands/componentPattern/list.ts
2119
- var ComponentPatternListModule = {
2120
- ...CompositionListModule,
2121
- describe: "List component patterns",
2122
- builder: (yargs33) => withFormatOptions(
2123
- withConfiguration(
2124
- withApiOptions(
2125
- withProjectOptions(
2126
- withStateOptions(
2127
- yargs33.options({
2128
- offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2129
- limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2130
- resolvePatterns: {
2131
- type: "boolean",
2132
- default: false,
2133
- describe: "Resolve component pattern references in the composition"
2134
- },
2135
- resolveOverrides: {
2136
- type: "boolean",
2137
- default: false,
2138
- describe: "Resolves component pattern overrides in the composition and removes override definition data"
2139
- },
2140
- onlyPatterns: {
2141
- describe: "Only pulling component patterns and not compositions",
2142
- // This default differentiate this list command from composition list command
2143
- default: true,
2144
- type: "boolean",
2145
- hidden: true
2146
- },
2147
- componentIDs: {
2148
- alias: ["componentIDs"],
2149
- type: "boolean",
2150
- default: false,
2151
- describe: "Include individual component UIDs"
2152
- }
2153
- })
2154
- )
2155
- )
2156
- )
2157
- )
2158
- )
2159
- };
2160
-
2161
2112
  // src/commands/canvas/commands/composition/publish.ts
2162
2113
  import { UncachedCanvasClient as UncachedCanvasClient9 } from "@uniformdev/canvas";
2163
2114
 
@@ -2213,11 +2164,11 @@ function createComponentInstanceEngineDataSource({
2213
2164
  var CompositionPublishModule = {
2214
2165
  command: "publish [ids]",
2215
2166
  describe: "Publishes composition(s)",
2216
- builder: (yargs33) => withConfiguration(
2167
+ builder: (yargs32) => withConfiguration(
2217
2168
  withApiOptions(
2218
2169
  withProjectOptions(
2219
2170
  withDiffOptions(
2220
- yargs33.positional("ids", {
2171
+ yargs32.positional("ids", {
2221
2172
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2222
2173
  type: "string"
2223
2174
  }).option("all", {
@@ -2287,60 +2238,18 @@ var CompositionPublishModule = {
2287
2238
  }
2288
2239
  };
2289
2240
 
2290
- // src/commands/canvas/commands/componentPattern/publish.ts
2291
- var ComponentPatternPublishModule = {
2292
- ...CompositionPublishModule,
2293
- describe: "Publishes component pattern(s)",
2294
- builder: (yargs33) => withConfiguration(
2295
- withApiOptions(
2296
- withProjectOptions(
2297
- withDiffOptions(
2298
- yargs33.positional("ids", {
2299
- describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2300
- type: "string"
2301
- }).option("all", {
2302
- alias: ["a"],
2303
- describe: "Publishes all component patterns. Use compositionId to publish one instead.",
2304
- default: false,
2305
- type: "boolean"
2306
- }).option("what-if", {
2307
- alias: ["w"],
2308
- describe: "What-if mode reports what would be done but does not perform any un-publishing",
2309
- default: false,
2310
- type: "boolean"
2311
- }).option("publishingState", {
2312
- describe: 'Publishing state to update to. Can be "published" or "preview".',
2313
- default: "published",
2314
- type: "string",
2315
- hidden: true
2316
- }).option("onlyCompositions", {
2317
- describe: "Only publishing compositions and not component patterns",
2318
- default: false,
2319
- type: "boolean"
2320
- }).option("onlyPatterns", {
2321
- describe: "Only pulling component patterns and not compositions",
2322
- default: true,
2323
- type: "boolean",
2324
- hidden: true
2325
- })
2326
- )
2327
- )
2328
- )
2329
- )
2330
- };
2331
-
2332
2241
  // src/commands/canvas/commands/composition/pull.ts
2333
2242
  import { UncachedCanvasClient as UncachedCanvasClient10 } from "@uniformdev/canvas";
2334
2243
  import { UncachedFileClient as UncachedFileClient3 } from "@uniformdev/files";
2335
2244
  var CompositionPullModule = {
2336
2245
  command: "pull <directory>",
2337
2246
  describe: "Pulls all compositions to local files in a directory",
2338
- builder: (yargs33) => withConfiguration(
2247
+ builder: (yargs32) => withConfiguration(
2339
2248
  withApiOptions(
2340
2249
  withProjectOptions(
2341
2250
  withStateOptions(
2342
2251
  withDiffOptions(
2343
- yargs33.positional("directory", {
2252
+ yargs32.positional("directory", {
2344
2253
  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.",
2345
2254
  type: "string"
2346
2255
  }).option("format", {
@@ -2438,61 +2347,18 @@ var CompositionPullModule = {
2438
2347
  }
2439
2348
  };
2440
2349
 
2441
- // src/commands/canvas/commands/componentPattern/pull.ts
2442
- var ComponentPatternPullModule = {
2443
- ...CompositionPullModule,
2444
- describe: "Pulls all component patterns to local files in a directory",
2445
- builder: (yargs33) => withConfiguration(
2446
- withApiOptions(
2447
- withProjectOptions(
2448
- withStateOptions(
2449
- withDiffOptions(
2450
- yargs33.positional("directory", {
2451
- 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.",
2452
- type: "string"
2453
- }).option("format", {
2454
- alias: ["f"],
2455
- describe: "Output format",
2456
- default: "yaml",
2457
- choices: ["yaml", "json"],
2458
- type: "string"
2459
- }).option("onlyPatterns", {
2460
- describe: "Only pulling component patterns and not compositions",
2461
- // This default differentiate this list command from composition list command
2462
- default: true,
2463
- type: "boolean",
2464
- hidden: true
2465
- }).option("what-if", {
2466
- alias: ["w"],
2467
- describe: "What-if mode reports what would be done but changes no files",
2468
- default: false,
2469
- type: "boolean"
2470
- }).option("mode", {
2471
- alias: ["m"],
2472
- 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',
2473
- choices: ["create", "createOrUpdate", "mirror"],
2474
- default: "mirror",
2475
- type: "string"
2476
- })
2477
- )
2478
- )
2479
- )
2480
- )
2481
- )
2482
- };
2483
-
2484
2350
  // src/commands/canvas/commands/composition/push.ts
2485
2351
  import { UncachedCanvasClient as UncachedCanvasClient11 } from "@uniformdev/canvas";
2486
2352
  import { UncachedFileClient as UncachedFileClient4 } from "@uniformdev/files";
2487
2353
  var CompositionPushModule = {
2488
2354
  command: "push <directory>",
2489
2355
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2490
- builder: (yargs33) => withConfiguration(
2356
+ builder: (yargs32) => withConfiguration(
2491
2357
  withApiOptions(
2492
2358
  withProjectOptions(
2493
2359
  withStateOptions(
2494
2360
  withDiffOptions(
2495
- yargs33.positional("directory", {
2361
+ yargs32.positional("directory", {
2496
2362
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2497
2363
  type: "string"
2498
2364
  }).option("what-if", {
@@ -2577,53 +2443,16 @@ var CompositionPushModule = {
2577
2443
  }
2578
2444
  };
2579
2445
 
2580
- // src/commands/canvas/commands/componentPattern/push.ts
2581
- var ComponentPatternPushModule = {
2582
- ...CompositionPushModule,
2583
- describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
2584
- builder: (yargs33) => withConfiguration(
2585
- withApiOptions(
2586
- withProjectOptions(
2587
- withStateOptions(
2588
- withDiffOptions(
2589
- yargs33.positional("directory", {
2590
- describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
2591
- type: "string"
2592
- }).option("what-if", {
2593
- alias: ["w"],
2594
- describe: "What-if mode reports what would be done but changes nothing",
2595
- default: false,
2596
- type: "boolean"
2597
- }).option("mode", {
2598
- alias: ["m"],
2599
- 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',
2600
- choices: ["create", "createOrUpdate", "mirror"],
2601
- default: "mirror",
2602
- type: "string"
2603
- }).option("onlyPatterns", {
2604
- describe: "Only pulling component patterns and not compositions",
2605
- // This default differentiate this list command from composition list command
2606
- default: true,
2607
- type: "boolean",
2608
- hidden: true
2609
- })
2610
- )
2611
- )
2612
- )
2613
- )
2614
- )
2615
- };
2616
-
2617
2446
  // src/commands/canvas/commands/composition/remove.ts
2618
2447
  import { UncachedCanvasClient as UncachedCanvasClient12 } from "@uniformdev/canvas";
2619
2448
  var CompositionRemoveModule = {
2620
2449
  command: "remove <id>",
2621
2450
  aliases: ["delete", "rm"],
2622
2451
  describe: "Delete a composition",
2623
- builder: (yargs33) => withConfiguration(
2452
+ builder: (yargs32) => withConfiguration(
2624
2453
  withApiOptions(
2625
2454
  withProjectOptions(
2626
- yargs33.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2455
+ yargs32.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2627
2456
  )
2628
2457
  )
2629
2458
  ),
@@ -2634,22 +2463,16 @@ var CompositionRemoveModule = {
2634
2463
  }
2635
2464
  };
2636
2465
 
2637
- // src/commands/canvas/commands/componentPattern/remove.ts
2638
- var ComponentPatternRemoveModule = {
2639
- ...CompositionRemoveModule,
2640
- describe: "Delete a component pattern"
2641
- };
2642
-
2643
2466
  // src/commands/canvas/commands/composition/unpublish.ts
2644
2467
  import { CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2, UncachedCanvasClient as UncachedCanvasClient13 } from "@uniformdev/canvas";
2645
2468
  import { diffJson as diffJson2 } from "diff";
2646
2469
  var CompositionUnpublishModule = {
2647
2470
  command: "unpublish [ids]",
2648
2471
  describe: "Unpublish a composition(s)",
2649
- builder: (yargs33) => withConfiguration(
2472
+ builder: (yargs32) => withConfiguration(
2650
2473
  withApiOptions(
2651
2474
  withProjectOptions(
2652
- yargs33.positional("ids", {
2475
+ yargs32.positional("ids", {
2653
2476
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2654
2477
  type: "string"
2655
2478
  }).option("all", {
@@ -2737,53 +2560,17 @@ var CompositionUnpublishModule = {
2737
2560
  }
2738
2561
  };
2739
2562
 
2740
- // src/commands/canvas/commands/componentPattern/unpublish.ts
2741
- var ComponentPatternUnpublishModule = {
2742
- command: "unpublish [ids]",
2743
- describe: "Unpublish a component pattern(s)",
2744
- builder: (yargs33) => withConfiguration(
2745
- withApiOptions(
2746
- withProjectOptions(
2747
- yargs33.positional("ids", {
2748
- describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2749
- type: "string"
2750
- }).option("all", {
2751
- alias: ["a"],
2752
- describe: "Un-pPublishes all compositions. Use compositionId to publish one instead.",
2753
- default: false,
2754
- type: "boolean"
2755
- }).option("what-if", {
2756
- alias: ["w"],
2757
- describe: "What-if mode reports what would be done but does not perform any publishing",
2758
- default: false,
2759
- type: "boolean"
2760
- }).option("onlyCompositions", {
2761
- describe: "Only publishing compositions and not component patterns",
2762
- default: false,
2763
- type: "boolean"
2764
- }).option("onlyPatterns", {
2765
- describe: "Only pulling component patterns and not compositions",
2766
- default: true,
2767
- type: "boolean",
2768
- hidden: true
2769
- })
2770
- )
2771
- )
2772
- ),
2773
- handler: CompositionUnpublishModule.handler
2774
- };
2775
-
2776
2563
  // src/commands/canvas/commands/composition/update.ts
2777
2564
  import { UncachedCanvasClient as UncachedCanvasClient14 } from "@uniformdev/canvas";
2778
2565
  var CompositionUpdateModule = {
2779
2566
  command: "update <filename>",
2780
2567
  aliases: ["put"],
2781
2568
  describe: "Insert or update a composition",
2782
- builder: (yargs33) => withConfiguration(
2569
+ builder: (yargs32) => withConfiguration(
2783
2570
  withApiOptions(
2784
2571
  withProjectOptions(
2785
2572
  withStateOptions(
2786
- yargs33.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2573
+ yargs32.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2787
2574
  )
2788
2575
  )
2789
2576
  )
@@ -2796,49 +2583,31 @@ var CompositionUpdateModule = {
2796
2583
  }
2797
2584
  };
2798
2585
 
2799
- // src/commands/canvas/commands/componentPattern/update.ts
2800
- var ComponentPatternUpdateModule = {
2801
- ...CompositionUpdateModule,
2802
- describe: "Insert or update a component pattern"
2803
- };
2804
-
2805
- // src/commands/canvas/commands/componentPattern.ts
2806
- var ComponentPatternModule = {
2807
- command: "component-pattern <command>",
2808
- aliases: ["pattern"],
2809
- describe: "Commands for Canvas component patterns",
2810
- builder: (yargs33) => yargs33.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
2811
- handler: () => {
2812
- yargs4.help();
2813
- }
2814
- };
2815
-
2816
2586
  // src/commands/canvas/commands/composition.ts
2817
- import yargs5 from "yargs";
2818
2587
  var CompositionModule = {
2819
2588
  command: "composition <command>",
2820
2589
  describe: "Commands for Canvas compositions",
2821
2590
  aliases: ["comp"],
2822
- builder: (yargs33) => yargs33.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2591
+ builder: (yargs32) => yargs32.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2823
2592
  handler: () => {
2824
- yargs5.help();
2593
+ yargs4.help();
2825
2594
  }
2826
2595
  };
2827
2596
 
2828
2597
  // src/commands/canvas/commands/contentType.ts
2829
- import yargs6 from "yargs";
2598
+ import yargs5 from "yargs";
2830
2599
 
2831
2600
  // src/commands/canvas/commands/contentType/get.ts
2832
2601
  import { ContentClient } from "@uniformdev/canvas";
2833
2602
  var ContentTypeGetModule = {
2834
2603
  command: "get <id>",
2835
2604
  describe: "Get a content type",
2836
- builder: (yargs33) => withConfiguration(
2605
+ builder: (yargs32) => withConfiguration(
2837
2606
  withFormatOptions(
2838
2607
  withApiOptions(
2839
2608
  withProjectOptions(
2840
2609
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2841
- yargs33.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2610
+ yargs32.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2842
2611
  )
2843
2612
  )
2844
2613
  )
@@ -2860,7 +2629,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2860
2629
  var ContentTypeListModule = {
2861
2630
  command: "list",
2862
2631
  describe: "List content types",
2863
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
2632
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
2864
2633
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2865
2634
  const fetch3 = nodeFetchProxy(proxy);
2866
2635
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2907,11 +2676,11 @@ function createContentTypeEngineDataSource({
2907
2676
  var ContentTypePullModule = {
2908
2677
  command: "pull <directory>",
2909
2678
  describe: "Pulls all content types to local files in a directory",
2910
- builder: (yargs33) => withConfiguration(
2679
+ builder: (yargs32) => withConfiguration(
2911
2680
  withApiOptions(
2912
2681
  withProjectOptions(
2913
2682
  withDiffOptions(
2914
- yargs33.positional("directory", {
2683
+ yargs32.positional("directory", {
2915
2684
  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.",
2916
2685
  type: "string"
2917
2686
  }).option("format", {
@@ -2994,11 +2763,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2994
2763
  var ContentTypePushModule = {
2995
2764
  command: "push <directory>",
2996
2765
  describe: "Pushes all content types from files in a directory to Uniform",
2997
- builder: (yargs33) => withConfiguration(
2766
+ builder: (yargs32) => withConfiguration(
2998
2767
  withApiOptions(
2999
2768
  withProjectOptions(
3000
2769
  withDiffOptions(
3001
- yargs33.positional("directory", {
2770
+ yargs32.positional("directory", {
3002
2771
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
3003
2772
  type: "string"
3004
2773
  }).option("what-if", {
@@ -3070,10 +2839,10 @@ var ContentTypeRemoveModule = {
3070
2839
  command: "remove <id>",
3071
2840
  aliases: ["delete", "rm"],
3072
2841
  describe: "Delete a content type",
3073
- builder: (yargs33) => withConfiguration(
2842
+ builder: (yargs32) => withConfiguration(
3074
2843
  withApiOptions(
3075
2844
  withProjectOptions(
3076
- yargs33.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2845
+ yargs32.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
3077
2846
  )
3078
2847
  )
3079
2848
  ),
@@ -3090,10 +2859,10 @@ var ContentTypeUpdateModule = {
3090
2859
  command: "update <filename>",
3091
2860
  aliases: ["put"],
3092
2861
  describe: "Insert or update a content type",
3093
- builder: (yargs33) => withConfiguration(
2862
+ builder: (yargs32) => withConfiguration(
3094
2863
  withApiOptions(
3095
2864
  withProjectOptions(
3096
- yargs33.positional("filename", { demandOption: true, describe: "Content type file to put" })
2865
+ yargs32.positional("filename", { demandOption: true, describe: "Content type file to put" })
3097
2866
  )
3098
2867
  )
3099
2868
  ),
@@ -3110,25 +2879,25 @@ var ContentTypeModule = {
3110
2879
  command: "contenttype <command>",
3111
2880
  aliases: ["ct"],
3112
2881
  describe: "Commands for Content Types",
3113
- builder: (yargs33) => yargs33.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2882
+ builder: (yargs32) => yargs32.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
3114
2883
  handler: () => {
3115
- yargs6.help();
2884
+ yargs5.help();
3116
2885
  }
3117
2886
  };
3118
2887
 
3119
2888
  // src/commands/canvas/commands/dataSource.ts
3120
- import yargs7 from "yargs";
2889
+ import yargs6 from "yargs";
3121
2890
 
3122
2891
  // src/commands/canvas/commands/dataSource/get.ts
3123
2892
  import { DataSourceClient } from "@uniformdev/canvas";
3124
2893
  var DataSourceGetModule = {
3125
2894
  command: "get <id>",
3126
2895
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
3127
- builder: (yargs33) => withConfiguration(
2896
+ builder: (yargs32) => withConfiguration(
3128
2897
  withApiOptions(
3129
2898
  withProjectOptions(
3130
2899
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3131
- yargs33.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
2900
+ yargs32.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
3132
2901
  )
3133
2902
  )
3134
2903
  ),
@@ -3146,10 +2915,10 @@ var DataSourceRemoveModule = {
3146
2915
  command: "remove <id>",
3147
2916
  aliases: ["delete", "rm"],
3148
2917
  describe: "Delete a data source",
3149
- builder: (yargs33) => withConfiguration(
2918
+ builder: (yargs32) => withConfiguration(
3150
2919
  withApiOptions(
3151
2920
  withProjectOptions(
3152
- yargs33.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
2921
+ yargs32.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
3153
2922
  )
3154
2923
  )
3155
2924
  ),
@@ -3166,10 +2935,10 @@ var DataSourceUpdateModule = {
3166
2935
  command: "update <dataSource>",
3167
2936
  aliases: ["put"],
3168
2937
  describe: "Insert or update a data source",
3169
- builder: (yargs33) => withConfiguration(
2938
+ builder: (yargs32) => withConfiguration(
3170
2939
  withApiOptions(
3171
2940
  withProjectOptions(
3172
- yargs33.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
2941
+ yargs32.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
3173
2942
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
3174
2943
  type: "string",
3175
2944
  demandOption: true
@@ -3189,14 +2958,14 @@ var DataSourceModule = {
3189
2958
  command: "datasource <command>",
3190
2959
  aliases: ["ds"],
3191
2960
  describe: "Commands for Data Source definitions",
3192
- builder: (yargs33) => yargs33.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
2961
+ builder: (yargs32) => yargs32.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
3193
2962
  handler: () => {
3194
- yargs7.help();
2963
+ yargs6.help();
3195
2964
  }
3196
2965
  };
3197
2966
 
3198
2967
  // src/commands/canvas/commands/dataType.ts
3199
- import yargs8 from "yargs";
2968
+ import yargs7 from "yargs";
3200
2969
 
3201
2970
  // src/commands/canvas/commands/dataType/get.ts
3202
2971
  import { DataTypeClient } from "@uniformdev/canvas";
@@ -3204,12 +2973,12 @@ var DataTypeGetModule = {
3204
2973
  command: "get <id>",
3205
2974
  describe: "Get a data type",
3206
2975
  aliases: ["ls"],
3207
- builder: (yargs33) => withConfiguration(
2976
+ builder: (yargs32) => withConfiguration(
3208
2977
  withFormatOptions(
3209
2978
  withApiOptions(
3210
2979
  withProjectOptions(
3211
2980
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3212
- yargs33.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2981
+ yargs32.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
3213
2982
  )
3214
2983
  )
3215
2984
  )
@@ -3232,7 +3001,7 @@ var DataTypeListModule = {
3232
3001
  command: "list",
3233
3002
  describe: "List data types",
3234
3003
  aliases: ["ls"],
3235
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
3004
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
3236
3005
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3237
3006
  const fetch3 = nodeFetchProxy(proxy);
3238
3007
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3281,11 +3050,11 @@ function createDataTypeEngineDataSource({
3281
3050
  var DataTypePullModule = {
3282
3051
  command: "pull <directory>",
3283
3052
  describe: "Pulls all data types to local files in a directory",
3284
- builder: (yargs33) => withConfiguration(
3053
+ builder: (yargs32) => withConfiguration(
3285
3054
  withApiOptions(
3286
3055
  withProjectOptions(
3287
3056
  withDiffOptions(
3288
- yargs33.positional("directory", {
3057
+ yargs32.positional("directory", {
3289
3058
  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.",
3290
3059
  type: "string"
3291
3060
  }).option("format", {
@@ -3368,11 +3137,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
3368
3137
  var DataTypePushModule = {
3369
3138
  command: "push <directory>",
3370
3139
  describe: "Pushes all data types from files in a directory to Uniform",
3371
- builder: (yargs33) => withConfiguration(
3140
+ builder: (yargs32) => withConfiguration(
3372
3141
  withApiOptions(
3373
3142
  withProjectOptions(
3374
3143
  withDiffOptions(
3375
- yargs33.positional("directory", {
3144
+ yargs32.positional("directory", {
3376
3145
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
3377
3146
  type: "string"
3378
3147
  }).option("what-if", {
@@ -3444,10 +3213,10 @@ var DataTypeRemoveModule = {
3444
3213
  command: "remove <id>",
3445
3214
  aliases: ["delete", "rm"],
3446
3215
  describe: "Delete a data type",
3447
- builder: (yargs33) => withConfiguration(
3216
+ builder: (yargs32) => withConfiguration(
3448
3217
  withApiOptions(
3449
3218
  withProjectOptions(
3450
- yargs33.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3219
+ yargs32.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3451
3220
  )
3452
3221
  )
3453
3222
  ),
@@ -3464,10 +3233,10 @@ var DataTypeUpdateModule = {
3464
3233
  command: "update <filename>",
3465
3234
  aliases: ["put"],
3466
3235
  describe: "Insert or update a data type",
3467
- builder: (yargs33) => withConfiguration(
3236
+ builder: (yargs32) => withConfiguration(
3468
3237
  withApiOptions(
3469
3238
  withProjectOptions(
3470
- yargs33.positional("filename", { demandOption: true, describe: "Data type file to put" })
3239
+ yargs32.positional("filename", { demandOption: true, describe: "Data type file to put" })
3471
3240
  )
3472
3241
  )
3473
3242
  ),
@@ -3484,26 +3253,26 @@ var DataTypeModule = {
3484
3253
  command: "datatype <command>",
3485
3254
  aliases: ["dt"],
3486
3255
  describe: "Commands for Data Type definitions",
3487
- builder: (yargs33) => yargs33.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3256
+ builder: (yargs32) => yargs32.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3488
3257
  handler: () => {
3489
- yargs8.help();
3258
+ yargs7.help();
3490
3259
  }
3491
3260
  };
3492
3261
 
3493
3262
  // src/commands/canvas/commands/entry.ts
3494
- import yargs9 from "yargs";
3263
+ import yargs8 from "yargs";
3495
3264
 
3496
3265
  // src/commands/canvas/commands/entry/get.ts
3497
3266
  import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
3498
3267
  var EntryGetModule = {
3499
3268
  command: "get <id>",
3500
3269
  describe: "Get an entry",
3501
- builder: (yargs33) => withConfiguration(
3270
+ builder: (yargs32) => withConfiguration(
3502
3271
  withFormatOptions(
3503
3272
  withApiOptions(
3504
3273
  withProjectOptions(
3505
3274
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3506
- yargs33.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3275
+ yargs32.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3507
3276
  )
3508
3277
  )
3509
3278
  )
@@ -3531,7 +3300,7 @@ import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
3531
3300
  var EntryListModule = {
3532
3301
  command: "list",
3533
3302
  describe: "List entries",
3534
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
3303
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
3535
3304
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3536
3305
  const fetch3 = nodeFetchProxy(proxy);
3537
3306
  const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3605,11 +3374,11 @@ function createEntryEngineDataSource({
3605
3374
  var EntryPublishModule = {
3606
3375
  command: "publish [ids]",
3607
3376
  describe: "Publishes entry(ies)",
3608
- builder: (yargs33) => withConfiguration(
3377
+ builder: (yargs32) => withConfiguration(
3609
3378
  withApiOptions(
3610
3379
  withProjectOptions(
3611
3380
  withDiffOptions(
3612
- yargs33.positional("ids", {
3381
+ yargs32.positional("ids", {
3613
3382
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3614
3383
  type: "string"
3615
3384
  }).option("all", {
@@ -3622,12 +3391,31 @@ var EntryPublishModule = {
3622
3391
  describe: "What-if mode reports what would be done but does not perform any publishing",
3623
3392
  default: false,
3624
3393
  type: "boolean"
3394
+ }).option("onlyEntries", {
3395
+ describe: "Only publishing entries and not patterns",
3396
+ default: false,
3397
+ type: "boolean"
3398
+ }).option("onlyPatterns", {
3399
+ describe: "Only pulling patterns and not entries",
3400
+ default: false,
3401
+ type: "boolean",
3402
+ hidden: true
3625
3403
  })
3626
3404
  )
3627
3405
  )
3628
3406
  )
3629
3407
  ),
3630
- handler: async ({ apiHost, apiKey, proxy, ids, all, whatIf, project: projectId }) => {
3408
+ handler: async ({
3409
+ apiHost,
3410
+ apiKey,
3411
+ proxy,
3412
+ ids,
3413
+ all,
3414
+ whatIf,
3415
+ project: projectId,
3416
+ onlyEntries,
3417
+ onlyPatterns
3418
+ }) => {
3631
3419
  if (!all && !ids || all && ids) {
3632
3420
  console.error(`Specify --all or entry ID(s) to publish.`);
3633
3421
  process.exit(1);
@@ -3639,13 +3427,15 @@ var EntryPublishModule = {
3639
3427
  client,
3640
3428
  state: "preview",
3641
3429
  entryIDs: entryIDsArray,
3642
- onlyEntries: true
3430
+ onlyEntries,
3431
+ onlyPatterns
3643
3432
  });
3644
3433
  const target = createEntryEngineDataSource({
3645
3434
  client,
3646
3435
  state: "published",
3647
3436
  entryIDs: entryIDsArray,
3648
- onlyEntries: true
3437
+ onlyEntries,
3438
+ onlyPatterns
3649
3439
  });
3650
3440
  await syncEngine({
3651
3441
  source,
@@ -3664,12 +3454,12 @@ import { UncachedFileClient as UncachedFileClient5 } from "@uniformdev/files";
3664
3454
  var EntryPullModule = {
3665
3455
  command: "pull <directory>",
3666
3456
  describe: "Pulls all entries to local files in a directory",
3667
- builder: (yargs33) => withConfiguration(
3457
+ builder: (yargs32) => withConfiguration(
3668
3458
  withApiOptions(
3669
3459
  withProjectOptions(
3670
3460
  withStateOptions(
3671
3461
  withDiffOptions(
3672
- yargs33.positional("directory", {
3462
+ yargs32.positional("directory", {
3673
3463
  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.",
3674
3464
  type: "string"
3675
3465
  }).option("format", {
@@ -3768,12 +3558,12 @@ import { UncachedFileClient as UncachedFileClient6 } from "@uniformdev/files";
3768
3558
  var EntryPushModule = {
3769
3559
  command: "push <directory>",
3770
3560
  describe: "Pushes all entries from files in a directory to Uniform",
3771
- builder: (yargs33) => withConfiguration(
3561
+ builder: (yargs32) => withConfiguration(
3772
3562
  withApiOptions(
3773
3563
  withProjectOptions(
3774
3564
  withStateOptions(
3775
3565
  withDiffOptions(
3776
- yargs33.positional("directory", {
3566
+ yargs32.positional("directory", {
3777
3567
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
3778
3568
  type: "string"
3779
3569
  }).option("what-if", {
@@ -3859,10 +3649,10 @@ var EntryRemoveModule = {
3859
3649
  command: "remove <id>",
3860
3650
  aliases: ["delete", "rm"],
3861
3651
  describe: "Delete an entry",
3862
- builder: (yargs33) => withConfiguration(
3652
+ builder: (yargs32) => withConfiguration(
3863
3653
  withApiOptions(
3864
3654
  withProjectOptions(
3865
- yargs33.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3655
+ yargs32.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3866
3656
  )
3867
3657
  )
3868
3658
  ),
@@ -3879,10 +3669,10 @@ import { diffJson as diffJson3 } from "diff";
3879
3669
  var EntryUnpublishModule = {
3880
3670
  command: "unpublish [ids]",
3881
3671
  describe: "Unpublish an entry(ies)",
3882
- builder: (yargs33) => withConfiguration(
3672
+ builder: (yargs32) => withConfiguration(
3883
3673
  withApiOptions(
3884
3674
  withProjectOptions(
3885
- yargs33.positional("ids", {
3675
+ yargs32.positional("ids", {
3886
3676
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3887
3677
  type: "string"
3888
3678
  }).option("all", {
@@ -3895,11 +3685,30 @@ var EntryUnpublishModule = {
3895
3685
  describe: "What-if mode reports what would be done but does not perform any un-publishing",
3896
3686
  default: false,
3897
3687
  type: "boolean"
3688
+ }).option("onlyEntries", {
3689
+ describe: "Only un-publishing entries and not patterns",
3690
+ default: false,
3691
+ type: "boolean"
3692
+ }).option("onlyPatterns", {
3693
+ describe: "Only un-publishing patterns and not entries",
3694
+ default: false,
3695
+ type: "boolean",
3696
+ hidden: true
3898
3697
  })
3899
3698
  )
3900
3699
  )
3901
3700
  ),
3902
- handler: async ({ apiHost, apiKey, proxy, ids, all, project: projectId, whatIf }) => {
3701
+ handler: async ({
3702
+ apiHost,
3703
+ apiKey,
3704
+ proxy,
3705
+ ids,
3706
+ all,
3707
+ onlyEntries,
3708
+ onlyPatterns,
3709
+ project: projectId,
3710
+ whatIf
3711
+ }) => {
3903
3712
  if (!all && !ids || all && ids) {
3904
3713
  console.error(`Specify --all or entry ID(s) to publish.`);
3905
3714
  process.exit(1);
@@ -3912,13 +3721,15 @@ var EntryUnpublishModule = {
3912
3721
  client,
3913
3722
  state: "published",
3914
3723
  entryIDs: entryIDsArray,
3915
- onlyEntries: true
3724
+ onlyEntries,
3725
+ onlyPatterns
3916
3726
  });
3917
3727
  const target = createEntryEngineDataSource({
3918
3728
  client,
3919
3729
  state: "preview",
3920
3730
  entryIDs: entryIDsArray,
3921
- onlyEntries: true
3731
+ onlyEntries,
3732
+ onlyPatterns
3922
3733
  });
3923
3734
  const actions = [];
3924
3735
  const log = createPublishStatusSyncEngineConsoleLogger({ status: "unpublish" });
@@ -3955,10 +3766,10 @@ var EntryUpdateModule = {
3955
3766
  command: "update <filename>",
3956
3767
  aliases: ["put"],
3957
3768
  describe: "Insert or update an entry",
3958
- builder: (yargs33) => withConfiguration(
3769
+ builder: (yargs32) => withConfiguration(
3959
3770
  withApiOptions(
3960
3771
  withProjectOptions(
3961
- yargs33.positional("filename", { demandOption: true, describe: "Entry file to put" })
3772
+ yargs32.positional("filename", { demandOption: true, describe: "Entry file to put" })
3962
3773
  )
3963
3774
  )
3964
3775
  ),
@@ -3974,455 +3785,14 @@ var EntryUpdateModule = {
3974
3785
  var EntryModule = {
3975
3786
  command: "entry <command>",
3976
3787
  describe: "Commands for Entries",
3977
- builder: (yargs33) => yargs33.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
3788
+ builder: (yargs32) => yargs32.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
3978
3789
  handler: () => {
3979
- yargs9.help();
3980
- }
3981
- };
3982
-
3983
- // src/commands/canvas/commands/entryPattern.ts
3984
- import yargs10 from "yargs";
3985
-
3986
- // src/commands/canvas/commands/entryPattern/get.ts
3987
- import { ContentClient as ContentClient16 } from "@uniformdev/canvas";
3988
- var EntryPatternGetModule = {
3989
- command: "get <id>",
3990
- describe: "Get an entry pattern",
3991
- builder: (yargs33) => withConfiguration(
3992
- withFormatOptions(
3993
- withApiOptions(
3994
- withProjectOptions(
3995
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3996
- yargs33.positional("id", {
3997
- demandOption: true,
3998
- describe: "Entry pattern public ID to fetch"
3999
- })
4000
- )
4001
- )
4002
- )
4003
- ),
4004
- handler: async ({ apiHost, apiKey, proxy, id, format, filename, project: projectId }) => {
4005
- const fetch3 = nodeFetchProxy(proxy);
4006
- const client = new ContentClient16({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4007
- const res = await client.getEntries({
4008
- offset: 0,
4009
- limit: 1,
4010
- entryIDs: [id],
4011
- skipOverridesResolution: true,
4012
- skipPatternResolution: true,
4013
- skipDataResolution: true,
4014
- pattern: true
4015
- });
4016
- if (res.entries.length !== 1) {
4017
- throw new Error(`Entry pattern with ID ${id} not found`);
4018
- }
4019
- emitWithFormat(res.entries[0], format, filename);
4020
- }
4021
- };
4022
-
4023
- // src/commands/canvas/commands/entryPattern/list.ts
4024
- import { ContentClient as ContentClient17 } from "@uniformdev/canvas";
4025
- var EntryPatternListModule = {
4026
- command: "list",
4027
- describe: "List entry patterns",
4028
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
4029
- handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4030
- const fetch3 = nodeFetchProxy(proxy);
4031
- const client = new ContentClient17({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4032
- const res = await client.getEntries({
4033
- offset: 0,
4034
- limit: 1e3,
4035
- skipOverridesResolution: true,
4036
- skipPatternResolution: true,
4037
- skipDataResolution: true,
4038
- pattern: true
4039
- });
4040
- emitWithFormat(res.entries, format, filename);
4041
- }
4042
- };
4043
-
4044
- // src/commands/canvas/commands/entryPattern/publish.ts
4045
- import { ContentClient as ContentClient18 } from "@uniformdev/canvas";
4046
- var EntryPatternPublishModule = {
4047
- command: "publish [ids]",
4048
- describe: "Publishes entry pattern(s)",
4049
- builder: (yargs33) => withConfiguration(
4050
- withApiOptions(
4051
- withProjectOptions(
4052
- withDiffOptions(
4053
- yargs33.positional("ids", {
4054
- describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4055
- type: "string"
4056
- }).option("all", {
4057
- alias: ["a"],
4058
- describe: "Publishes all entry patterns. Use --ids to publish selected entry patterns instead.",
4059
- default: false,
4060
- type: "boolean"
4061
- }).option("what-if", {
4062
- alias: ["w"],
4063
- describe: "What-if mode reports what would be done but does not perform any publishing",
4064
- default: false,
4065
- type: "boolean"
4066
- })
4067
- )
4068
- )
4069
- )
4070
- ),
4071
- handler: async ({ apiHost, apiKey, proxy, ids, all, whatIf, project: projectId }) => {
4072
- if (!all && !ids || all && ids) {
4073
- console.error(`Specify --all or entry pattern ID(s) to publish.`);
4074
- process.exit(1);
4075
- }
4076
- const entryIDsArray = ids ? ids.split(",").map((id) => id.trim()) : void 0;
4077
- const fetch3 = nodeFetchProxy(proxy);
4078
- const client = new ContentClient18({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4079
- const source = createEntryEngineDataSource({
4080
- client,
4081
- state: "preview",
4082
- entryIDs: entryIDsArray,
4083
- onlyPatterns: true
4084
- });
4085
- const target = createEntryEngineDataSource({
4086
- client,
4087
- state: "published",
4088
- entryIDs: entryIDsArray,
4089
- onlyPatterns: true
4090
- });
4091
- await syncEngine({
4092
- source,
4093
- target,
4094
- // Publishing is one-direction operation, so no need to support automatic un-publishing
4095
- mode: "createOrUpdate",
4096
- whatIf,
4097
- log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" })
4098
- });
4099
- }
4100
- };
4101
-
4102
- // src/commands/canvas/commands/entryPattern/pull.ts
4103
- import { ContentClient as ContentClient19 } from "@uniformdev/canvas";
4104
- import { UncachedFileClient as UncachedFileClient7 } from "@uniformdev/files";
4105
- var EntryPatternPullModule = {
4106
- command: "pull <directory>",
4107
- describe: "Pulls all entry patterns to local files in a directory",
4108
- builder: (yargs33) => withConfiguration(
4109
- withApiOptions(
4110
- withProjectOptions(
4111
- withStateOptions(
4112
- withDiffOptions(
4113
- yargs33.positional("directory", {
4114
- 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.",
4115
- type: "string"
4116
- }).option("format", {
4117
- alias: ["f"],
4118
- describe: "Output format",
4119
- default: "yaml",
4120
- choices: ["yaml", "json"],
4121
- type: "string"
4122
- }).option("what-if", {
4123
- alias: ["w"],
4124
- describe: "What-if mode reports what would be done but changes no files",
4125
- default: false,
4126
- type: "boolean"
4127
- }).option("mode", {
4128
- alias: ["m"],
4129
- 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',
4130
- choices: ["create", "createOrUpdate", "mirror"],
4131
- default: "mirror",
4132
- type: "string"
4133
- })
4134
- )
4135
- )
4136
- )
4137
- )
4138
- ),
4139
- handler: async ({
4140
- apiHost,
4141
- apiKey,
4142
- proxy,
4143
- directory,
4144
- format,
4145
- mode,
4146
- whatIf,
4147
- state,
4148
- project: projectId,
4149
- diff: diffMode,
4150
- allowEmptySource
4151
- }) => {
4152
- const fetch3 = nodeFetchProxy(proxy);
4153
- const client = new ContentClient19({
4154
- apiKey,
4155
- apiHost,
4156
- fetch: fetch3,
4157
- projectId,
4158
- bypassCache: true
4159
- });
4160
- const fileClient = new UncachedFileClient7({ apiKey, apiHost, fetch: fetch3, projectId });
4161
- const source = createEntryEngineDataSource({ client, state, onlyPatterns: true });
4162
- let target;
4163
- const isPackage = isPathAPackageFile(directory);
4164
- if (isPackage) {
4165
- const packageContents = readCanvasPackage(directory, false);
4166
- target = await createArraySyncEngineDataSource({
4167
- objects: packageContents.entries ?? [],
4168
- selectIdentifier: selectEntryIdentifier,
4169
- selectDisplayName: selectEntryDisplayName,
4170
- onSyncComplete: async (_, synced) => {
4171
- packageContents.entries = synced;
4172
- writeCanvasPackage(directory, packageContents);
4173
- }
4174
- });
4175
- } else {
4176
- target = await createFileSyncEngineDataSource({
4177
- directory,
4178
- selectIdentifier: selectEntryIdentifier,
4179
- selectDisplayName: selectEntryDisplayName,
4180
- format
4181
- });
4182
- }
4183
- await syncEngine({
4184
- source,
4185
- target,
4186
- mode,
4187
- whatIf,
4188
- allowEmptySource: allowEmptySource ?? true,
4189
- log: createSyncEngineConsoleLogger({ diffMode }),
4190
- onBeforeCompareObjects: async (sourceObject, targetObject) => {
4191
- return replaceRemoteUrlsWithLocalReferences(sourceObject, targetObject, {
4192
- directory,
4193
- fileClient
4194
- });
4195
- },
4196
- onBeforeWriteObject: async (sourceObject) => {
4197
- return extractAndDownloadUniformFilesForObject(sourceObject, {
4198
- directory,
4199
- fileClient
4200
- });
4201
- }
4202
- });
4203
- }
4204
- };
4205
-
4206
- // src/commands/canvas/commands/entryPattern/push.ts
4207
- import { ContentClient as ContentClient20 } from "@uniformdev/canvas";
4208
- import { UncachedFileClient as UncachedFileClient8 } from "@uniformdev/files";
4209
- var EntryPatternPushModule = {
4210
- command: "push <directory>",
4211
- describe: "Pushes all entry patterns from files in a directory to Uniform",
4212
- builder: (yargs33) => withConfiguration(
4213
- withApiOptions(
4214
- withProjectOptions(
4215
- withStateOptions(
4216
- withDiffOptions(
4217
- yargs33.positional("directory", {
4218
- describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
4219
- type: "string"
4220
- }).option("what-if", {
4221
- alias: ["w"],
4222
- describe: "What-if mode reports what would be done but changes nothing",
4223
- default: false,
4224
- type: "boolean"
4225
- }).option("mode", {
4226
- alias: ["m"],
4227
- 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',
4228
- choices: ["create", "createOrUpdate", "mirror"],
4229
- default: "mirror",
4230
- type: "string"
4231
- })
4232
- )
4233
- )
4234
- )
4235
- )
4236
- ),
4237
- handler: async ({
4238
- apiHost,
4239
- apiKey,
4240
- proxy,
4241
- directory,
4242
- mode,
4243
- whatIf,
4244
- state,
4245
- project: projectId,
4246
- diff: diffMode,
4247
- allowEmptySource
4248
- }) => {
4249
- const fetch3 = nodeFetchProxy(proxy);
4250
- const client = new ContentClient20({
4251
- apiKey,
4252
- apiHost,
4253
- fetch: fetch3,
4254
- projectId,
4255
- bypassCache: true
4256
- });
4257
- let source;
4258
- const isPackage = isPathAPackageFile(directory);
4259
- if (isPackage) {
4260
- const packageContents = readCanvasPackage(directory, true);
4261
- source = await createArraySyncEngineDataSource({
4262
- objects: packageContents.entries ?? [],
4263
- selectIdentifier: selectEntryIdentifier,
4264
- selectDisplayName: selectEntryDisplayName
4265
- });
4266
- } else {
4267
- source = await createFileSyncEngineDataSource({
4268
- directory,
4269
- selectIdentifier: selectEntryIdentifier,
4270
- selectDisplayName: selectEntryDisplayName
4271
- });
4272
- }
4273
- const target = createEntryEngineDataSource({ client, state, onlyPatterns: true });
4274
- const fileClient = new UncachedFileClient8({ apiKey, apiHost, fetch: fetch3, projectId });
4275
- await syncEngine({
4276
- source,
4277
- target,
4278
- mode,
4279
- whatIf,
4280
- allowEmptySource,
4281
- log: createSyncEngineConsoleLogger({ diffMode }),
4282
- onBeforeCompareObjects: async (sourceObject) => {
4283
- return swapOutUniformFileUrlsForTargetProject(sourceObject, {
4284
- fileClient
4285
- });
4286
- },
4287
- onBeforeWriteObject: async (sourceObject) => {
4288
- return extractAndUploadUniformFilesForObject(sourceObject, {
4289
- directory,
4290
- fileClient
4291
- });
4292
- }
4293
- });
4294
- }
4295
- };
4296
-
4297
- // src/commands/canvas/commands/entryPattern/remove.ts
4298
- import { ContentClient as ContentClient21 } from "@uniformdev/canvas";
4299
- var EntryPatternRemoveModule = {
4300
- command: "remove <id>",
4301
- aliases: ["delete", "rm"],
4302
- describe: "Delete an entry pattern",
4303
- builder: (yargs33) => withConfiguration(
4304
- withApiOptions(
4305
- withProjectOptions(
4306
- yargs33.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
4307
- )
4308
- )
4309
- ),
4310
- handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
4311
- const fetch3 = nodeFetchProxy(proxy);
4312
- const client = new ContentClient21({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4313
- await client.deleteEntry({ entryId: id });
4314
- }
4315
- };
4316
-
4317
- // src/commands/canvas/commands/entryPattern/unpublish.ts
4318
- import { CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE4, ContentClient as ContentClient22 } from "@uniformdev/canvas";
4319
- import { diffJson as diffJson4 } from "diff";
4320
- var EntryPatternUnpublishModule = {
4321
- command: "unpublish [ids]",
4322
- describe: "Unpublish an entry patterns",
4323
- builder: (yargs33) => withConfiguration(
4324
- withApiOptions(
4325
- withProjectOptions(
4326
- yargs33.positional("ids", {
4327
- describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4328
- type: "string"
4329
- }).option("all", {
4330
- alias: ["a"],
4331
- describe: "Un-publishes all entry patterns. Use --all to un-publish selected entry patterns instead.",
4332
- default: false,
4333
- type: "boolean"
4334
- }).option("what-if", {
4335
- alias: ["w"],
4336
- describe: "What-if mode reports what would be done but does not perform any un-publishing",
4337
- default: false,
4338
- type: "boolean"
4339
- })
4340
- )
4341
- )
4342
- ),
4343
- handler: async ({ apiHost, apiKey, proxy, ids, all, project: projectId, whatIf }) => {
4344
- if (!all && !ids || all && ids) {
4345
- console.error(`Specify --all or entry pattern ID(s) to publish.`);
4346
- process.exit(1);
4347
- }
4348
- const entryIDsArray = ids ? ids.split(",").map((id) => id.trim()) : void 0;
4349
- const targetItems = /* @__PURE__ */ new Map();
4350
- const fetch3 = nodeFetchProxy(proxy);
4351
- const client = new ContentClient22({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4352
- const source = createEntryEngineDataSource({
4353
- client,
4354
- state: "published",
4355
- entryIDs: entryIDsArray,
4356
- onlyPatterns: true
4357
- });
4358
- const target = createEntryEngineDataSource({
4359
- client,
4360
- state: "preview",
4361
- entryIDs: entryIDsArray,
4362
- onlyPatterns: true
4363
- });
4364
- const actions = [];
4365
- const log = createPublishStatusSyncEngineConsoleLogger({ status: "unpublish" });
4366
- for await (const obj of target.objects) {
4367
- if (Array.isArray(obj.id)) {
4368
- obj.id.forEach((o) => targetItems.set(o, obj));
4369
- } else {
4370
- targetItems.set(obj.id, obj);
4371
- }
4372
- }
4373
- for await (const sourceObject of source.objects) {
4374
- const id = Array.isArray(sourceObject.id) ? sourceObject.id[0] : sourceObject.id;
4375
- const targetObject = targetItems.get(id);
4376
- if (!targetObject) {
4377
- console.log(`Entry pattern ${id} was not found`);
4378
- return;
4379
- }
4380
- actions.push(client.deleteEntry({ entryId: id, state: CANVAS_PUBLISHED_STATE4 }));
4381
- log({
4382
- action: "update",
4383
- id,
4384
- providerId: sourceObject.providerId,
4385
- displayName: sourceObject.displayName ?? sourceObject.providerId,
4386
- whatIf,
4387
- diff: diffJson4(targetObject.object, sourceObject.object)
4388
- });
4389
- }
4390
- }
4391
- };
4392
-
4393
- // src/commands/canvas/commands/entryPattern/update.ts
4394
- import { ContentClient as ContentClient23 } from "@uniformdev/canvas";
4395
- var EntryPatternUpdateModule = {
4396
- command: "update <filename>",
4397
- aliases: ["put"],
4398
- describe: "Insert or update an entry pattern",
4399
- builder: (yargs33) => withConfiguration(
4400
- withApiOptions(
4401
- withProjectOptions(
4402
- yargs33.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
4403
- )
4404
- )
4405
- ),
4406
- handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
4407
- const fetch3 = nodeFetchProxy(proxy);
4408
- const client = new ContentClient23({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
4409
- const file = readFileToObject(filename);
4410
- await client.upsertEntry(file);
4411
- }
4412
- };
4413
-
4414
- // src/commands/canvas/commands/entryPattern.ts
4415
- var EntryPatternModule = {
4416
- command: "entry-pattern <command>",
4417
- describe: "Commands for Entry patterns",
4418
- builder: (yargs33) => yargs33.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
4419
- handler: () => {
4420
- yargs10.help();
3790
+ yargs8.help();
4421
3791
  }
4422
3792
  };
4423
3793
 
4424
3794
  // src/commands/canvas/commands/locale.ts
4425
- import yargs11 from "yargs";
3795
+ import yargs9 from "yargs";
4426
3796
 
4427
3797
  // src/commands/canvas/commands/locale/pull.ts
4428
3798
  import { LocaleClient } from "@uniformdev/canvas";
@@ -4460,11 +3830,11 @@ function createLocaleEngineDataSource({
4460
3830
  var LocalePullModule = {
4461
3831
  command: "pull <directory>",
4462
3832
  describe: "Pulls all locales to local files in a directory",
4463
- builder: (yargs33) => withConfiguration(
3833
+ builder: (yargs32) => withConfiguration(
4464
3834
  withApiOptions(
4465
3835
  withProjectOptions(
4466
3836
  withDiffOptions(
4467
- yargs33.positional("directory", {
3837
+ yargs32.positional("directory", {
4468
3838
  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.",
4469
3839
  type: "string"
4470
3840
  }).option("format", {
@@ -4547,11 +3917,11 @@ import { LocaleClient as LocaleClient2 } from "@uniformdev/canvas";
4547
3917
  var LocalePushModule = {
4548
3918
  command: "push <directory>",
4549
3919
  describe: "Pushes all locales from files in a directory to Uniform",
4550
- builder: (yargs33) => withConfiguration(
3920
+ builder: (yargs32) => withConfiguration(
4551
3921
  withApiOptions(
4552
3922
  withProjectOptions(
4553
3923
  withDiffOptions(
4554
- yargs33.positional("directory", {
3924
+ yargs32.positional("directory", {
4555
3925
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
4556
3926
  type: "string"
4557
3927
  }).option("what-if", {
@@ -4621,26 +3991,258 @@ var LocalePushModule = {
4621
3991
  var LocaleModule = {
4622
3992
  command: "locale <command>",
4623
3993
  describe: "Commands for locale definitions",
4624
- builder: (yargs33) => yargs33.command(LocalePullModule).command(LocalePushModule),
3994
+ builder: (yargs32) => yargs32.command(LocalePullModule).command(LocalePushModule),
4625
3995
  handler: () => {
4626
- yargs11.help();
3996
+ yargs9.help();
3997
+ }
3998
+ };
3999
+
4000
+ // src/commands/canvas/commands/pattern.ts
4001
+ import yargs10 from "yargs";
4002
+
4003
+ // src/commands/canvas/commands/pattern/get.ts
4004
+ var PatternGetModule = {
4005
+ ...CompositionGetModule,
4006
+ describe: "Fetch a pattern"
4007
+ };
4008
+
4009
+ // src/commands/canvas/commands/pattern/list.ts
4010
+ var PatternListModule = {
4011
+ ...CompositionListModule,
4012
+ describe: "List patterns",
4013
+ builder: (yargs32) => withFormatOptions(
4014
+ withConfiguration(
4015
+ withApiOptions(
4016
+ withProjectOptions(
4017
+ withStateOptions(
4018
+ yargs32.options({
4019
+ offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4020
+ limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4021
+ resolvePatterns: {
4022
+ type: "boolean",
4023
+ default: false,
4024
+ describe: "Resolve pattern references in the composition"
4025
+ },
4026
+ resolveOverrides: {
4027
+ type: "boolean",
4028
+ default: false,
4029
+ describe: "Resolves pattern overrides in the composition and removes override definition data"
4030
+ },
4031
+ onlyPatterns: {
4032
+ describe: "Only pulling patterns and not compositions",
4033
+ // This default differentiate this list command from composition list command
4034
+ default: true,
4035
+ type: "boolean",
4036
+ hidden: true
4037
+ },
4038
+ componentIDs: {
4039
+ alias: ["componentIDs"],
4040
+ type: "boolean",
4041
+ default: false,
4042
+ describe: "Include individual component UIDs"
4043
+ }
4044
+ })
4045
+ )
4046
+ )
4047
+ )
4048
+ )
4049
+ )
4050
+ };
4051
+
4052
+ // src/commands/canvas/commands/pattern/publish.ts
4053
+ var PatternPublishModule = {
4054
+ ...CompositionPublishModule,
4055
+ describe: "Publishes pattern(s)",
4056
+ builder: (yargs32) => withConfiguration(
4057
+ withApiOptions(
4058
+ withProjectOptions(
4059
+ withDiffOptions(
4060
+ yargs32.positional("ids", {
4061
+ describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4062
+ type: "string"
4063
+ }).option("all", {
4064
+ alias: ["a"],
4065
+ describe: "Publishes all patterns. Use compositionId to publish one instead.",
4066
+ default: false,
4067
+ type: "boolean"
4068
+ }).option("what-if", {
4069
+ alias: ["w"],
4070
+ describe: "What-if mode reports what would be done but does not perform any un-publishing",
4071
+ default: false,
4072
+ type: "boolean"
4073
+ }).option("publishingState", {
4074
+ describe: 'Publishing state to update to. Can be "published" or "preview".',
4075
+ default: "published",
4076
+ type: "string",
4077
+ hidden: true
4078
+ }).option("onlyCompositions", {
4079
+ describe: "Only publishing compositions and not patterns",
4080
+ default: false,
4081
+ type: "boolean"
4082
+ }).option("onlyPatterns", {
4083
+ describe: "Only pulling patterns and not compositions",
4084
+ default: true,
4085
+ type: "boolean",
4086
+ hidden: true
4087
+ })
4088
+ )
4089
+ )
4090
+ )
4091
+ )
4092
+ };
4093
+
4094
+ // src/commands/canvas/commands/pattern/pull.ts
4095
+ var PatternPullModule = {
4096
+ ...CompositionPullModule,
4097
+ describe: "Pulls all patterns to local files in a directory",
4098
+ builder: (yargs32) => withConfiguration(
4099
+ withApiOptions(
4100
+ withProjectOptions(
4101
+ withStateOptions(
4102
+ withDiffOptions(
4103
+ yargs32.positional("directory", {
4104
+ 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.",
4105
+ type: "string"
4106
+ }).option("format", {
4107
+ alias: ["f"],
4108
+ describe: "Output format",
4109
+ default: "yaml",
4110
+ choices: ["yaml", "json"],
4111
+ type: "string"
4112
+ }).option("onlyPatterns", {
4113
+ describe: "Only pulling patterns and not compositions",
4114
+ // This default differentiate this list command from composition list command
4115
+ default: true,
4116
+ type: "boolean",
4117
+ hidden: true
4118
+ }).option("what-if", {
4119
+ alias: ["w"],
4120
+ describe: "What-if mode reports what would be done but changes no files",
4121
+ default: false,
4122
+ type: "boolean"
4123
+ }).option("mode", {
4124
+ alias: ["m"],
4125
+ 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',
4126
+ choices: ["create", "createOrUpdate", "mirror"],
4127
+ default: "mirror",
4128
+ type: "string"
4129
+ })
4130
+ )
4131
+ )
4132
+ )
4133
+ )
4134
+ )
4135
+ };
4136
+
4137
+ // src/commands/canvas/commands/pattern/push.ts
4138
+ var PatternPushModule = {
4139
+ ...CompositionPushModule,
4140
+ describe: "Pushes all patterns from files in a directory to Uniform Canvas",
4141
+ builder: (yargs32) => withConfiguration(
4142
+ withApiOptions(
4143
+ withProjectOptions(
4144
+ withStateOptions(
4145
+ withDiffOptions(
4146
+ yargs32.positional("directory", {
4147
+ describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
4148
+ type: "string"
4149
+ }).option("what-if", {
4150
+ alias: ["w"],
4151
+ describe: "What-if mode reports what would be done but changes nothing",
4152
+ default: false,
4153
+ type: "boolean"
4154
+ }).option("mode", {
4155
+ alias: ["m"],
4156
+ 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',
4157
+ choices: ["create", "createOrUpdate", "mirror"],
4158
+ default: "mirror",
4159
+ type: "string"
4160
+ }).option("onlyPatterns", {
4161
+ describe: "Only pulling patterns and not compositions",
4162
+ // This default differentiate this list command from composition list command
4163
+ default: true,
4164
+ type: "boolean",
4165
+ hidden: true
4166
+ })
4167
+ )
4168
+ )
4169
+ )
4170
+ )
4171
+ )
4172
+ };
4173
+
4174
+ // src/commands/canvas/commands/pattern/remove.ts
4175
+ var PatternRemoveModule = {
4176
+ ...CompositionRemoveModule,
4177
+ describe: "Delete a pattern"
4178
+ };
4179
+
4180
+ // src/commands/canvas/commands/pattern/unpublish.ts
4181
+ var PatternUnpublishModule = {
4182
+ command: "unpublish [ids]",
4183
+ describe: "Unpublish a pattern(s)",
4184
+ builder: (yargs32) => withConfiguration(
4185
+ withApiOptions(
4186
+ withProjectOptions(
4187
+ yargs32.positional("ids", {
4188
+ describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4189
+ type: "string"
4190
+ }).option("all", {
4191
+ alias: ["a"],
4192
+ describe: "Un-pPublishes all compositions. Use compositionId to publish one instead.",
4193
+ default: false,
4194
+ type: "boolean"
4195
+ }).option("what-if", {
4196
+ alias: ["w"],
4197
+ describe: "What-if mode reports what would be done but does not perform any publishing",
4198
+ default: false,
4199
+ type: "boolean"
4200
+ }).option("onlyCompositions", {
4201
+ describe: "Only publishing compositions and not patterns",
4202
+ default: false,
4203
+ type: "boolean"
4204
+ }).option("onlyPatterns", {
4205
+ describe: "Only pulling patterns and not compositions",
4206
+ default: true,
4207
+ type: "boolean",
4208
+ hidden: true
4209
+ })
4210
+ )
4211
+ )
4212
+ ),
4213
+ handler: CompositionUnpublishModule.handler
4214
+ };
4215
+
4216
+ // src/commands/canvas/commands/pattern/update.ts
4217
+ var PatternUpdateModule = {
4218
+ ...CompositionUpdateModule,
4219
+ describe: "Insert or update a pattern"
4220
+ };
4221
+
4222
+ // src/commands/canvas/commands/pattern.ts
4223
+ var PatternModule = {
4224
+ command: "pattern <command>",
4225
+ describe: "Commands for Canvas patterns",
4226
+ builder: (yargs32) => yargs32.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
4227
+ handler: () => {
4228
+ yargs10.help();
4627
4229
  }
4628
4230
  };
4629
4231
 
4630
4232
  // src/commands/canvas/commands/prompts.ts
4631
- import yargs12 from "yargs";
4233
+ import yargs11 from "yargs";
4632
4234
 
4633
4235
  // src/commands/canvas/commands/prompts/get.ts
4634
4236
  import { PromptClient } from "@uniformdev/canvas";
4635
4237
  var PromptGetModule = {
4636
4238
  command: "get <id>",
4637
4239
  describe: "Get a prompt",
4638
- builder: (yargs33) => withConfiguration(
4240
+ builder: (yargs32) => withConfiguration(
4639
4241
  withFormatOptions(
4640
4242
  withApiOptions(
4641
4243
  withProjectOptions(
4642
4244
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4643
- yargs33.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4245
+ yargs32.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4644
4246
  )
4645
4247
  )
4646
4248
  )
@@ -4661,7 +4263,7 @@ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
4661
4263
  var PromptListModule = {
4662
4264
  command: "list",
4663
4265
  describe: "List prompts",
4664
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
4266
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
4665
4267
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4666
4268
  const fetch3 = nodeFetchProxy(proxy);
4667
4269
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -4708,12 +4310,12 @@ function createPromptEngineDataSource({
4708
4310
  var PromptPullModule = {
4709
4311
  command: "pull <directory>",
4710
4312
  describe: "Pulls all prompts to local files in a directory",
4711
- builder: (yargs33) => withConfiguration(
4313
+ builder: (yargs32) => withConfiguration(
4712
4314
  withApiOptions(
4713
4315
  withProjectOptions(
4714
4316
  withStateOptions(
4715
4317
  withDiffOptions(
4716
- yargs33.positional("directory", {
4318
+ yargs32.positional("directory", {
4717
4319
  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.",
4718
4320
  type: "string"
4719
4321
  }).option("format", {
@@ -4797,12 +4399,12 @@ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
4797
4399
  var PromptPushModule = {
4798
4400
  command: "push <directory>",
4799
4401
  describe: "Pushes all prompts from files in a directory to Uniform",
4800
- builder: (yargs33) => withConfiguration(
4402
+ builder: (yargs32) => withConfiguration(
4801
4403
  withApiOptions(
4802
4404
  withProjectOptions(
4803
4405
  withStateOptions(
4804
4406
  withDiffOptions(
4805
- yargs33.positional("directory", {
4407
+ yargs32.positional("directory", {
4806
4408
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
4807
4409
  type: "string"
4808
4410
  }).option("what-if", {
@@ -4875,9 +4477,9 @@ var PromptRemoveModule = {
4875
4477
  command: "remove <id>",
4876
4478
  aliases: ["delete", "rm"],
4877
4479
  describe: "Delete a prompt",
4878
- builder: (yargs33) => withConfiguration(
4480
+ builder: (yargs32) => withConfiguration(
4879
4481
  withApiOptions(
4880
- withProjectOptions(yargs33.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4482
+ withProjectOptions(yargs32.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4881
4483
  )
4882
4484
  ),
4883
4485
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -4893,10 +4495,10 @@ var PromptUpdateModule = {
4893
4495
  command: "update <filename>",
4894
4496
  aliases: ["put"],
4895
4497
  describe: "Insert or update a prompt",
4896
- builder: (yargs33) => withConfiguration(
4498
+ builder: (yargs32) => withConfiguration(
4897
4499
  withApiOptions(
4898
4500
  withProjectOptions(
4899
- yargs33.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4501
+ yargs32.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4900
4502
  )
4901
4503
  )
4902
4504
  ),
@@ -4913,9 +4515,9 @@ var PromptModule = {
4913
4515
  command: "prompt <command>",
4914
4516
  aliases: ["dt"],
4915
4517
  describe: "Commands for AI Prompt definitions",
4916
- builder: (yargs33) => yargs33.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4518
+ builder: (yargs32) => yargs32.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4917
4519
  handler: () => {
4918
- yargs12.help();
4520
+ yargs11.help();
4919
4521
  }
4920
4522
  };
4921
4523
 
@@ -4924,28 +4526,28 @@ var CanvasCommand = {
4924
4526
  command: "canvas <command>",
4925
4527
  aliases: ["cv", "pm", "presentation"],
4926
4528
  describe: "Uniform Canvas commands",
4927
- builder: (yargs33) => yargs33.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).demandCommand(),
4529
+ builder: (yargs32) => yargs32.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).command(PromptModule).command(AssetModule).command(LocaleModule).demandCommand(),
4928
4530
  handler: () => {
4929
- yargs13.showHelp();
4531
+ yargs12.showHelp();
4930
4532
  }
4931
4533
  };
4932
4534
 
4933
4535
  // src/commands/context/index.ts
4934
- import yargs20 from "yargs";
4536
+ import yargs19 from "yargs";
4935
4537
 
4936
4538
  // src/commands/context/commands/aggregate.ts
4937
- import yargs14 from "yargs";
4539
+ import yargs13 from "yargs";
4938
4540
 
4939
4541
  // src/commands/context/commands/aggregate/get.ts
4940
4542
  import { UncachedAggregateClient } from "@uniformdev/context/api";
4941
4543
  var AggregateGetModule = {
4942
4544
  command: "get <id>",
4943
4545
  describe: "Fetch an aggregate",
4944
- builder: (yargs33) => withConfiguration(
4546
+ builder: (yargs32) => withConfiguration(
4945
4547
  withFormatOptions(
4946
4548
  withApiOptions(
4947
4549
  withProjectOptions(
4948
- yargs33.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4550
+ yargs32.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4949
4551
  )
4950
4552
  )
4951
4553
  )
@@ -4969,7 +4571,7 @@ var AggregateListModule = {
4969
4571
  command: "list",
4970
4572
  describe: "List aggregates",
4971
4573
  aliases: ["ls"],
4972
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
4574
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
4973
4575
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4974
4576
  const fetch3 = nodeFetchProxy(proxy);
4975
4577
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5035,11 +4637,11 @@ function writeContextPackage(filename, packageContents) {
5035
4637
  var AggregatePullModule = {
5036
4638
  command: "pull <directory>",
5037
4639
  describe: "Pulls all aggregates to local files in a directory",
5038
- builder: (yargs33) => withConfiguration(
4640
+ builder: (yargs32) => withConfiguration(
5039
4641
  withApiOptions(
5040
4642
  withProjectOptions(
5041
4643
  withDiffOptions(
5042
- yargs33.positional("directory", {
4644
+ yargs32.positional("directory", {
5043
4645
  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.",
5044
4646
  type: "string"
5045
4647
  }).option("format", {
@@ -5116,11 +4718,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
5116
4718
  var AggregatePushModule = {
5117
4719
  command: "push <directory>",
5118
4720
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
5119
- builder: (yargs33) => withConfiguration(
4721
+ builder: (yargs32) => withConfiguration(
5120
4722
  withApiOptions(
5121
4723
  withProjectOptions(
5122
4724
  withDiffOptions(
5123
- yargs33.positional("directory", {
4725
+ yargs32.positional("directory", {
5124
4726
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
5125
4727
  type: "string"
5126
4728
  }).option("what-if", {
@@ -5187,10 +4789,10 @@ var AggregateRemoveModule = {
5187
4789
  command: "remove <id>",
5188
4790
  aliases: ["delete", "rm"],
5189
4791
  describe: "Delete an aggregate",
5190
- builder: (yargs33) => withConfiguration(
4792
+ builder: (yargs32) => withConfiguration(
5191
4793
  withApiOptions(
5192
4794
  withProjectOptions(
5193
- yargs33.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
4795
+ yargs32.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
5194
4796
  )
5195
4797
  )
5196
4798
  ),
@@ -5207,10 +4809,10 @@ var AggregateUpdateModule = {
5207
4809
  command: "update <filename>",
5208
4810
  aliases: ["put"],
5209
4811
  describe: "Insert or update an aggregate",
5210
- builder: (yargs33) => withConfiguration(
4812
+ builder: (yargs32) => withConfiguration(
5211
4813
  withApiOptions(
5212
4814
  withProjectOptions(
5213
- yargs33.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
4815
+ yargs32.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
5214
4816
  )
5215
4817
  )
5216
4818
  ),
@@ -5227,25 +4829,25 @@ var AggregateModule = {
5227
4829
  command: "aggregate <command>",
5228
4830
  aliases: ["agg", "intent", "audience"],
5229
4831
  describe: "Commands for Context aggregates (intents, audiences)",
5230
- builder: (yargs33) => yargs33.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
4832
+ builder: (yargs32) => yargs32.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
5231
4833
  handler: () => {
5232
- yargs14.help();
4834
+ yargs13.help();
5233
4835
  }
5234
4836
  };
5235
4837
 
5236
4838
  // src/commands/context/commands/enrichment.ts
5237
- import yargs15 from "yargs";
4839
+ import yargs14 from "yargs";
5238
4840
 
5239
4841
  // src/commands/context/commands/enrichment/get.ts
5240
4842
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
5241
4843
  var EnrichmentGetModule = {
5242
4844
  command: "get <id>",
5243
4845
  describe: "Fetch an enrichment category and its values",
5244
- builder: (yargs33) => withFormatOptions(
4846
+ builder: (yargs32) => withFormatOptions(
5245
4847
  withConfiguration(
5246
4848
  withApiOptions(
5247
4849
  withProjectOptions(
5248
- yargs33.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
4850
+ yargs32.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
5249
4851
  )
5250
4852
  )
5251
4853
  )
@@ -5270,7 +4872,7 @@ var EnrichmentListModule = {
5270
4872
  command: "list",
5271
4873
  describe: "List enrichments",
5272
4874
  aliases: ["ls"],
5273
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
4875
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
5274
4876
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5275
4877
  const fetch3 = nodeFetchProxy(proxy);
5276
4878
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5371,11 +4973,11 @@ var createEnrichmentValueEngineDataSource = ({
5371
4973
  var EnrichmentPullModule = {
5372
4974
  command: "pull <directory>",
5373
4975
  describe: "Pulls all enrichments to local files in a directory",
5374
- builder: (yargs33) => withConfiguration(
4976
+ builder: (yargs32) => withConfiguration(
5375
4977
  withApiOptions(
5376
4978
  withProjectOptions(
5377
4979
  withDiffOptions(
5378
- yargs33.positional("directory", {
4980
+ yargs32.positional("directory", {
5379
4981
  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.",
5380
4982
  type: "string"
5381
4983
  }).option("format", {
@@ -5452,11 +5054,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
5452
5054
  var EnrichmentPushModule = {
5453
5055
  command: "push <directory>",
5454
5056
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
5455
- builder: (yargs33) => withConfiguration(
5057
+ builder: (yargs32) => withConfiguration(
5456
5058
  withApiOptions(
5457
5059
  withProjectOptions(
5458
5060
  withDiffOptions(
5459
- yargs33.positional("directory", {
5061
+ yargs32.positional("directory", {
5460
5062
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
5461
5063
  type: "string"
5462
5064
  }).option("what-if", {
@@ -5522,10 +5124,10 @@ var EnrichmentRemoveModule = {
5522
5124
  command: "remove <id>",
5523
5125
  aliases: ["delete", "rm"],
5524
5126
  describe: "Delete an enrichment category and its values",
5525
- builder: (yargs33) => withConfiguration(
5127
+ builder: (yargs32) => withConfiguration(
5526
5128
  withApiOptions(
5527
5129
  withProjectOptions(
5528
- yargs33.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5130
+ yargs32.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5529
5131
  )
5530
5132
  )
5531
5133
  ),
@@ -5541,14 +5143,14 @@ var EnrichmentModule = {
5541
5143
  command: "enrichment <command>",
5542
5144
  aliases: ["enr"],
5543
5145
  describe: "Commands for Context enrichments",
5544
- builder: (yargs33) => yargs33.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
5146
+ builder: (yargs32) => yargs32.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
5545
5147
  handler: () => {
5546
- yargs15.help();
5148
+ yargs14.help();
5547
5149
  }
5548
5150
  };
5549
5151
 
5550
5152
  // src/commands/context/commands/manifest.ts
5551
- import yargs16 from "yargs";
5153
+ import yargs15 from "yargs";
5552
5154
 
5553
5155
  // src/commands/context/commands/manifest/get.ts
5554
5156
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -5559,10 +5161,10 @@ var ManifestGetModule = {
5559
5161
  command: "get [output]",
5560
5162
  aliases: ["dl", "download"],
5561
5163
  describe: "Download the Uniform Context manifest for a project",
5562
- builder: (yargs33) => withConfiguration(
5164
+ builder: (yargs32) => withConfiguration(
5563
5165
  withApiOptions(
5564
5166
  withProjectOptions(
5565
- yargs33.option("preview", {
5167
+ yargs32.option("preview", {
5566
5168
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
5567
5169
  default: false,
5568
5170
  type: "boolean",
@@ -5624,7 +5226,7 @@ import { exit as exit2 } from "process";
5624
5226
  var ManifestPublishModule = {
5625
5227
  command: "publish",
5626
5228
  describe: "Publish the Uniform Context manifest for a project",
5627
- builder: (yargs33) => withConfiguration(withApiOptions(withProjectOptions(yargs33))),
5229
+ builder: (yargs32) => withConfiguration(withApiOptions(withProjectOptions(yargs32))),
5628
5230
  handler: async ({ apiKey, apiHost, proxy, project }) => {
5629
5231
  const fetch3 = nodeFetchProxy(proxy);
5630
5232
  try {
@@ -5657,25 +5259,25 @@ var ManifestModule = {
5657
5259
  command: "manifest <command>",
5658
5260
  describe: "Commands for context manifests",
5659
5261
  aliases: ["man"],
5660
- builder: (yargs33) => yargs33.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
5262
+ builder: (yargs32) => yargs32.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
5661
5263
  handler: () => {
5662
- yargs16.help();
5264
+ yargs15.help();
5663
5265
  }
5664
5266
  };
5665
5267
 
5666
5268
  // src/commands/context/commands/quirk.ts
5667
- import yargs17 from "yargs";
5269
+ import yargs16 from "yargs";
5668
5270
 
5669
5271
  // src/commands/context/commands/quirk/get.ts
5670
5272
  import { UncachedQuirkClient } from "@uniformdev/context/api";
5671
5273
  var QuirkGetModule = {
5672
5274
  command: "get <id>",
5673
5275
  describe: "Fetch a quirk",
5674
- builder: (yargs33) => withConfiguration(
5276
+ builder: (yargs32) => withConfiguration(
5675
5277
  withFormatOptions(
5676
5278
  withApiOptions(
5677
5279
  withProjectOptions(
5678
- yargs33.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
5280
+ yargs32.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
5679
5281
  )
5680
5282
  )
5681
5283
  )
@@ -5699,11 +5301,11 @@ var QuirkListModule = {
5699
5301
  command: "list",
5700
5302
  describe: "List quirks",
5701
5303
  aliases: ["ls"],
5702
- builder: (yargs33) => withConfiguration(
5304
+ builder: (yargs32) => withConfiguration(
5703
5305
  withFormatOptions(
5704
5306
  withApiOptions(
5705
5307
  withProjectOptions(
5706
- yargs33.option("withIntegrations", {
5308
+ yargs32.option("withIntegrations", {
5707
5309
  alias: ["i"],
5708
5310
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
5709
5311
  type: "boolean"
@@ -5760,11 +5362,11 @@ function createQuirkEngineDataSource({
5760
5362
  var QuirkPullModule = {
5761
5363
  command: "pull <directory>",
5762
5364
  describe: "Pulls all quirks to local files in a directory",
5763
- builder: (yargs33) => withConfiguration(
5365
+ builder: (yargs32) => withConfiguration(
5764
5366
  withApiOptions(
5765
5367
  withProjectOptions(
5766
5368
  withDiffOptions(
5767
- yargs33.positional("directory", {
5369
+ yargs32.positional("directory", {
5768
5370
  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.",
5769
5371
  type: "string"
5770
5372
  }).option("format", {
@@ -5841,11 +5443,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
5841
5443
  var QuirkPushModule = {
5842
5444
  command: "push <directory>",
5843
5445
  describe: "Pushes all quirks from files in a directory or package to Uniform",
5844
- builder: (yargs33) => withConfiguration(
5446
+ builder: (yargs32) => withConfiguration(
5845
5447
  withApiOptions(
5846
5448
  withProjectOptions(
5847
5449
  withDiffOptions(
5848
- yargs33.positional("directory", {
5450
+ yargs32.positional("directory", {
5849
5451
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
5850
5452
  type: "string"
5851
5453
  }).option("what-if", {
@@ -5911,10 +5513,10 @@ var QuirkRemoveModule = {
5911
5513
  command: "remove <id>",
5912
5514
  aliases: ["delete", "rm"],
5913
5515
  describe: "Delete a quirk",
5914
- builder: (yargs33) => withConfiguration(
5516
+ builder: (yargs32) => withConfiguration(
5915
5517
  withApiOptions(
5916
5518
  withProjectOptions(
5917
- yargs33.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5519
+ yargs32.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5918
5520
  )
5919
5521
  )
5920
5522
  ),
@@ -5931,10 +5533,10 @@ var QuirkUpdateModule = {
5931
5533
  command: "update <filename>",
5932
5534
  aliases: ["put"],
5933
5535
  describe: "Insert or update a quirk",
5934
- builder: (yargs33) => withConfiguration(
5536
+ builder: (yargs32) => withConfiguration(
5935
5537
  withApiOptions(
5936
5538
  withProjectOptions(
5937
- yargs33.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5539
+ yargs32.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5938
5540
  )
5939
5541
  )
5940
5542
  ),
@@ -5951,25 +5553,25 @@ var QuirkModule = {
5951
5553
  command: "quirk <command>",
5952
5554
  aliases: ["qk"],
5953
5555
  describe: "Commands for Context quirks",
5954
- builder: (yargs33) => yargs33.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5556
+ builder: (yargs32) => yargs32.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5955
5557
  handler: () => {
5956
- yargs17.help();
5558
+ yargs16.help();
5957
5559
  }
5958
5560
  };
5959
5561
 
5960
5562
  // src/commands/context/commands/signal.ts
5961
- import yargs18 from "yargs";
5563
+ import yargs17 from "yargs";
5962
5564
 
5963
5565
  // src/commands/context/commands/signal/get.ts
5964
5566
  import { UncachedSignalClient } from "@uniformdev/context/api";
5965
5567
  var SignalGetModule = {
5966
5568
  command: "get <id>",
5967
5569
  describe: "Fetch a signal",
5968
- builder: (yargs33) => withConfiguration(
5570
+ builder: (yargs32) => withConfiguration(
5969
5571
  withFormatOptions(
5970
5572
  withApiOptions(
5971
5573
  withProjectOptions(
5972
- yargs33.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5574
+ yargs32.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5973
5575
  )
5974
5576
  )
5975
5577
  )
@@ -5993,7 +5595,7 @@ var SignalListModule = {
5993
5595
  command: "list",
5994
5596
  describe: "List signals",
5995
5597
  aliases: ["ls"],
5996
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
5598
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
5997
5599
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5998
5600
  const fetch3 = nodeFetchProxy(proxy);
5999
5601
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6042,11 +5644,11 @@ function createSignalEngineDataSource({
6042
5644
  var SignalPullModule = {
6043
5645
  command: "pull <directory>",
6044
5646
  describe: "Pulls all signals to local files in a directory",
6045
- builder: (yargs33) => withConfiguration(
5647
+ builder: (yargs32) => withConfiguration(
6046
5648
  withApiOptions(
6047
5649
  withProjectOptions(
6048
5650
  withDiffOptions(
6049
- yargs33.positional("directory", {
5651
+ yargs32.positional("directory", {
6050
5652
  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.",
6051
5653
  type: "string"
6052
5654
  }).option("format", {
@@ -6123,11 +5725,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
6123
5725
  var SignalPushModule = {
6124
5726
  command: "push <directory>",
6125
5727
  describe: "Pushes all signals from files in a directory or package to Uniform",
6126
- builder: (yargs33) => withConfiguration(
5728
+ builder: (yargs32) => withConfiguration(
6127
5729
  withApiOptions(
6128
5730
  withProjectOptions(
6129
5731
  withDiffOptions(
6130
- yargs33.positional("directory", {
5732
+ yargs32.positional("directory", {
6131
5733
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
6132
5734
  type: "string"
6133
5735
  }).option("what-if", {
@@ -6193,10 +5795,10 @@ var SignalRemoveModule = {
6193
5795
  command: "remove <id>",
6194
5796
  aliases: ["delete", "rm"],
6195
5797
  describe: "Delete a signal",
6196
- builder: (yargs33) => withConfiguration(
5798
+ builder: (yargs32) => withConfiguration(
6197
5799
  withApiOptions(
6198
5800
  withProjectOptions(
6199
- yargs33.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
5801
+ yargs32.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
6200
5802
  )
6201
5803
  )
6202
5804
  ),
@@ -6213,10 +5815,10 @@ var SignalUpdateModule = {
6213
5815
  command: "update <filename>",
6214
5816
  aliases: ["put"],
6215
5817
  describe: "Insert or update a signal",
6216
- builder: (yargs33) => withConfiguration(
5818
+ builder: (yargs32) => withConfiguration(
6217
5819
  withApiOptions(
6218
5820
  withProjectOptions(
6219
- yargs33.positional("filename", { demandOption: true, describe: "Signal file to put" })
5821
+ yargs32.positional("filename", { demandOption: true, describe: "Signal file to put" })
6220
5822
  )
6221
5823
  )
6222
5824
  ),
@@ -6233,25 +5835,25 @@ var SignalModule = {
6233
5835
  command: "signal <command>",
6234
5836
  aliases: ["sig"],
6235
5837
  describe: "Commands for Context signals",
6236
- builder: (yargs33) => yargs33.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
5838
+ builder: (yargs32) => yargs32.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
6237
5839
  handler: () => {
6238
- yargs18.help();
5840
+ yargs17.help();
6239
5841
  }
6240
5842
  };
6241
5843
 
6242
5844
  // src/commands/context/commands/test.ts
6243
- import yargs19 from "yargs";
5845
+ import yargs18 from "yargs";
6244
5846
 
6245
5847
  // src/commands/context/commands/test/get.ts
6246
5848
  import { UncachedTestClient } from "@uniformdev/context/api";
6247
5849
  var TestGetModule = {
6248
5850
  command: "get <id>",
6249
5851
  describe: "Fetch a test",
6250
- builder: (yargs33) => withConfiguration(
5852
+ builder: (yargs32) => withConfiguration(
6251
5853
  withFormatOptions(
6252
5854
  withApiOptions(
6253
5855
  withProjectOptions(
6254
- yargs33.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
5856
+ yargs32.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
6255
5857
  )
6256
5858
  )
6257
5859
  )
@@ -6275,7 +5877,7 @@ var TestListModule = {
6275
5877
  command: "list",
6276
5878
  describe: "List tests",
6277
5879
  aliases: ["ls"],
6278
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
5880
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
6279
5881
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6280
5882
  const fetch3 = nodeFetchProxy(proxy);
6281
5883
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6324,11 +5926,11 @@ function createTestEngineDataSource({
6324
5926
  var TestPullModule = {
6325
5927
  command: "pull <directory>",
6326
5928
  describe: "Pulls all tests to local files in a directory",
6327
- builder: (yargs33) => withConfiguration(
5929
+ builder: (yargs32) => withConfiguration(
6328
5930
  withApiOptions(
6329
5931
  withProjectOptions(
6330
5932
  withDiffOptions(
6331
- yargs33.positional("directory", {
5933
+ yargs32.positional("directory", {
6332
5934
  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.",
6333
5935
  type: "string"
6334
5936
  }).option("format", {
@@ -6405,11 +6007,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
6405
6007
  var TestPushModule = {
6406
6008
  command: "push <directory>",
6407
6009
  describe: "Pushes all tests from files in a directory or package to Uniform",
6408
- builder: (yargs33) => withConfiguration(
6010
+ builder: (yargs32) => withConfiguration(
6409
6011
  withApiOptions(
6410
6012
  withProjectOptions(
6411
6013
  withDiffOptions(
6412
- yargs33.positional("directory", {
6014
+ yargs32.positional("directory", {
6413
6015
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
6414
6016
  type: "string"
6415
6017
  }).option("what-if", {
@@ -6475,10 +6077,10 @@ var TestRemoveModule = {
6475
6077
  command: "remove <id>",
6476
6078
  aliases: ["delete", "rm"],
6477
6079
  describe: "Delete a test",
6478
- builder: (yargs33) => withConfiguration(
6080
+ builder: (yargs32) => withConfiguration(
6479
6081
  withApiOptions(
6480
6082
  withProjectOptions(
6481
- yargs33.positional("id", { demandOption: true, describe: "Test public ID to delete" })
6083
+ yargs32.positional("id", { demandOption: true, describe: "Test public ID to delete" })
6482
6084
  )
6483
6085
  )
6484
6086
  ),
@@ -6495,9 +6097,9 @@ var TestUpdateModule = {
6495
6097
  command: "update <filename>",
6496
6098
  aliases: ["put"],
6497
6099
  describe: "Insert or update a test",
6498
- builder: (yargs33) => withConfiguration(
6100
+ builder: (yargs32) => withConfiguration(
6499
6101
  withApiOptions(
6500
- withProjectOptions(yargs33.positional("filename", { demandOption: true, describe: "Test file to put" }))
6102
+ withProjectOptions(yargs32.positional("filename", { demandOption: true, describe: "Test file to put" }))
6501
6103
  )
6502
6104
  ),
6503
6105
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -6512,9 +6114,9 @@ var TestUpdateModule = {
6512
6114
  var TestModule = {
6513
6115
  command: "test <command>",
6514
6116
  describe: "Commands for Context A/B tests",
6515
- builder: (yargs33) => yargs33.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
6117
+ builder: (yargs32) => yargs32.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
6516
6118
  handler: () => {
6517
- yargs19.help();
6119
+ yargs18.help();
6518
6120
  }
6519
6121
  };
6520
6122
 
@@ -6523,20 +6125,20 @@ var ContextCommand = {
6523
6125
  command: "context <command>",
6524
6126
  aliases: ["ctx"],
6525
6127
  describe: "Uniform Context commands",
6526
- builder: (yargs33) => yargs33.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
6128
+ builder: (yargs32) => yargs32.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
6527
6129
  handler: () => {
6528
- yargs20.showHelp();
6130
+ yargs19.showHelp();
6529
6131
  }
6530
6132
  };
6531
6133
 
6532
6134
  // src/commands/integration/index.ts
6533
- import yargs23 from "yargs";
6135
+ import yargs22 from "yargs";
6534
6136
 
6535
6137
  // src/commands/integration/commands/definition.ts
6536
- import yargs22 from "yargs";
6138
+ import yargs21 from "yargs";
6537
6139
 
6538
6140
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
6539
- import yargs21 from "yargs";
6141
+ import yargs20 from "yargs";
6540
6142
 
6541
6143
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
6542
6144
  import { readFileSync as readFileSync2 } from "fs";
@@ -6574,8 +6176,8 @@ var EdgehancerClient = class extends ApiClient {
6574
6176
  };
6575
6177
 
6576
6178
  // src/commands/integration/commands/definition/edgehancer/util.ts
6577
- function withEdgehancerIdOptions(yargs33) {
6578
- return yargs33.option("connectorType", {
6179
+ function withEdgehancerIdOptions(yargs32) {
6180
+ return yargs32.option("connectorType", {
6579
6181
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
6580
6182
  demandOption: true,
6581
6183
  type: "string"
@@ -6595,11 +6197,11 @@ function withEdgehancerIdOptions(yargs33) {
6595
6197
  var IntegrationEdgehancerDeployModule = {
6596
6198
  command: "deploy <filename>",
6597
6199
  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.",
6598
- builder: (yargs33) => withConfiguration(
6200
+ builder: (yargs32) => withConfiguration(
6599
6201
  withApiOptions(
6600
6202
  withTeamOptions(
6601
6203
  withEdgehancerIdOptions(
6602
- yargs33.positional("filename", {
6204
+ yargs32.positional("filename", {
6603
6205
  demandOption: true,
6604
6206
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
6605
6207
  })
@@ -6619,7 +6221,7 @@ var IntegrationEdgehancerDeployModule = {
6619
6221
  var IntegrationEdgehancerRemoveModule = {
6620
6222
  command: "remove",
6621
6223
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
6622
- builder: (yargs33) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs33)))),
6224
+ builder: (yargs32) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs32)))),
6623
6225
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
6624
6226
  const fetch3 = nodeFetchProxy(proxy);
6625
6227
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch3, teamId });
@@ -6631,9 +6233,9 @@ var IntegrationEdgehancerRemoveModule = {
6631
6233
  var IntegrationEdgehancerModule = {
6632
6234
  command: "edgehancer <command>",
6633
6235
  describe: "Commands for managing custom integration edgehancers at the team level.",
6634
- builder: (yargs33) => yargs33.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
6236
+ builder: (yargs32) => yargs32.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
6635
6237
  handler: () => {
6636
- yargs21.help();
6238
+ yargs20.help();
6637
6239
  }
6638
6240
  };
6639
6241
 
@@ -6673,10 +6275,10 @@ var DefinitionClient = class extends ApiClient2 {
6673
6275
  var IntegrationDefinitionRegisterModule = {
6674
6276
  command: "register <filename>",
6675
6277
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
6676
- builder: (yargs33) => withConfiguration(
6278
+ builder: (yargs32) => withConfiguration(
6677
6279
  withApiOptions(
6678
6280
  withTeamOptions(
6679
- yargs33.positional("filename", {
6281
+ yargs32.positional("filename", {
6680
6282
  demandOption: true,
6681
6283
  describe: "Integration definition manifest to register"
6682
6284
  })
@@ -6695,10 +6297,10 @@ var IntegrationDefinitionRegisterModule = {
6695
6297
  var IntegrationDefinitionRemoveModule = {
6696
6298
  command: "remove <type>",
6697
6299
  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.",
6698
- builder: (yargs33) => withConfiguration(
6300
+ builder: (yargs32) => withConfiguration(
6699
6301
  withApiOptions(
6700
6302
  withTeamOptions(
6701
- yargs33.positional("type", {
6303
+ yargs32.positional("type", {
6702
6304
  demandOption: true,
6703
6305
  describe: "Integration type (from its manifest) to remove."
6704
6306
  })
@@ -6716,9 +6318,9 @@ var IntegrationDefinitionRemoveModule = {
6716
6318
  var IntegrationDefinitionModule = {
6717
6319
  command: "definition <command>",
6718
6320
  describe: "Commands for managing custom integration definitions at the team level.",
6719
- builder: (yargs33) => yargs33.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
6321
+ builder: (yargs32) => yargs32.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
6720
6322
  handler: () => {
6721
- yargs22.help();
6323
+ yargs21.help();
6722
6324
  }
6723
6325
  };
6724
6326
 
@@ -6758,10 +6360,10 @@ var InstallClient = class extends ApiClient3 {
6758
6360
  var IntegrationInstallModule = {
6759
6361
  command: "install <type>",
6760
6362
  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.",
6761
- builder: (yargs33) => withConfiguration(
6363
+ builder: (yargs32) => withConfiguration(
6762
6364
  withApiOptions(
6763
6365
  withProjectOptions(
6764
- yargs33.positional("type", {
6366
+ yargs32.positional("type", {
6765
6367
  demandOption: true,
6766
6368
  describe: "Integration type to install (as defined in its manifest)"
6767
6369
  }).option("configuration", {
@@ -6783,10 +6385,10 @@ var IntegrationInstallModule = {
6783
6385
  var IntegrationUninstallModule = {
6784
6386
  command: "uninstall <type>",
6785
6387
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
6786
- builder: (yargs33) => withConfiguration(
6388
+ builder: (yargs32) => withConfiguration(
6787
6389
  withApiOptions(
6788
6390
  withProjectOptions(
6789
- yargs33.positional("type", {
6391
+ yargs32.positional("type", {
6790
6392
  demandOption: true,
6791
6393
  describe: "Integration type to uninstall (as defined in its manifest)"
6792
6394
  })
@@ -6804,9 +6406,9 @@ var IntegrationUninstallModule = {
6804
6406
  var IntegrationCommand = {
6805
6407
  command: "integration <command>",
6806
6408
  describe: "Integration management commands",
6807
- builder: (yargs33) => yargs33.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
6409
+ builder: (yargs32) => yargs32.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
6808
6410
  handler: () => {
6809
- yargs23.showHelp();
6411
+ yargs22.showHelp();
6810
6412
  }
6811
6413
  };
6812
6414
 
@@ -6834,7 +6436,7 @@ import { PostHog } from "posthog-node";
6834
6436
  // package.json
6835
6437
  var package_default = {
6836
6438
  name: "@uniformdev/cli",
6837
- version: "19.137.0",
6439
+ version: "19.138.0",
6838
6440
  description: "Uniform command line interface tool",
6839
6441
  license: "SEE LICENSE IN LICENSE.txt",
6840
6442
  main: "./cli.js",
@@ -7843,10 +7445,10 @@ var NewMeshCmd = {
7843
7445
  };
7844
7446
 
7845
7447
  // src/commands/optimize/index.ts
7846
- import yargs25 from "yargs";
7448
+ import yargs24 from "yargs";
7847
7449
 
7848
7450
  // src/commands/optimize/manifest.ts
7849
- import yargs24 from "yargs";
7451
+ import yargs23 from "yargs";
7850
7452
 
7851
7453
  // src/commands/optimize/manifest/download.ts
7852
7454
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -7861,7 +7463,7 @@ var UniformBaseUrl = "https://uniform.app";
7861
7463
  var module = {
7862
7464
  command: "download [output]",
7863
7465
  describe: "Download intent manifest",
7864
- builder: (yargs33) => yargs33.option("apiKey", {
7466
+ builder: (yargs32) => yargs32.option("apiKey", {
7865
7467
  alias: "k",
7866
7468
  demandOption: true,
7867
7469
  string: true,
@@ -7962,10 +7564,10 @@ var module2 = {
7962
7564
  command: "manifest <command>",
7963
7565
  describe: "Intent manifest commands",
7964
7566
  builder: () => {
7965
- return yargs24.command(download_default);
7567
+ return yargs23.command(download_default);
7966
7568
  },
7967
7569
  handler: () => {
7968
- yargs24.showHelp();
7570
+ yargs23.showHelp();
7969
7571
  }
7970
7572
  };
7971
7573
  var manifest_default = module2;
@@ -7976,29 +7578,29 @@ var OptimizeCommand = {
7976
7578
  aliases: ["opt"],
7977
7579
  describe: "Uniform Optimize commands",
7978
7580
  builder: () => {
7979
- return yargs25.command(manifest_default);
7581
+ return yargs24.command(manifest_default);
7980
7582
  },
7981
7583
  handler: () => {
7982
- yargs25.showHelp();
7584
+ yargs24.showHelp();
7983
7585
  }
7984
7586
  };
7985
7587
 
7986
7588
  // src/commands/project-map/index.ts
7987
- import yargs28 from "yargs";
7589
+ import yargs27 from "yargs";
7988
7590
 
7989
7591
  // src/commands/project-map/commands/projectMapDefinition.ts
7990
- import yargs26 from "yargs";
7592
+ import yargs25 from "yargs";
7991
7593
 
7992
7594
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
7993
7595
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
7994
7596
  var ProjectMapDefinitionGetModule = {
7995
7597
  command: "get <id>",
7996
7598
  describe: "Fetch a project map",
7997
- builder: (yargs33) => withFormatOptions(
7599
+ builder: (yargs32) => withFormatOptions(
7998
7600
  withConfiguration(
7999
7601
  withApiOptions(
8000
7602
  withProjectOptions(
8001
- yargs33.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
7603
+ yargs32.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
8002
7604
  )
8003
7605
  )
8004
7606
  )
@@ -8022,7 +7624,7 @@ var ProjectMapDefinitionListModule = {
8022
7624
  command: "list",
8023
7625
  describe: "List of project maps",
8024
7626
  aliases: ["ls"],
8025
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
7627
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
8026
7628
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8027
7629
  const fetch3 = nodeFetchProxy(proxy);
8028
7630
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8079,11 +7681,11 @@ function createProjectMapDefinitionEngineDataSource({
8079
7681
  var ProjectMapDefinitionPullModule = {
8080
7682
  command: "pull <directory>",
8081
7683
  describe: "Pulls all project maps to local files in a directory",
8082
- builder: (yargs33) => withConfiguration(
7684
+ builder: (yargs32) => withConfiguration(
8083
7685
  withApiOptions(
8084
7686
  withProjectOptions(
8085
7687
  withDiffOptions(
8086
- yargs33.positional("directory", {
7688
+ yargs32.positional("directory", {
8087
7689
  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.",
8088
7690
  type: "string"
8089
7691
  }).option("format", {
@@ -8160,11 +7762,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
8160
7762
  var ProjectMapDefinitionPushModule = {
8161
7763
  command: "push <directory>",
8162
7764
  describe: "Pushes all project maps from files in a directory or package to Uniform",
8163
- builder: (yargs33) => withConfiguration(
7765
+ builder: (yargs32) => withConfiguration(
8164
7766
  withApiOptions(
8165
7767
  withProjectOptions(
8166
7768
  withDiffOptions(
8167
- yargs33.positional("directory", {
7769
+ yargs32.positional("directory", {
8168
7770
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8169
7771
  type: "string"
8170
7772
  }).option("what-if", {
@@ -8230,9 +7832,9 @@ var ProjectMapDefinitionRemoveModule = {
8230
7832
  command: "remove <id>",
8231
7833
  aliases: ["delete", "rm"],
8232
7834
  describe: "Delete a project map",
8233
- builder: (yargs33) => withConfiguration(
7835
+ builder: (yargs32) => withConfiguration(
8234
7836
  withApiOptions(
8235
- withProjectOptions(yargs33.positional("id", { demandOption: true, describe: " UUID to delete" }))
7837
+ withProjectOptions(yargs32.positional("id", { demandOption: true, describe: " UUID to delete" }))
8236
7838
  )
8237
7839
  ),
8238
7840
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8248,10 +7850,10 @@ var ProjectMapDefinitionUpdateModule = {
8248
7850
  command: "update <filename>",
8249
7851
  aliases: ["put"],
8250
7852
  describe: "Insert or update a project map",
8251
- builder: (yargs33) => withConfiguration(
7853
+ builder: (yargs32) => withConfiguration(
8252
7854
  withApiOptions(
8253
7855
  withProjectOptions(
8254
- yargs33.positional("filename", { demandOption: true, describe: "Project map file to put" })
7856
+ yargs32.positional("filename", { demandOption: true, describe: "Project map file to put" })
8255
7857
  )
8256
7858
  )
8257
7859
  ),
@@ -8267,25 +7869,25 @@ var ProjectMapDefinitionUpdateModule = {
8267
7869
  var ProjectMapDefinitionModule = {
8268
7870
  command: "definition <command>",
8269
7871
  describe: "Commands for ProjectMap Definitions",
8270
- builder: (yargs33) => yargs33.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
7872
+ builder: (yargs32) => yargs32.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
8271
7873
  handler: () => {
8272
- yargs26.help();
7874
+ yargs25.help();
8273
7875
  }
8274
7876
  };
8275
7877
 
8276
7878
  // src/commands/project-map/commands/projectMapNode.ts
8277
- import yargs27 from "yargs";
7879
+ import yargs26 from "yargs";
8278
7880
 
8279
7881
  // src/commands/project-map/commands/ProjectMapNode/get.ts
8280
7882
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
8281
7883
  var ProjectMapNodeGetModule = {
8282
7884
  command: "get <id> <projectMapId>",
8283
7885
  describe: "Fetch a project map node",
8284
- builder: (yargs33) => withConfiguration(
7886
+ builder: (yargs32) => withConfiguration(
8285
7887
  withFormatOptions(
8286
7888
  withApiOptions(
8287
7889
  withProjectOptions(
8288
- yargs33.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
7890
+ yargs32.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
8289
7891
  )
8290
7892
  )
8291
7893
  )
@@ -8311,12 +7913,12 @@ var ProjectMapNodeListModule = {
8311
7913
  command: "list <projectMapId>",
8312
7914
  describe: "List project map nodes",
8313
7915
  aliases: ["ls"],
8314
- builder: (yargs33) => withConfiguration(
7916
+ builder: (yargs32) => withConfiguration(
8315
7917
  withFormatOptions(
8316
7918
  withApiOptions(
8317
7919
  withProjectOptions(
8318
7920
  withStateOptions(
8319
- yargs33.positional("projectMapId", {
7921
+ yargs32.positional("projectMapId", {
8320
7922
  demandOption: true,
8321
7923
  describe: "ProjectMap UUID to fetch from"
8322
7924
  })
@@ -8388,11 +7990,11 @@ function createProjectMapNodeEngineDataSource({
8388
7990
  var ProjectMapNodePullModule = {
8389
7991
  command: "pull <directory>",
8390
7992
  describe: "Pulls all project maps nodes to local files in a directory",
8391
- builder: (yargs33) => withConfiguration(
7993
+ builder: (yargs32) => withConfiguration(
8392
7994
  withApiOptions(
8393
7995
  withProjectOptions(
8394
7996
  withDiffOptions(
8395
- yargs33.positional("directory", {
7997
+ yargs32.positional("directory", {
8396
7998
  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.",
8397
7999
  type: "string"
8398
8000
  }).option("format", {
@@ -8473,11 +8075,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
8473
8075
  var ProjectMapNodePushModule = {
8474
8076
  command: "push <directory>",
8475
8077
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
8476
- builder: (yargs33) => withConfiguration(
8078
+ builder: (yargs32) => withConfiguration(
8477
8079
  withApiOptions(
8478
8080
  withProjectOptions(
8479
8081
  withDiffOptions(
8480
- yargs33.positional("directory", {
8082
+ yargs32.positional("directory", {
8481
8083
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8482
8084
  type: "string"
8483
8085
  }).option("what-if", {
@@ -8552,10 +8154,10 @@ var ProjectMapNodeRemoveModule = {
8552
8154
  command: "remove <id> <projectMapId>",
8553
8155
  aliases: ["delete", "rm"],
8554
8156
  describe: "Delete a project map node",
8555
- builder: (yargs33) => withConfiguration(
8157
+ builder: (yargs32) => withConfiguration(
8556
8158
  withApiOptions(
8557
8159
  withProjectOptions(
8558
- yargs33.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
8160
+ yargs32.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
8559
8161
  )
8560
8162
  )
8561
8163
  ),
@@ -8572,10 +8174,10 @@ var ProjectMapNodeUpdateModule = {
8572
8174
  command: "update <filename> <projectMapId>",
8573
8175
  aliases: ["put"],
8574
8176
  describe: "Insert or update a project map node",
8575
- builder: (yargs33) => withConfiguration(
8177
+ builder: (yargs32) => withConfiguration(
8576
8178
  withApiOptions(
8577
8179
  withProjectOptions(
8578
- yargs33.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
8180
+ yargs32.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
8579
8181
  )
8580
8182
  )
8581
8183
  ),
@@ -8591,9 +8193,9 @@ var ProjectMapNodeUpdateModule = {
8591
8193
  var ProjectMapNodeModule = {
8592
8194
  command: "node <command>",
8593
8195
  describe: "Commands for ProjectMap Nodes",
8594
- builder: (yargs33) => yargs33.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
8196
+ builder: (yargs32) => yargs32.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
8595
8197
  handler: () => {
8596
- yargs27.help();
8198
+ yargs26.help();
8597
8199
  }
8598
8200
  };
8599
8201
 
@@ -8602,28 +8204,28 @@ var ProjectMapCommand = {
8602
8204
  command: "project-map <command>",
8603
8205
  aliases: ["prm"],
8604
8206
  describe: "Uniform ProjectMap commands",
8605
- builder: (yargs33) => yargs33.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
8207
+ builder: (yargs32) => yargs32.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
8606
8208
  handler: () => {
8607
- yargs28.showHelp();
8209
+ yargs27.showHelp();
8608
8210
  }
8609
8211
  };
8610
8212
 
8611
8213
  // src/commands/redirect/index.ts
8612
- import yargs30 from "yargs";
8214
+ import yargs29 from "yargs";
8613
8215
 
8614
8216
  // src/commands/redirect/commands/redirect.ts
8615
- import yargs29 from "yargs";
8217
+ import yargs28 from "yargs";
8616
8218
 
8617
8219
  // src/commands/redirect/commands/RedirectDefinition/get.ts
8618
8220
  import { UncachedRedirectClient } from "@uniformdev/redirect";
8619
8221
  var RedirectDefinitionGetModule = {
8620
8222
  command: "get <id>",
8621
8223
  describe: "Fetch a redirect",
8622
- builder: (yargs33) => withConfiguration(
8224
+ builder: (yargs32) => withConfiguration(
8623
8225
  withFormatOptions(
8624
8226
  withApiOptions(
8625
8227
  withProjectOptions(
8626
- yargs33.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
8228
+ yargs32.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
8627
8229
  )
8628
8230
  )
8629
8231
  )
@@ -8647,7 +8249,7 @@ var RedirectDefinitionListModule = {
8647
8249
  command: "list",
8648
8250
  describe: "List of redirects",
8649
8251
  aliases: ["ls"],
8650
- builder: (yargs33) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs33)))),
8252
+ builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
8651
8253
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8652
8254
  const fetch3 = nodeFetchProxy(proxy);
8653
8255
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8713,11 +8315,11 @@ function createRedirectDefinitionEngineDataSource({
8713
8315
  var RedirectDefinitionPullModule = {
8714
8316
  command: "pull <directory>",
8715
8317
  describe: "Pulls all redirects to local files in a directory",
8716
- builder: (yargs33) => withConfiguration(
8318
+ builder: (yargs32) => withConfiguration(
8717
8319
  withApiOptions(
8718
8320
  withProjectOptions(
8719
8321
  withDiffOptions(
8720
- yargs33.positional("directory", {
8322
+ yargs32.positional("directory", {
8721
8323
  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.",
8722
8324
  type: "string"
8723
8325
  }).option("format", {
@@ -8795,11 +8397,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
8795
8397
  var RedirectDefinitionPushModule = {
8796
8398
  command: "push <directory>",
8797
8399
  describe: "Pushes all redirects from files in a directory or package to Uniform",
8798
- builder: (yargs33) => withConfiguration(
8400
+ builder: (yargs32) => withConfiguration(
8799
8401
  withApiOptions(
8800
8402
  withProjectOptions(
8801
8403
  withDiffOptions(
8802
- yargs33.positional("directory", {
8404
+ yargs32.positional("directory", {
8803
8405
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
8804
8406
  type: "string"
8805
8407
  }).option("what-if", {
@@ -8865,9 +8467,9 @@ var RedirectDefinitionRemoveModule = {
8865
8467
  command: "remove <id>",
8866
8468
  aliases: ["delete", "rm"],
8867
8469
  describe: "Delete a redirect",
8868
- builder: (yargs33) => withConfiguration(
8470
+ builder: (yargs32) => withConfiguration(
8869
8471
  withApiOptions(
8870
- withProjectOptions(yargs33.positional("id", { demandOption: true, describe: " UUID to delete" }))
8472
+ withProjectOptions(yargs32.positional("id", { demandOption: true, describe: " UUID to delete" }))
8871
8473
  )
8872
8474
  ),
8873
8475
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8883,10 +8485,10 @@ var RedirectDefinitionUpdateModule = {
8883
8485
  command: "update <filename>",
8884
8486
  aliases: ["put"],
8885
8487
  describe: "Insert or update a redirect",
8886
- builder: (yargs33) => withConfiguration(
8488
+ builder: (yargs32) => withConfiguration(
8887
8489
  withApiOptions(
8888
8490
  withProjectOptions(
8889
- yargs33.positional("filename", { demandOption: true, describe: "Redirect file to put" })
8491
+ yargs32.positional("filename", { demandOption: true, describe: "Redirect file to put" })
8890
8492
  )
8891
8493
  )
8892
8494
  ),
@@ -8902,9 +8504,9 @@ var RedirectDefinitionUpdateModule = {
8902
8504
  var RedirectDefinitionModule = {
8903
8505
  command: "definition <command>",
8904
8506
  describe: "Commands for Redirect Definitions",
8905
- builder: (yargs33) => yargs33.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
8507
+ builder: (yargs32) => yargs32.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
8906
8508
  handler: () => {
8907
- yargs29.help();
8509
+ yargs28.help();
8908
8510
  }
8909
8511
  };
8910
8512
 
@@ -8913,14 +8515,14 @@ var RedirectCommand = {
8913
8515
  command: "redirect <command>",
8914
8516
  aliases: ["red"],
8915
8517
  describe: "Uniform Redirect commands",
8916
- builder: (yargs33) => yargs33.command(RedirectDefinitionModule).demandCommand(),
8518
+ builder: (yargs32) => yargs32.command(RedirectDefinitionModule).demandCommand(),
8917
8519
  handler: () => {
8918
- yargs30.showHelp();
8520
+ yargs29.showHelp();
8919
8521
  }
8920
8522
  };
8921
8523
 
8922
8524
  // src/commands/sync/index.ts
8923
- import yargs31 from "yargs";
8525
+ import yargs30 from "yargs";
8924
8526
 
8925
8527
  // src/commands/sync/commands/util.ts
8926
8528
  import ora2 from "ora";
@@ -8953,11 +8555,11 @@ function spin(entityType) {
8953
8555
  var SyncPullModule = {
8954
8556
  command: "pull",
8955
8557
  describe: "Pulls whole project to local files in a directory",
8956
- builder: (yargs33) => withConfiguration(
8558
+ builder: (yargs32) => withConfiguration(
8957
8559
  withApiOptions(
8958
8560
  withProjectOptions(
8959
8561
  withDiffOptions(
8960
- yargs33.option("what-if", {
8562
+ yargs32.option("what-if", {
8961
8563
  alias: ["w"],
8962
8564
  describe: "What-if mode reports what would be done but changes no files",
8963
8565
  default: false,
@@ -8968,11 +8570,8 @@ var SyncPullModule = {
8968
8570
  )
8969
8571
  ),
8970
8572
  handler: async ({ serialization, ...otherParams }) => {
8971
- var _a, _b;
8573
+ var _a;
8972
8574
  const config2 = serialization;
8973
- if (config2.entitiesConfig.pattern) {
8974
- (_a = config2.entitiesConfig).componentPattern ?? (_a.componentPattern = config2.entitiesConfig.pattern);
8975
- }
8976
8575
  const enabledEntities = Object.entries({
8977
8576
  locale: LocalePullModule,
8978
8577
  asset: AssetPullModule,
@@ -8985,18 +8584,17 @@ var SyncPullModule = {
8985
8584
  enrichment: EnrichmentPullModule,
8986
8585
  aggregate: AggregatePullModule,
8987
8586
  component: ComponentPullModule,
8988
- componentPattern: ComponentPatternPullModule,
8587
+ pattern: PatternPullModule,
8989
8588
  composition: CompositionPullModule,
8990
8589
  projectMapDefinition: ProjectMapDefinitionPullModule,
8991
8590
  projectMapNode: ProjectMapNodePullModule,
8992
8591
  redirect: RedirectDefinitionPullModule,
8993
8592
  entry: EntryPullModule,
8994
- entryPattern: EntryPatternPullModule,
8995
8593
  contentType: ContentTypePullModule
8996
8594
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8997
8595
  }).filter(([entityType]) => {
8998
- var _a2, _b2, _c, _d, _e, _f;
8999
- return Boolean((_a2 = config2.entitiesConfig) == null ? void 0 : _a2[entityType]) && ((_c = (_b2 = config2.entitiesConfig) == null ? void 0 : _b2[entityType]) == null ? void 0 : _c.disabled) !== true && ((_f = (_e = (_d = config2.entitiesConfig) == null ? void 0 : _d[entityType]) == null ? void 0 : _e.pull) == null ? void 0 : _f.disabled) !== true;
8596
+ var _a2, _b, _c, _d, _e, _f;
8597
+ return Boolean((_a2 = config2.entitiesConfig) == null ? void 0 : _a2[entityType]) && ((_c = (_b = config2.entitiesConfig) == null ? void 0 : _b[entityType]) == null ? void 0 : _c.disabled) !== true && ((_f = (_e = (_d = config2.entitiesConfig) == null ? void 0 : _d[entityType]) == null ? void 0 : _e.pull) == null ? void 0 : _f.disabled) !== true;
9000
8598
  });
9001
8599
  if (enabledEntities.length === 0) {
9002
8600
  throw new Error(
@@ -9008,14 +8606,14 @@ var SyncPullModule = {
9008
8606
  const entityConfigSupportsPullState = (entityConfig2) => {
9009
8607
  return entityConfig2 !== void 0 && "state" in entityConfig2;
9010
8608
  };
9011
- const entityConfig = (_b = config2.entitiesConfig) == null ? void 0 : _b[entityType];
8609
+ const entityConfig = (_a = config2.entitiesConfig) == null ? void 0 : _a[entityType];
9012
8610
  try {
9013
8611
  await module3.handler({
9014
8612
  ...otherParams,
9015
8613
  state: entityConfigSupportsPullState(entityConfig) ? entityConfig.state ?? 0 : 0,
9016
8614
  format: getFormat(entityType, config2),
9017
8615
  onlyCompositions: entityType === "composition" ? true : void 0,
9018
- onlyPatterns: entityType === "componentPattern" ? true : void 0,
8616
+ onlyPatterns: entityType === "pattern" ? true : void 0,
9019
8617
  mode: getPullMode(entityType, config2),
9020
8618
  directory: getPullFilename(entityType, config2),
9021
8619
  allowEmptySource: config2.allowEmptySource
@@ -9056,11 +8654,11 @@ var getFormat = (entityType, config2) => {
9056
8654
  var SyncPushModule = {
9057
8655
  command: "push",
9058
8656
  describe: "Pushes whole project data from files in a directory or package to Uniform",
9059
- builder: (yargs33) => withConfiguration(
8657
+ builder: (yargs32) => withConfiguration(
9060
8658
  withApiOptions(
9061
8659
  withProjectOptions(
9062
8660
  withDiffOptions(
9063
- yargs33.option("what-if", {
8661
+ yargs32.option("what-if", {
9064
8662
  alias: ["w"],
9065
8663
  describe: "What-if mode reports what would be done but changes nothing",
9066
8664
  default: false,
@@ -9071,11 +8669,8 @@ var SyncPushModule = {
9071
8669
  )
9072
8670
  ),
9073
8671
  handler: async ({ serialization, ...otherParams }) => {
9074
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
8672
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
9075
8673
  const config2 = serialization;
9076
- if (config2.entitiesConfig.pattern) {
9077
- (_a = config2.entitiesConfig).componentPattern ?? (_a.componentPattern = config2.entitiesConfig.pattern);
9078
- }
9079
8674
  const enabledEntities = Object.entries({
9080
8675
  locale: LocalePushModule,
9081
8676
  asset: AssetPushModule,
@@ -9088,14 +8683,13 @@ var SyncPushModule = {
9088
8683
  enrichment: EnrichmentPushModule,
9089
8684
  aggregate: AggregatePushModule,
9090
8685
  component: ComponentPushModule,
9091
- componentPattern: ComponentPatternPushModule,
8686
+ pattern: PatternPushModule,
9092
8687
  composition: CompositionPushModule,
9093
8688
  projectMapDefinition: ProjectMapDefinitionPushModule,
9094
8689
  projectMapNode: ProjectMapNodePushModule,
9095
8690
  redirect: RedirectDefinitionPushModule,
9096
8691
  contentType: ContentTypePushModule,
9097
- entry: EntryPushModule,
9098
- entryPattern: EntryPatternPushModule
8692
+ entry: EntryPushModule
9099
8693
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9100
8694
  }).filter(([entityType]) => {
9101
8695
  var _a2, _b2, _c2, _d2, _e2, _f2;
@@ -9114,7 +8708,7 @@ var SyncPushModule = {
9114
8708
  state: 0,
9115
8709
  format: getFormat2(entityType, config2),
9116
8710
  onlyCompositions: entityType === "composition" ? true : void 0,
9117
- onlyPatterns: entityType === "componentPattern" ? true : void 0,
8711
+ onlyPatterns: entityType === "pattern" ? true : void 0,
9118
8712
  mode: getPushMode(entityType, config2),
9119
8713
  directory: getPushFilename(entityType, config2),
9120
8714
  allowEmptySource: config2.allowEmptySource
@@ -9125,18 +8719,15 @@ var SyncPushModule = {
9125
8719
  throw e;
9126
8720
  }
9127
8721
  }
9128
- if (((_b = config2.entitiesConfig) == null ? void 0 : _b.componentPattern) && ((_e = (_d = (_c = config2.entitiesConfig) == null ? void 0 : _c.componentPattern) == null ? void 0 : _d.push) == null ? void 0 : _e.disabled) !== true && ((_g = (_f = config2.entitiesConfig) == null ? void 0 : _f.componentPattern) == null ? void 0 : _g.publish)) {
9129
- await ComponentPatternPublishModule.handler({ ...otherParams, all: true });
8722
+ if (((_a = config2.entitiesConfig) == null ? void 0 : _a.pattern) && ((_d = (_c = (_b = config2.entitiesConfig) == null ? void 0 : _b.pattern) == null ? void 0 : _c.push) == null ? void 0 : _d.disabled) !== true && ((_f = (_e = config2.entitiesConfig) == null ? void 0 : _e.pattern) == null ? void 0 : _f.publish)) {
8723
+ await PatternPublishModule.handler({ ...otherParams, all: true });
9130
8724
  }
9131
- if (((_h = config2.entitiesConfig) == null ? void 0 : _h.composition) && ((_k = (_j = (_i = config2.entitiesConfig) == null ? void 0 : _i.composition) == null ? void 0 : _j.push) == null ? void 0 : _k.disabled) !== true && ((_m = (_l = config2.entitiesConfig) == null ? void 0 : _l.composition) == null ? void 0 : _m.publish)) {
8725
+ if (((_g = config2.entitiesConfig) == null ? void 0 : _g.composition) && ((_j = (_i = (_h = config2.entitiesConfig) == null ? void 0 : _h.composition) == null ? void 0 : _i.push) == null ? void 0 : _j.disabled) !== true && ((_l = (_k = config2.entitiesConfig) == null ? void 0 : _k.composition) == null ? void 0 : _l.publish)) {
9132
8726
  await CompositionPublishModule.handler({ ...otherParams, all: true });
9133
8727
  }
9134
- if (((_n = config2.entitiesConfig) == null ? void 0 : _n.entry) && ((_q = (_p = (_o = config2.entitiesConfig) == null ? void 0 : _o.entry) == null ? void 0 : _p.push) == null ? void 0 : _q.disabled) !== true && ((_s = (_r = config2.entitiesConfig) == null ? void 0 : _r.entry) == null ? void 0 : _s.publish)) {
8728
+ if (((_m = config2.entitiesConfig) == null ? void 0 : _m.entry) && ((_p = (_o = (_n = config2.entitiesConfig) == null ? void 0 : _n.entry) == null ? void 0 : _o.push) == null ? void 0 : _p.disabled) !== true && ((_r = (_q = config2.entitiesConfig) == null ? void 0 : _q.entry) == null ? void 0 : _r.publish)) {
9135
8729
  await EntryPublishModule.handler({ ...otherParams, all: true });
9136
8730
  }
9137
- if (((_t = config2.entitiesConfig) == null ? void 0 : _t.entryPattern) && ((_w = (_v = (_u = config2.entitiesConfig) == null ? void 0 : _u.entryPattern) == null ? void 0 : _v.push) == null ? void 0 : _w.disabled) !== true && ((_y = (_x = config2.entitiesConfig) == null ? void 0 : _x.entryPattern) == null ? void 0 : _y.publish)) {
9138
- await EntryPatternPublishModule.handler({ ...otherParams, all: true });
9139
- }
9140
8731
  }
9141
8732
  };
9142
8733
  var getPushMode = (entityType, config2) => {
@@ -9167,9 +8758,9 @@ var getFormat2 = (entityType, config2) => {
9167
8758
  var SyncCommand = {
9168
8759
  command: "sync <command>",
9169
8760
  describe: "Uniform Sync commands",
9170
- builder: (yargs33) => yargs33.command(SyncPullModule).command(SyncPushModule).demandCommand(),
8761
+ builder: (yargs32) => yargs32.command(SyncPullModule).command(SyncPushModule).demandCommand(),
9171
8762
  handler: () => {
9172
- yargs31.showHelp();
8763
+ yargs30.showHelp();
9173
8764
  }
9174
8765
  };
9175
8766
 
@@ -9436,7 +9027,7 @@ First found was: v${firstVersion}`;
9436
9027
 
9437
9028
  // src/index.ts
9438
9029
  dotenv.config();
9439
- var yarggery = yargs32(hideBin(process.argv));
9030
+ var yarggery = yargs31(hideBin(process.argv));
9440
9031
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
9441
9032
  var configuration = loadConfig(inlineConfigurationFilePath || null);
9442
9033
  yarggery.option("verbose", {