@uniformdev/cli 19.96.1-alpha.0 → 19.99.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +300 -670
  2. package/package.json +8 -8
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 yargs31 from "yargs";
19
+ import yargs27 from "yargs";
20
20
  import { hideBin } from "yargs/helpers";
21
21
 
22
22
  // src/commands/canvas/index.ts
23
- import yargs12 from "yargs";
23
+ import yargs11 from "yargs";
24
24
 
25
25
  // src/commands/canvas/commands/asset.ts
26
26
  import yargs from "yargs";
@@ -137,14 +137,14 @@ import httpsProxyAgent from "https-proxy-agent";
137
137
  import unfetch from "isomorphic-unfetch";
138
138
  import { dump, load } from "js-yaml";
139
139
  import { dirname, extname, isAbsolute, resolve, sep } from "path";
140
- function withConfiguration(yargs32) {
141
- return yargs32.option("serialization", {
140
+ function withConfiguration(yargs28) {
141
+ return yargs28.option("serialization", {
142
142
  skipValidation: true,
143
143
  hidden: true
144
144
  });
145
145
  }
146
- function withApiOptions(yargs32) {
147
- return yargs32.option("apiKey", {
146
+ function withApiOptions(yargs28) {
147
+ return yargs28.option("apiKey", {
148
148
  describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
149
149
  default: process.env.UNIFORM_CLI_API_KEY ?? // deprecated
150
150
  process.env.CANVAS_CLI_API_KEY ?? // deprecated
@@ -183,8 +183,8 @@ function nodeFetchProxy(proxy) {
183
183
  };
184
184
  return wrappedFetch;
185
185
  }
186
- function withProjectOptions(yargs32) {
187
- return yargs32.option("project", {
186
+ function withProjectOptions(yargs28) {
187
+ return yargs28.option("project", {
188
188
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
189
189
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? // deprecated
190
190
  process.env.CANVAS_CLI_PROJECT_ID ?? // deprecated
@@ -194,17 +194,8 @@ function withProjectOptions(yargs32) {
194
194
  alias: ["p"]
195
195
  });
196
196
  }
197
- function withTeamOptions(yargs32) {
198
- return yargs32.option("team", {
199
- describe: "Uniform team ID. Defaults to UNIFORM_CLI_TEAM_ID or UNIFORM_TEAM_ID env. Supports dotenv.",
200
- default: process.env.UNIFORM_CLI_TEAM_ID ?? process.env.UNIFORM_TEAM_ID,
201
- demandOption: true,
202
- type: "string",
203
- alias: ["p"]
204
- });
205
- }
206
- function withFormatOptions(yargs32) {
207
- return yargs32.option("format", {
197
+ function withFormatOptions(yargs28) {
198
+ return yargs28.option("format", {
208
199
  alias: ["f"],
209
200
  describe: "Output format",
210
201
  default: "yaml",
@@ -216,8 +207,8 @@ function withFormatOptions(yargs32) {
216
207
  type: "string"
217
208
  });
218
209
  }
219
- function withDiffOptions(yargs32) {
220
- return yargs32.option("diff", {
210
+ function withDiffOptions(yargs28) {
211
+ return yargs28.option("diff", {
221
212
  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.",
222
213
  default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
223
214
  type: "string",
@@ -642,12 +633,12 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
642
633
  var AssetGetModule = {
643
634
  command: "get <id>",
644
635
  describe: "Get an asset",
645
- builder: (yargs32) => withConfiguration(
636
+ builder: (yargs28) => withConfiguration(
646
637
  withFormatOptions(
647
638
  withApiOptions(
648
639
  withProjectOptions(
649
640
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
650
- yargs32.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
641
+ yargs28.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
651
642
  )
652
643
  )
653
644
  )
@@ -668,7 +659,7 @@ import { UncachedAssetClient as UncachedAssetClient2 } from "@uniformdev/assets"
668
659
  var AssetListModule = {
669
660
  command: "list",
670
661
  describe: "List assets",
671
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
662
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
672
663
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
673
664
  const fetch3 = nodeFetchProxy(proxy);
674
665
  const client = new UncachedAssetClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1020,8 +1011,8 @@ function prepCompositionForDisk(composition) {
1020
1011
  delete prepped.state;
1021
1012
  return prepped;
1022
1013
  }
1023
- function withStateOptions(yargs32) {
1024
- return yargs32.option("state", {
1014
+ function withStateOptions(yargs28) {
1015
+ return yargs28.option("state", {
1025
1016
  type: "string",
1026
1017
  describe: `Composition state to fetch.`,
1027
1018
  choices: ["preview", "published"],
@@ -1087,11 +1078,11 @@ function writeCanvasPackage(filename, packageContents) {
1087
1078
  var AssetPullModule = {
1088
1079
  command: "pull <directory>",
1089
1080
  describe: "Pulls all assets to local files in a directory",
1090
- builder: (yargs32) => withConfiguration(
1081
+ builder: (yargs28) => withConfiguration(
1091
1082
  withApiOptions(
1092
1083
  withProjectOptions(
1093
1084
  withDiffOptions(
1094
- yargs32.positional("directory", {
1085
+ yargs28.positional("directory", {
1095
1086
  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.",
1096
1087
  type: "string"
1097
1088
  }).option("format", {
@@ -1210,11 +1201,11 @@ import { UncachedFileClient as UncachedFileClient2 } from "@uniformdev/files";
1210
1201
  var AssetPushModule = {
1211
1202
  command: "push <directory>",
1212
1203
  describe: "Pushes all assets from files in a directory to Uniform",
1213
- builder: (yargs32) => withConfiguration(
1204
+ builder: (yargs28) => withConfiguration(
1214
1205
  withApiOptions(
1215
1206
  withProjectOptions(
1216
1207
  withDiffOptions(
1217
- yargs32.positional("directory", {
1208
+ yargs28.positional("directory", {
1218
1209
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
1219
1210
  type: "string"
1220
1211
  }).option("what-if", {
@@ -1314,9 +1305,9 @@ var AssetRemoveModule = {
1314
1305
  command: "remove <id>",
1315
1306
  aliases: ["delete", "rm"],
1316
1307
  describe: "Delete an asset",
1317
- builder: (yargs32) => withConfiguration(
1308
+ builder: (yargs28) => withConfiguration(
1318
1309
  withApiOptions(
1319
- withProjectOptions(yargs32.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1310
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1320
1311
  )
1321
1312
  ),
1322
1313
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -1332,10 +1323,10 @@ var AssetUpdateModule = {
1332
1323
  command: "update <filename>",
1333
1324
  aliases: ["put"],
1334
1325
  describe: "Insert or update an asset",
1335
- builder: (yargs32) => withConfiguration(
1326
+ builder: (yargs28) => withConfiguration(
1336
1327
  withApiOptions(
1337
1328
  withProjectOptions(
1338
- yargs32.positional("filename", { demandOption: true, describe: "Asset file to put" })
1329
+ yargs28.positional("filename", { demandOption: true, describe: "Asset file to put" })
1339
1330
  )
1340
1331
  )
1341
1332
  ),
@@ -1351,7 +1342,7 @@ var AssetUpdateModule = {
1351
1342
  var AssetModule = {
1352
1343
  command: "asset <command>",
1353
1344
  describe: "Commands for Assets",
1354
- builder: (yargs32) => yargs32.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1345
+ builder: (yargs28) => yargs28.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1355
1346
  handler: () => {
1356
1347
  yargs.help();
1357
1348
  }
@@ -1365,11 +1356,11 @@ import { UncachedCategoryClient } from "@uniformdev/canvas";
1365
1356
  var CategoryGetModule = {
1366
1357
  command: "get <id>",
1367
1358
  describe: "Fetch a category",
1368
- builder: (yargs32) => withConfiguration(
1359
+ builder: (yargs28) => withConfiguration(
1369
1360
  withFormatOptions(
1370
1361
  withApiOptions(
1371
1362
  withProjectOptions(
1372
- yargs32.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1363
+ yargs28.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1373
1364
  )
1374
1365
  )
1375
1366
  )
@@ -1394,7 +1385,7 @@ var CategoryListModule = {
1394
1385
  command: "list",
1395
1386
  describe: "List categories",
1396
1387
  aliases: ["ls"],
1397
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32.options({}))))),
1388
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28.options({}))))),
1398
1389
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
1399
1390
  const fetch3 = nodeFetchProxy(proxy);
1400
1391
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1443,11 +1434,11 @@ function createCategoriesEngineDataSource({
1443
1434
  var CategoryPullModule = {
1444
1435
  command: "pull <directory>",
1445
1436
  describe: "Pulls all categories to local files in a directory",
1446
- builder: (yargs32) => withConfiguration(
1437
+ builder: (yargs28) => withConfiguration(
1447
1438
  withApiOptions(
1448
1439
  withProjectOptions(
1449
1440
  withDiffOptions(
1450
- yargs32.positional("directory", {
1441
+ yargs28.positional("directory", {
1451
1442
  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.",
1452
1443
  type: "string"
1453
1444
  }).option("format", {
@@ -1524,11 +1515,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
1524
1515
  var CategoryPushModule = {
1525
1516
  command: "push <directory>",
1526
1517
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1527
- builder: (yargs32) => withConfiguration(
1518
+ builder: (yargs28) => withConfiguration(
1528
1519
  withApiOptions(
1529
1520
  withProjectOptions(
1530
1521
  withDiffOptions(
1531
- yargs32.positional("directory", {
1522
+ yargs28.positional("directory", {
1532
1523
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1533
1524
  type: "string"
1534
1525
  }).option("what-if", {
@@ -1594,10 +1585,10 @@ var CategoryRemoveModule = {
1594
1585
  command: "remove <id>",
1595
1586
  aliases: ["delete", "rm"],
1596
1587
  describe: "Delete a category",
1597
- builder: (yargs32) => withConfiguration(
1588
+ builder: (yargs28) => withConfiguration(
1598
1589
  withApiOptions(
1599
1590
  withProjectOptions(
1600
- yargs32.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1591
+ yargs28.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1601
1592
  )
1602
1593
  )
1603
1594
  ),
@@ -1614,10 +1605,10 @@ var CategoryUpdateModule = {
1614
1605
  command: "update <filename>",
1615
1606
  aliases: ["put"],
1616
1607
  describe: "Insert or update a category",
1617
- builder: (yargs32) => withConfiguration(
1608
+ builder: (yargs28) => withConfiguration(
1618
1609
  withApiOptions(
1619
1610
  withProjectOptions(
1620
- yargs32.positional("filename", { demandOption: true, describe: "Category file to put" })
1611
+ yargs28.positional("filename", { demandOption: true, describe: "Category file to put" })
1621
1612
  )
1622
1613
  )
1623
1614
  ),
@@ -1634,7 +1625,7 @@ var CategoryModule = {
1634
1625
  command: "category <command>",
1635
1626
  aliases: ["cat"],
1636
1627
  describe: "Commands for Canvas categories",
1637
- builder: (yargs32) => yargs32.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1628
+ builder: (yargs28) => yargs28.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1638
1629
  handler: () => {
1639
1630
  yargs2.help();
1640
1631
  }
@@ -1655,11 +1646,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
1655
1646
  var ComponentGetModule = {
1656
1647
  command: "get <id>",
1657
1648
  describe: "Fetch a component definition",
1658
- builder: (yargs32) => withConfiguration(
1649
+ builder: (yargs28) => withConfiguration(
1659
1650
  withFormatOptions(
1660
1651
  withApiOptions(
1661
1652
  withProjectOptions(
1662
- yargs32.positional("id", {
1653
+ yargs28.positional("id", {
1663
1654
  demandOption: true,
1664
1655
  describe: "Component definition public ID to fetch"
1665
1656
  })
@@ -1693,11 +1684,11 @@ var ComponentListModule = {
1693
1684
  command: "list",
1694
1685
  describe: "List component definitions",
1695
1686
  aliases: ["ls"],
1696
- builder: (yargs32) => withConfiguration(
1687
+ builder: (yargs28) => withConfiguration(
1697
1688
  withFormatOptions(
1698
1689
  withApiOptions(
1699
1690
  withProjectOptions(
1700
- yargs32.options({
1691
+ yargs28.options({
1701
1692
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1702
1693
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1703
1694
  })
@@ -1752,11 +1743,11 @@ function createComponentDefinitionEngineDataSource({
1752
1743
  var ComponentPullModule = {
1753
1744
  command: "pull <directory>",
1754
1745
  describe: "Pulls all component definitions to local files in a directory",
1755
- builder: (yargs32) => withConfiguration(
1746
+ builder: (yargs28) => withConfiguration(
1756
1747
  withApiOptions(
1757
1748
  withProjectOptions(
1758
1749
  withDiffOptions(
1759
- yargs32.positional("directory", {
1750
+ yargs28.positional("directory", {
1760
1751
  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.",
1761
1752
  type: "string"
1762
1753
  }).option("format", {
@@ -1834,11 +1825,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1834
1825
  var ComponentPushModule = {
1835
1826
  command: "push <directory>",
1836
1827
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1837
- builder: (yargs32) => withConfiguration(
1828
+ builder: (yargs28) => withConfiguration(
1838
1829
  withApiOptions(
1839
1830
  withProjectOptions(
1840
1831
  withDiffOptions(
1841
- yargs32.positional("directory", {
1832
+ yargs28.positional("directory", {
1842
1833
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1843
1834
  type: "string"
1844
1835
  }).option("what-if", {
@@ -1905,10 +1896,10 @@ var ComponentRemoveModule = {
1905
1896
  command: "remove <id>",
1906
1897
  aliases: ["delete", "rm"],
1907
1898
  describe: "Delete a component definition",
1908
- builder: (yargs32) => withConfiguration(
1899
+ builder: (yargs28) => withConfiguration(
1909
1900
  withApiOptions(
1910
1901
  withProjectOptions(
1911
- yargs32.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1902
+ yargs28.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1912
1903
  )
1913
1904
  )
1914
1905
  ),
@@ -1925,10 +1916,10 @@ var ComponentUpdateModule = {
1925
1916
  command: "update <filename>",
1926
1917
  aliases: ["put"],
1927
1918
  describe: "Insert or update a component definition",
1928
- builder: (yargs32) => withConfiguration(
1919
+ builder: (yargs28) => withConfiguration(
1929
1920
  withApiOptions(
1930
1921
  withProjectOptions(
1931
- yargs32.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1922
+ yargs28.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1932
1923
  )
1933
1924
  )
1934
1925
  ),
@@ -1945,7 +1936,7 @@ var ComponentModule = {
1945
1936
  command: "component <command>",
1946
1937
  aliases: ["def"],
1947
1938
  describe: "Commands for Canvas component definitions",
1948
- builder: (yargs32) => yargs32.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1939
+ builder: (yargs28) => yargs28.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1949
1940
  handler: () => {
1950
1941
  yargs3.help();
1951
1942
  }
@@ -1959,12 +1950,12 @@ import { UncachedCanvasClient as UncachedCanvasClient7 } from "@uniformdev/canva
1959
1950
  var CompositionGetModule = {
1960
1951
  command: "get <id>",
1961
1952
  describe: "Fetch a composition",
1962
- builder: (yargs32) => withFormatOptions(
1953
+ builder: (yargs28) => withFormatOptions(
1963
1954
  withConfiguration(
1964
1955
  withApiOptions(
1965
1956
  withProjectOptions(
1966
1957
  withStateOptions(
1967
- yargs32.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1958
+ yargs28.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1968
1959
  resolvePatterns: {
1969
1960
  type: "boolean",
1970
1961
  default: false,
@@ -2035,12 +2026,12 @@ var CompositionListModule = {
2035
2026
  command: "list",
2036
2027
  describe: "List compositions",
2037
2028
  aliases: ["ls"],
2038
- builder: (yargs32) => withFormatOptions(
2029
+ builder: (yargs28) => withFormatOptions(
2039
2030
  withConfiguration(
2040
2031
  withApiOptions(
2041
2032
  withProjectOptions(
2042
2033
  withStateOptions(
2043
- yargs32.options({
2034
+ yargs28.options({
2044
2035
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2045
2036
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2046
2037
  resolvePatterns: {
@@ -2161,11 +2152,11 @@ function createComponentInstanceEngineDataSource({
2161
2152
  var CompositionPublishModule = {
2162
2153
  command: "publish [ids]",
2163
2154
  describe: "Publishes composition(s)",
2164
- builder: (yargs32) => withConfiguration(
2155
+ builder: (yargs28) => withConfiguration(
2165
2156
  withApiOptions(
2166
2157
  withProjectOptions(
2167
2158
  withDiffOptions(
2168
- yargs32.positional("ids", {
2159
+ yargs28.positional("ids", {
2169
2160
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2170
2161
  type: "string"
2171
2162
  }).option("all", {
@@ -2241,12 +2232,12 @@ import { UncachedFileClient as UncachedFileClient3 } from "@uniformdev/files";
2241
2232
  var CompositionPullModule = {
2242
2233
  command: "pull <directory>",
2243
2234
  describe: "Pulls all compositions to local files in a directory",
2244
- builder: (yargs32) => withConfiguration(
2235
+ builder: (yargs28) => withConfiguration(
2245
2236
  withApiOptions(
2246
2237
  withProjectOptions(
2247
2238
  withStateOptions(
2248
2239
  withDiffOptions(
2249
- yargs32.positional("directory", {
2240
+ yargs28.positional("directory", {
2250
2241
  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.",
2251
2242
  type: "string"
2252
2243
  }).option("format", {
@@ -2350,12 +2341,12 @@ import { UncachedFileClient as UncachedFileClient4 } from "@uniformdev/files";
2350
2341
  var CompositionPushModule = {
2351
2342
  command: "push <directory>",
2352
2343
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2353
- builder: (yargs32) => withConfiguration(
2344
+ builder: (yargs28) => withConfiguration(
2354
2345
  withApiOptions(
2355
2346
  withProjectOptions(
2356
2347
  withStateOptions(
2357
2348
  withDiffOptions(
2358
- yargs32.positional("directory", {
2349
+ yargs28.positional("directory", {
2359
2350
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2360
2351
  type: "string"
2361
2352
  }).option("what-if", {
@@ -2446,10 +2437,10 @@ var CompositionRemoveModule = {
2446
2437
  command: "remove <id>",
2447
2438
  aliases: ["delete", "rm"],
2448
2439
  describe: "Delete a composition",
2449
- builder: (yargs32) => withConfiguration(
2440
+ builder: (yargs28) => withConfiguration(
2450
2441
  withApiOptions(
2451
2442
  withProjectOptions(
2452
- yargs32.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2443
+ yargs28.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2453
2444
  )
2454
2445
  )
2455
2446
  ),
@@ -2466,10 +2457,10 @@ import { diffJson as diffJson2 } from "diff";
2466
2457
  var CompositionUnpublishModule = {
2467
2458
  command: "unpublish [ids]",
2468
2459
  describe: "Unpublish a composition(s)",
2469
- builder: (yargs32) => withConfiguration(
2460
+ builder: (yargs28) => withConfiguration(
2470
2461
  withApiOptions(
2471
2462
  withProjectOptions(
2472
- yargs32.positional("ids", {
2463
+ yargs28.positional("ids", {
2473
2464
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2474
2465
  type: "string"
2475
2466
  }).option("all", {
@@ -2563,11 +2554,11 @@ var CompositionUpdateModule = {
2563
2554
  command: "update <filename>",
2564
2555
  aliases: ["put"],
2565
2556
  describe: "Insert or update a composition",
2566
- builder: (yargs32) => withConfiguration(
2557
+ builder: (yargs28) => withConfiguration(
2567
2558
  withApiOptions(
2568
2559
  withProjectOptions(
2569
2560
  withStateOptions(
2570
- yargs32.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2561
+ yargs28.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2571
2562
  )
2572
2563
  )
2573
2564
  )
@@ -2585,7 +2576,7 @@ var CompositionModule = {
2585
2576
  command: "composition <command>",
2586
2577
  describe: "Commands for Canvas compositions",
2587
2578
  aliases: ["comp"],
2588
- builder: (yargs32) => yargs32.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2579
+ builder: (yargs28) => yargs28.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2589
2580
  handler: () => {
2590
2581
  yargs4.help();
2591
2582
  }
@@ -2599,12 +2590,12 @@ import { ContentClient } from "@uniformdev/canvas";
2599
2590
  var ContentTypeGetModule = {
2600
2591
  command: "get <id>",
2601
2592
  describe: "Get a content type",
2602
- builder: (yargs32) => withConfiguration(
2593
+ builder: (yargs28) => withConfiguration(
2603
2594
  withFormatOptions(
2604
2595
  withApiOptions(
2605
2596
  withProjectOptions(
2606
2597
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2607
- yargs32.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2598
+ yargs28.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2608
2599
  )
2609
2600
  )
2610
2601
  )
@@ -2626,7 +2617,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2626
2617
  var ContentTypeListModule = {
2627
2618
  command: "list",
2628
2619
  describe: "List content types",
2629
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
2620
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
2630
2621
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2631
2622
  const fetch3 = nodeFetchProxy(proxy);
2632
2623
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2673,11 +2664,11 @@ function createContentTypeEngineDataSource({
2673
2664
  var ContentTypePullModule = {
2674
2665
  command: "pull <directory>",
2675
2666
  describe: "Pulls all content types to local files in a directory",
2676
- builder: (yargs32) => withConfiguration(
2667
+ builder: (yargs28) => withConfiguration(
2677
2668
  withApiOptions(
2678
2669
  withProjectOptions(
2679
2670
  withDiffOptions(
2680
- yargs32.positional("directory", {
2671
+ yargs28.positional("directory", {
2681
2672
  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.",
2682
2673
  type: "string"
2683
2674
  }).option("format", {
@@ -2760,11 +2751,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2760
2751
  var ContentTypePushModule = {
2761
2752
  command: "push <directory>",
2762
2753
  describe: "Pushes all content types from files in a directory to Uniform",
2763
- builder: (yargs32) => withConfiguration(
2754
+ builder: (yargs28) => withConfiguration(
2764
2755
  withApiOptions(
2765
2756
  withProjectOptions(
2766
2757
  withDiffOptions(
2767
- yargs32.positional("directory", {
2758
+ yargs28.positional("directory", {
2768
2759
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
2769
2760
  type: "string"
2770
2761
  }).option("what-if", {
@@ -2836,10 +2827,10 @@ var ContentTypeRemoveModule = {
2836
2827
  command: "remove <id>",
2837
2828
  aliases: ["delete", "rm"],
2838
2829
  describe: "Delete a content type",
2839
- builder: (yargs32) => withConfiguration(
2830
+ builder: (yargs28) => withConfiguration(
2840
2831
  withApiOptions(
2841
2832
  withProjectOptions(
2842
- yargs32.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2833
+ yargs28.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2843
2834
  )
2844
2835
  )
2845
2836
  ),
@@ -2856,10 +2847,10 @@ var ContentTypeUpdateModule = {
2856
2847
  command: "update <filename>",
2857
2848
  aliases: ["put"],
2858
2849
  describe: "Insert or update a content type",
2859
- builder: (yargs32) => withConfiguration(
2850
+ builder: (yargs28) => withConfiguration(
2860
2851
  withApiOptions(
2861
2852
  withProjectOptions(
2862
- yargs32.positional("filename", { demandOption: true, describe: "Content type file to put" })
2853
+ yargs28.positional("filename", { demandOption: true, describe: "Content type file to put" })
2863
2854
  )
2864
2855
  )
2865
2856
  ),
@@ -2876,93 +2867,14 @@ var ContentTypeModule = {
2876
2867
  command: "contenttype <command>",
2877
2868
  aliases: ["ct"],
2878
2869
  describe: "Commands for Content Types",
2879
- builder: (yargs32) => yargs32.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2870
+ builder: (yargs28) => yargs28.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2880
2871
  handler: () => {
2881
2872
  yargs5.help();
2882
2873
  }
2883
2874
  };
2884
2875
 
2885
- // src/commands/canvas/commands/dataSource.ts
2886
- import yargs6 from "yargs";
2887
-
2888
- // src/commands/canvas/commands/dataSource/get.ts
2889
- import { DataSourceClient } from "@uniformdev/canvas";
2890
- var DataSourceGetModule = {
2891
- command: "get <id>",
2892
- describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
2893
- builder: (yargs32) => withConfiguration(
2894
- withApiOptions(
2895
- withProjectOptions(
2896
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2897
- yargs32.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
2898
- )
2899
- )
2900
- ),
2901
- handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
2902
- const fetch3 = nodeFetchProxy(proxy);
2903
- const client = new DataSourceClient({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2904
- const res = await client.get({ dataSourceId: id });
2905
- emitWithFormat(res.result, "json", void 0);
2906
- }
2907
- };
2908
-
2909
- // src/commands/canvas/commands/dataSource/remove.ts
2910
- import { DataSourceClient as DataSourceClient2 } from "@uniformdev/canvas";
2911
- var DataSourceRemoveModule = {
2912
- command: "remove <id>",
2913
- aliases: ["delete", "rm"],
2914
- describe: "Delete a data source",
2915
- builder: (yargs32) => withConfiguration(
2916
- withApiOptions(
2917
- withProjectOptions(
2918
- yargs32.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
2919
- )
2920
- )
2921
- ),
2922
- handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
2923
- const fetch3 = nodeFetchProxy(proxy);
2924
- const client = new DataSourceClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2925
- await client.remove({ dataSourceId: id });
2926
- }
2927
- };
2928
-
2929
- // src/commands/canvas/commands/dataSource/update.ts
2930
- import { DataSourceClient as DataSourceClient3 } from "@uniformdev/canvas";
2931
- var DataSourceUpdateModule = {
2932
- command: "update <dataSource>",
2933
- aliases: ["put"],
2934
- describe: "Insert or update a data source",
2935
- builder: (yargs32) => withConfiguration(
2936
- withApiOptions(
2937
- withProjectOptions(
2938
- yargs32.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
2939
- describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
2940
- type: "string",
2941
- demandOption: true
2942
- })
2943
- )
2944
- )
2945
- ),
2946
- handler: async ({ apiHost, apiKey, proxy, dataSource, integrationType, project: projectId }) => {
2947
- const fetch3 = nodeFetchProxy(proxy);
2948
- const client = new DataSourceClient3({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2949
- await client.upsert({ data: JSON.parse(dataSource), integrationType });
2950
- }
2951
- };
2952
-
2953
- // src/commands/canvas/commands/dataSource.ts
2954
- var DataSourceModule = {
2955
- command: "datasource <command>",
2956
- aliases: ["ds"],
2957
- describe: "Commands for Data Source definitions",
2958
- builder: (yargs32) => yargs32.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
2959
- handler: () => {
2960
- yargs6.help();
2961
- }
2962
- };
2963
-
2964
2876
  // src/commands/canvas/commands/dataType.ts
2965
- import yargs7 from "yargs";
2877
+ import yargs6 from "yargs";
2966
2878
 
2967
2879
  // src/commands/canvas/commands/dataType/get.ts
2968
2880
  import { DataTypeClient } from "@uniformdev/canvas";
@@ -2970,12 +2882,12 @@ var DataTypeGetModule = {
2970
2882
  command: "get <id>",
2971
2883
  describe: "Get a data type",
2972
2884
  aliases: ["ls"],
2973
- builder: (yargs32) => withConfiguration(
2885
+ builder: (yargs28) => withConfiguration(
2974
2886
  withFormatOptions(
2975
2887
  withApiOptions(
2976
2888
  withProjectOptions(
2977
2889
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2978
- yargs32.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2890
+ yargs28.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2979
2891
  )
2980
2892
  )
2981
2893
  )
@@ -2998,7 +2910,7 @@ var DataTypeListModule = {
2998
2910
  command: "list",
2999
2911
  describe: "List data types",
3000
2912
  aliases: ["ls"],
3001
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
2913
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
3002
2914
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3003
2915
  const fetch3 = nodeFetchProxy(proxy);
3004
2916
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3047,11 +2959,11 @@ function createDataTypeEngineDataSource({
3047
2959
  var DataTypePullModule = {
3048
2960
  command: "pull <directory>",
3049
2961
  describe: "Pulls all data types to local files in a directory",
3050
- builder: (yargs32) => withConfiguration(
2962
+ builder: (yargs28) => withConfiguration(
3051
2963
  withApiOptions(
3052
2964
  withProjectOptions(
3053
2965
  withDiffOptions(
3054
- yargs32.positional("directory", {
2966
+ yargs28.positional("directory", {
3055
2967
  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.",
3056
2968
  type: "string"
3057
2969
  }).option("format", {
@@ -3134,11 +3046,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
3134
3046
  var DataTypePushModule = {
3135
3047
  command: "push <directory>",
3136
3048
  describe: "Pushes all data types from files in a directory to Uniform",
3137
- builder: (yargs32) => withConfiguration(
3049
+ builder: (yargs28) => withConfiguration(
3138
3050
  withApiOptions(
3139
3051
  withProjectOptions(
3140
3052
  withDiffOptions(
3141
- yargs32.positional("directory", {
3053
+ yargs28.positional("directory", {
3142
3054
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
3143
3055
  type: "string"
3144
3056
  }).option("what-if", {
@@ -3210,10 +3122,10 @@ var DataTypeRemoveModule = {
3210
3122
  command: "remove <id>",
3211
3123
  aliases: ["delete", "rm"],
3212
3124
  describe: "Delete a data type",
3213
- builder: (yargs32) => withConfiguration(
3125
+ builder: (yargs28) => withConfiguration(
3214
3126
  withApiOptions(
3215
3127
  withProjectOptions(
3216
- yargs32.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3128
+ yargs28.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3217
3129
  )
3218
3130
  )
3219
3131
  ),
@@ -3230,10 +3142,10 @@ var DataTypeUpdateModule = {
3230
3142
  command: "update <filename>",
3231
3143
  aliases: ["put"],
3232
3144
  describe: "Insert or update a data type",
3233
- builder: (yargs32) => withConfiguration(
3145
+ builder: (yargs28) => withConfiguration(
3234
3146
  withApiOptions(
3235
3147
  withProjectOptions(
3236
- yargs32.positional("filename", { demandOption: true, describe: "Data type file to put" })
3148
+ yargs28.positional("filename", { demandOption: true, describe: "Data type file to put" })
3237
3149
  )
3238
3150
  )
3239
3151
  ),
@@ -3250,26 +3162,26 @@ var DataTypeModule = {
3250
3162
  command: "datatype <command>",
3251
3163
  aliases: ["dt"],
3252
3164
  describe: "Commands for Data Type definitions",
3253
- builder: (yargs32) => yargs32.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3165
+ builder: (yargs28) => yargs28.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3254
3166
  handler: () => {
3255
- yargs7.help();
3167
+ yargs6.help();
3256
3168
  }
3257
3169
  };
3258
3170
 
3259
3171
  // src/commands/canvas/commands/entry.ts
3260
- import yargs8 from "yargs";
3172
+ import yargs7 from "yargs";
3261
3173
 
3262
3174
  // src/commands/canvas/commands/entry/get.ts
3263
3175
  import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
3264
3176
  var EntryGetModule = {
3265
3177
  command: "get <id>",
3266
3178
  describe: "Get an entry",
3267
- builder: (yargs32) => withConfiguration(
3179
+ builder: (yargs28) => withConfiguration(
3268
3180
  withFormatOptions(
3269
3181
  withApiOptions(
3270
3182
  withProjectOptions(
3271
3183
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3272
- yargs32.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3184
+ yargs28.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3273
3185
  )
3274
3186
  )
3275
3187
  )
@@ -3297,7 +3209,7 @@ import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
3297
3209
  var EntryListModule = {
3298
3210
  command: "list",
3299
3211
  describe: "List entries",
3300
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
3212
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
3301
3213
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3302
3214
  const fetch3 = nodeFetchProxy(proxy);
3303
3215
  const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3371,11 +3283,11 @@ function createEntryEngineDataSource({
3371
3283
  var EntryPublishModule = {
3372
3284
  command: "publish [ids]",
3373
3285
  describe: "Publishes entry(ies)",
3374
- builder: (yargs32) => withConfiguration(
3286
+ builder: (yargs28) => withConfiguration(
3375
3287
  withApiOptions(
3376
3288
  withProjectOptions(
3377
3289
  withDiffOptions(
3378
- yargs32.positional("ids", {
3290
+ yargs28.positional("ids", {
3379
3291
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3380
3292
  type: "string"
3381
3293
  }).option("all", {
@@ -3451,12 +3363,12 @@ import { UncachedFileClient as UncachedFileClient5 } from "@uniformdev/files";
3451
3363
  var EntryPullModule = {
3452
3364
  command: "pull <directory>",
3453
3365
  describe: "Pulls all entries to local files in a directory",
3454
- builder: (yargs32) => withConfiguration(
3366
+ builder: (yargs28) => withConfiguration(
3455
3367
  withApiOptions(
3456
3368
  withProjectOptions(
3457
3369
  withStateOptions(
3458
3370
  withDiffOptions(
3459
- yargs32.positional("directory", {
3371
+ yargs28.positional("directory", {
3460
3372
  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.",
3461
3373
  type: "string"
3462
3374
  }).option("format", {
@@ -3555,12 +3467,12 @@ import { UncachedFileClient as UncachedFileClient6 } from "@uniformdev/files";
3555
3467
  var EntryPushModule = {
3556
3468
  command: "push <directory>",
3557
3469
  describe: "Pushes all entries from files in a directory to Uniform",
3558
- builder: (yargs32) => withConfiguration(
3470
+ builder: (yargs28) => withConfiguration(
3559
3471
  withApiOptions(
3560
3472
  withProjectOptions(
3561
3473
  withStateOptions(
3562
3474
  withDiffOptions(
3563
- yargs32.positional("directory", {
3475
+ yargs28.positional("directory", {
3564
3476
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
3565
3477
  type: "string"
3566
3478
  }).option("what-if", {
@@ -3646,10 +3558,10 @@ var EntryRemoveModule = {
3646
3558
  command: "remove <id>",
3647
3559
  aliases: ["delete", "rm"],
3648
3560
  describe: "Delete an entry",
3649
- builder: (yargs32) => withConfiguration(
3561
+ builder: (yargs28) => withConfiguration(
3650
3562
  withApiOptions(
3651
3563
  withProjectOptions(
3652
- yargs32.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3564
+ yargs28.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3653
3565
  )
3654
3566
  )
3655
3567
  ),
@@ -3666,10 +3578,10 @@ import { diffJson as diffJson3 } from "diff";
3666
3578
  var EntryUnpublishModule = {
3667
3579
  command: "unpublish [ids]",
3668
3580
  describe: "Unpublish an entry(ies)",
3669
- builder: (yargs32) => withConfiguration(
3581
+ builder: (yargs28) => withConfiguration(
3670
3582
  withApiOptions(
3671
3583
  withProjectOptions(
3672
- yargs32.positional("ids", {
3584
+ yargs28.positional("ids", {
3673
3585
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3674
3586
  type: "string"
3675
3587
  }).option("all", {
@@ -3763,10 +3675,10 @@ var EntryUpdateModule = {
3763
3675
  command: "update <filename>",
3764
3676
  aliases: ["put"],
3765
3677
  describe: "Insert or update an entry",
3766
- builder: (yargs32) => withConfiguration(
3678
+ builder: (yargs28) => withConfiguration(
3767
3679
  withApiOptions(
3768
3680
  withProjectOptions(
3769
- yargs32.positional("filename", { demandOption: true, describe: "Entry file to put" })
3681
+ yargs28.positional("filename", { demandOption: true, describe: "Entry file to put" })
3770
3682
  )
3771
3683
  )
3772
3684
  ),
@@ -3782,14 +3694,14 @@ var EntryUpdateModule = {
3782
3694
  var EntryModule = {
3783
3695
  command: "entry <command>",
3784
3696
  describe: "Commands for Entries",
3785
- builder: (yargs32) => yargs32.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
3697
+ builder: (yargs28) => yargs28.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
3786
3698
  handler: () => {
3787
- yargs8.help();
3699
+ yargs7.help();
3788
3700
  }
3789
3701
  };
3790
3702
 
3791
3703
  // src/commands/canvas/commands/locale.ts
3792
- import yargs9 from "yargs";
3704
+ import yargs8 from "yargs";
3793
3705
 
3794
3706
  // src/commands/canvas/commands/locale/pull.ts
3795
3707
  import { LocaleClient } from "@uniformdev/canvas";
@@ -3827,11 +3739,11 @@ function createLocaleEngineDataSource({
3827
3739
  var LocalePullModule = {
3828
3740
  command: "pull <directory>",
3829
3741
  describe: "Pulls all locales to local files in a directory",
3830
- builder: (yargs32) => withConfiguration(
3742
+ builder: (yargs28) => withConfiguration(
3831
3743
  withApiOptions(
3832
3744
  withProjectOptions(
3833
3745
  withDiffOptions(
3834
- yargs32.positional("directory", {
3746
+ yargs28.positional("directory", {
3835
3747
  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.",
3836
3748
  type: "string"
3837
3749
  }).option("format", {
@@ -3914,11 +3826,11 @@ import { LocaleClient as LocaleClient2 } from "@uniformdev/canvas";
3914
3826
  var LocalePushModule = {
3915
3827
  command: "push <directory>",
3916
3828
  describe: "Pushes all locales from files in a directory to Uniform",
3917
- builder: (yargs32) => withConfiguration(
3829
+ builder: (yargs28) => withConfiguration(
3918
3830
  withApiOptions(
3919
3831
  withProjectOptions(
3920
3832
  withDiffOptions(
3921
- yargs32.positional("directory", {
3833
+ yargs28.positional("directory", {
3922
3834
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
3923
3835
  type: "string"
3924
3836
  }).option("what-if", {
@@ -3988,14 +3900,14 @@ var LocalePushModule = {
3988
3900
  var LocaleModule = {
3989
3901
  command: "locale <command>",
3990
3902
  describe: "Commands for locale definitions",
3991
- builder: (yargs32) => yargs32.command(LocalePullModule).command(LocalePushModule),
3903
+ builder: (yargs28) => yargs28.command(LocalePullModule).command(LocalePushModule),
3992
3904
  handler: () => {
3993
- yargs9.help();
3905
+ yargs8.help();
3994
3906
  }
3995
3907
  };
3996
3908
 
3997
3909
  // src/commands/canvas/commands/pattern.ts
3998
- import yargs10 from "yargs";
3910
+ import yargs9 from "yargs";
3999
3911
 
4000
3912
  // src/commands/canvas/commands/pattern/get.ts
4001
3913
  var PatternGetModule = {
@@ -4007,12 +3919,12 @@ var PatternGetModule = {
4007
3919
  var PatternListModule = {
4008
3920
  ...CompositionListModule,
4009
3921
  describe: "List patterns",
4010
- builder: (yargs32) => withFormatOptions(
3922
+ builder: (yargs28) => withFormatOptions(
4011
3923
  withConfiguration(
4012
3924
  withApiOptions(
4013
3925
  withProjectOptions(
4014
3926
  withStateOptions(
4015
- yargs32.options({
3927
+ yargs28.options({
4016
3928
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4017
3929
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4018
3930
  resolvePatterns: {
@@ -4050,11 +3962,11 @@ var PatternListModule = {
4050
3962
  var PatternPublishModule = {
4051
3963
  ...CompositionPublishModule,
4052
3964
  describe: "Publishes pattern(s)",
4053
- builder: (yargs32) => withConfiguration(
3965
+ builder: (yargs28) => withConfiguration(
4054
3966
  withApiOptions(
4055
3967
  withProjectOptions(
4056
3968
  withDiffOptions(
4057
- yargs32.positional("ids", {
3969
+ yargs28.positional("ids", {
4058
3970
  describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4059
3971
  type: "string"
4060
3972
  }).option("all", {
@@ -4092,12 +4004,12 @@ var PatternPublishModule = {
4092
4004
  var PatternPullModule = {
4093
4005
  ...CompositionPullModule,
4094
4006
  describe: "Pulls all patterns to local files in a directory",
4095
- builder: (yargs32) => withConfiguration(
4007
+ builder: (yargs28) => withConfiguration(
4096
4008
  withApiOptions(
4097
4009
  withProjectOptions(
4098
4010
  withStateOptions(
4099
4011
  withDiffOptions(
4100
- yargs32.positional("directory", {
4012
+ yargs28.positional("directory", {
4101
4013
  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.",
4102
4014
  type: "string"
4103
4015
  }).option("format", {
@@ -4135,12 +4047,12 @@ var PatternPullModule = {
4135
4047
  var PatternPushModule = {
4136
4048
  ...CompositionPushModule,
4137
4049
  describe: "Pushes all patterns from files in a directory to Uniform Canvas",
4138
- builder: (yargs32) => withConfiguration(
4050
+ builder: (yargs28) => withConfiguration(
4139
4051
  withApiOptions(
4140
4052
  withProjectOptions(
4141
4053
  withStateOptions(
4142
4054
  withDiffOptions(
4143
- yargs32.positional("directory", {
4055
+ yargs28.positional("directory", {
4144
4056
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
4145
4057
  type: "string"
4146
4058
  }).option("what-if", {
@@ -4178,10 +4090,10 @@ var PatternRemoveModule = {
4178
4090
  var PatternUnpublishModule = {
4179
4091
  command: "unpublish [ids]",
4180
4092
  describe: "Unpublish a pattern(s)",
4181
- builder: (yargs32) => withConfiguration(
4093
+ builder: (yargs28) => withConfiguration(
4182
4094
  withApiOptions(
4183
4095
  withProjectOptions(
4184
- yargs32.positional("ids", {
4096
+ yargs28.positional("ids", {
4185
4097
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
4186
4098
  type: "string"
4187
4099
  }).option("all", {
@@ -4220,26 +4132,26 @@ var PatternUpdateModule = {
4220
4132
  var PatternModule = {
4221
4133
  command: "pattern <command>",
4222
4134
  describe: "Commands for Canvas patterns",
4223
- builder: (yargs32) => yargs32.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
4135
+ builder: (yargs28) => yargs28.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
4224
4136
  handler: () => {
4225
- yargs10.help();
4137
+ yargs9.help();
4226
4138
  }
4227
4139
  };
4228
4140
 
4229
4141
  // src/commands/canvas/commands/prompts.ts
4230
- import yargs11 from "yargs";
4142
+ import yargs10 from "yargs";
4231
4143
 
4232
4144
  // src/commands/canvas/commands/prompts/get.ts
4233
4145
  import { PromptClient } from "@uniformdev/canvas";
4234
4146
  var PromptGetModule = {
4235
4147
  command: "get <id>",
4236
4148
  describe: "Get a prompt",
4237
- builder: (yargs32) => withConfiguration(
4149
+ builder: (yargs28) => withConfiguration(
4238
4150
  withFormatOptions(
4239
4151
  withApiOptions(
4240
4152
  withProjectOptions(
4241
4153
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4242
- yargs32.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4154
+ yargs28.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
4243
4155
  )
4244
4156
  )
4245
4157
  )
@@ -4260,7 +4172,7 @@ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
4260
4172
  var PromptListModule = {
4261
4173
  command: "list",
4262
4174
  describe: "List prompts",
4263
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
4175
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
4264
4176
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4265
4177
  const fetch3 = nodeFetchProxy(proxy);
4266
4178
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -4307,12 +4219,12 @@ function createPromptEngineDataSource({
4307
4219
  var PromptPullModule = {
4308
4220
  command: "pull <directory>",
4309
4221
  describe: "Pulls all entries to local files in a directory",
4310
- builder: (yargs32) => withConfiguration(
4222
+ builder: (yargs28) => withConfiguration(
4311
4223
  withApiOptions(
4312
4224
  withProjectOptions(
4313
4225
  withStateOptions(
4314
4226
  withDiffOptions(
4315
- yargs32.positional("directory", {
4227
+ yargs28.positional("directory", {
4316
4228
  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.",
4317
4229
  type: "string"
4318
4230
  }).option("format", {
@@ -4396,12 +4308,12 @@ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
4396
4308
  var PromptPushModule = {
4397
4309
  command: "push <directory>",
4398
4310
  describe: "Pushes all prompts from files in a directory to Uniform",
4399
- builder: (yargs32) => withConfiguration(
4311
+ builder: (yargs28) => withConfiguration(
4400
4312
  withApiOptions(
4401
4313
  withProjectOptions(
4402
4314
  withStateOptions(
4403
4315
  withDiffOptions(
4404
- yargs32.positional("directory", {
4316
+ yargs28.positional("directory", {
4405
4317
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
4406
4318
  type: "string"
4407
4319
  }).option("what-if", {
@@ -4474,9 +4386,9 @@ var PromptRemoveModule = {
4474
4386
  command: "remove <id>",
4475
4387
  aliases: ["delete", "rm"],
4476
4388
  describe: "Delete a prompt",
4477
- builder: (yargs32) => withConfiguration(
4389
+ builder: (yargs28) => withConfiguration(
4478
4390
  withApiOptions(
4479
- withProjectOptions(yargs32.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4391
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4480
4392
  )
4481
4393
  ),
4482
4394
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -4492,10 +4404,10 @@ var PromptUpdateModule = {
4492
4404
  command: "update <filename>",
4493
4405
  aliases: ["put"],
4494
4406
  describe: "Insert or update a prompt",
4495
- builder: (yargs32) => withConfiguration(
4407
+ builder: (yargs28) => withConfiguration(
4496
4408
  withApiOptions(
4497
4409
  withProjectOptions(
4498
- yargs32.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4410
+ yargs28.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4499
4411
  )
4500
4412
  )
4501
4413
  ),
@@ -4512,9 +4424,9 @@ var PromptModule = {
4512
4424
  command: "prompt <command>",
4513
4425
  aliases: ["dt"],
4514
4426
  describe: "Commands for AI Prompt definitions",
4515
- builder: (yargs32) => yargs32.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4427
+ builder: (yargs28) => yargs28.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4516
4428
  handler: () => {
4517
- yargs11.help();
4429
+ yargs10.help();
4518
4430
  }
4519
4431
  };
4520
4432
 
@@ -4523,28 +4435,28 @@ var CanvasCommand = {
4523
4435
  command: "canvas <command>",
4524
4436
  aliases: ["cv", "pm", "presentation"],
4525
4437
  describe: "Uniform Canvas commands",
4526
- 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(),
4438
+ builder: (yargs28) => yargs28.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).command(PromptModule).command(AssetModule).command(LocaleModule).demandCommand(),
4527
4439
  handler: () => {
4528
- yargs12.showHelp();
4440
+ yargs11.showHelp();
4529
4441
  }
4530
4442
  };
4531
4443
 
4532
4444
  // src/commands/context/index.ts
4533
- import yargs19 from "yargs";
4445
+ import yargs18 from "yargs";
4534
4446
 
4535
4447
  // src/commands/context/commands/aggregate.ts
4536
- import yargs13 from "yargs";
4448
+ import yargs12 from "yargs";
4537
4449
 
4538
4450
  // src/commands/context/commands/aggregate/get.ts
4539
4451
  import { UncachedAggregateClient } from "@uniformdev/context/api";
4540
4452
  var AggregateGetModule = {
4541
4453
  command: "get <id>",
4542
4454
  describe: "Fetch an aggregate",
4543
- builder: (yargs32) => withConfiguration(
4455
+ builder: (yargs28) => withConfiguration(
4544
4456
  withFormatOptions(
4545
4457
  withApiOptions(
4546
4458
  withProjectOptions(
4547
- yargs32.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4459
+ yargs28.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4548
4460
  )
4549
4461
  )
4550
4462
  )
@@ -4568,7 +4480,7 @@ var AggregateListModule = {
4568
4480
  command: "list",
4569
4481
  describe: "List aggregates",
4570
4482
  aliases: ["ls"],
4571
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
4483
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
4572
4484
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4573
4485
  const fetch3 = nodeFetchProxy(proxy);
4574
4486
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4634,11 +4546,11 @@ function writeContextPackage(filename, packageContents) {
4634
4546
  var AggregatePullModule = {
4635
4547
  command: "pull <directory>",
4636
4548
  describe: "Pulls all aggregates to local files in a directory",
4637
- builder: (yargs32) => withConfiguration(
4549
+ builder: (yargs28) => withConfiguration(
4638
4550
  withApiOptions(
4639
4551
  withProjectOptions(
4640
4552
  withDiffOptions(
4641
- yargs32.positional("directory", {
4553
+ yargs28.positional("directory", {
4642
4554
  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.",
4643
4555
  type: "string"
4644
4556
  }).option("format", {
@@ -4715,11 +4627,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
4715
4627
  var AggregatePushModule = {
4716
4628
  command: "push <directory>",
4717
4629
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
4718
- builder: (yargs32) => withConfiguration(
4630
+ builder: (yargs28) => withConfiguration(
4719
4631
  withApiOptions(
4720
4632
  withProjectOptions(
4721
4633
  withDiffOptions(
4722
- yargs32.positional("directory", {
4634
+ yargs28.positional("directory", {
4723
4635
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
4724
4636
  type: "string"
4725
4637
  }).option("what-if", {
@@ -4786,10 +4698,10 @@ var AggregateRemoveModule = {
4786
4698
  command: "remove <id>",
4787
4699
  aliases: ["delete", "rm"],
4788
4700
  describe: "Delete an aggregate",
4789
- builder: (yargs32) => withConfiguration(
4701
+ builder: (yargs28) => withConfiguration(
4790
4702
  withApiOptions(
4791
4703
  withProjectOptions(
4792
- yargs32.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
4704
+ yargs28.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
4793
4705
  )
4794
4706
  )
4795
4707
  ),
@@ -4806,10 +4718,10 @@ var AggregateUpdateModule = {
4806
4718
  command: "update <filename>",
4807
4719
  aliases: ["put"],
4808
4720
  describe: "Insert or update an aggregate",
4809
- builder: (yargs32) => withConfiguration(
4721
+ builder: (yargs28) => withConfiguration(
4810
4722
  withApiOptions(
4811
4723
  withProjectOptions(
4812
- yargs32.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
4724
+ yargs28.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
4813
4725
  )
4814
4726
  )
4815
4727
  ),
@@ -4826,25 +4738,25 @@ var AggregateModule = {
4826
4738
  command: "aggregate <command>",
4827
4739
  aliases: ["agg", "intent", "audience"],
4828
4740
  describe: "Commands for Context aggregates (intents, audiences)",
4829
- builder: (yargs32) => yargs32.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
4741
+ builder: (yargs28) => yargs28.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
4830
4742
  handler: () => {
4831
- yargs13.help();
4743
+ yargs12.help();
4832
4744
  }
4833
4745
  };
4834
4746
 
4835
4747
  // src/commands/context/commands/enrichment.ts
4836
- import yargs14 from "yargs";
4748
+ import yargs13 from "yargs";
4837
4749
 
4838
4750
  // src/commands/context/commands/enrichment/get.ts
4839
4751
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
4840
4752
  var EnrichmentGetModule = {
4841
4753
  command: "get <id>",
4842
4754
  describe: "Fetch an enrichment category and its values",
4843
- builder: (yargs32) => withFormatOptions(
4755
+ builder: (yargs28) => withFormatOptions(
4844
4756
  withConfiguration(
4845
4757
  withApiOptions(
4846
4758
  withProjectOptions(
4847
- yargs32.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
4759
+ yargs28.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
4848
4760
  )
4849
4761
  )
4850
4762
  )
@@ -4869,7 +4781,7 @@ var EnrichmentListModule = {
4869
4781
  command: "list",
4870
4782
  describe: "List enrichments",
4871
4783
  aliases: ["ls"],
4872
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
4784
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
4873
4785
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4874
4786
  const fetch3 = nodeFetchProxy(proxy);
4875
4787
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4970,11 +4882,11 @@ var createEnrichmentValueEngineDataSource = ({
4970
4882
  var EnrichmentPullModule = {
4971
4883
  command: "pull <directory>",
4972
4884
  describe: "Pulls all enrichments to local files in a directory",
4973
- builder: (yargs32) => withConfiguration(
4885
+ builder: (yargs28) => withConfiguration(
4974
4886
  withApiOptions(
4975
4887
  withProjectOptions(
4976
4888
  withDiffOptions(
4977
- yargs32.positional("directory", {
4889
+ yargs28.positional("directory", {
4978
4890
  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.",
4979
4891
  type: "string"
4980
4892
  }).option("format", {
@@ -5051,11 +4963,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
5051
4963
  var EnrichmentPushModule = {
5052
4964
  command: "push <directory>",
5053
4965
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
5054
- builder: (yargs32) => withConfiguration(
4966
+ builder: (yargs28) => withConfiguration(
5055
4967
  withApiOptions(
5056
4968
  withProjectOptions(
5057
4969
  withDiffOptions(
5058
- yargs32.positional("directory", {
4970
+ yargs28.positional("directory", {
5059
4971
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
5060
4972
  type: "string"
5061
4973
  }).option("what-if", {
@@ -5121,10 +5033,10 @@ var EnrichmentRemoveModule = {
5121
5033
  command: "remove <id>",
5122
5034
  aliases: ["delete", "rm"],
5123
5035
  describe: "Delete an enrichment category and its values",
5124
- builder: (yargs32) => withConfiguration(
5036
+ builder: (yargs28) => withConfiguration(
5125
5037
  withApiOptions(
5126
5038
  withProjectOptions(
5127
- yargs32.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5039
+ yargs28.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
5128
5040
  )
5129
5041
  )
5130
5042
  ),
@@ -5140,14 +5052,14 @@ var EnrichmentModule = {
5140
5052
  command: "enrichment <command>",
5141
5053
  aliases: ["enr"],
5142
5054
  describe: "Commands for Context enrichments",
5143
- builder: (yargs32) => yargs32.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
5055
+ builder: (yargs28) => yargs28.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
5144
5056
  handler: () => {
5145
- yargs14.help();
5057
+ yargs13.help();
5146
5058
  }
5147
5059
  };
5148
5060
 
5149
5061
  // src/commands/context/commands/manifest.ts
5150
- import yargs15 from "yargs";
5062
+ import yargs14 from "yargs";
5151
5063
 
5152
5064
  // src/commands/context/commands/manifest/get.ts
5153
5065
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -5158,10 +5070,10 @@ var ManifestGetModule = {
5158
5070
  command: "get [output]",
5159
5071
  aliases: ["dl", "download"],
5160
5072
  describe: "Download the Uniform Context manifest for a project",
5161
- builder: (yargs32) => withConfiguration(
5073
+ builder: (yargs28) => withConfiguration(
5162
5074
  withApiOptions(
5163
5075
  withProjectOptions(
5164
- yargs32.option("preview", {
5076
+ yargs28.option("preview", {
5165
5077
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
5166
5078
  default: false,
5167
5079
  type: "boolean",
@@ -5223,7 +5135,7 @@ import { exit as exit2 } from "process";
5223
5135
  var ManifestPublishModule = {
5224
5136
  command: "publish",
5225
5137
  describe: "Publish the Uniform Context manifest for a project",
5226
- builder: (yargs32) => withConfiguration(withApiOptions(withProjectOptions(yargs32))),
5138
+ builder: (yargs28) => withConfiguration(withApiOptions(withProjectOptions(yargs28))),
5227
5139
  handler: async ({ apiKey, apiHost, proxy, project }) => {
5228
5140
  const fetch3 = nodeFetchProxy(proxy);
5229
5141
  try {
@@ -5256,25 +5168,25 @@ var ManifestModule = {
5256
5168
  command: "manifest <command>",
5257
5169
  describe: "Commands for context manifests",
5258
5170
  aliases: ["man"],
5259
- builder: (yargs32) => yargs32.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
5171
+ builder: (yargs28) => yargs28.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
5260
5172
  handler: () => {
5261
- yargs15.help();
5173
+ yargs14.help();
5262
5174
  }
5263
5175
  };
5264
5176
 
5265
5177
  // src/commands/context/commands/quirk.ts
5266
- import yargs16 from "yargs";
5178
+ import yargs15 from "yargs";
5267
5179
 
5268
5180
  // src/commands/context/commands/quirk/get.ts
5269
5181
  import { UncachedQuirkClient } from "@uniformdev/context/api";
5270
5182
  var QuirkGetModule = {
5271
5183
  command: "get <id>",
5272
5184
  describe: "Fetch a quirk",
5273
- builder: (yargs32) => withConfiguration(
5185
+ builder: (yargs28) => withConfiguration(
5274
5186
  withFormatOptions(
5275
5187
  withApiOptions(
5276
5188
  withProjectOptions(
5277
- yargs32.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
5189
+ yargs28.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
5278
5190
  )
5279
5191
  )
5280
5192
  )
@@ -5298,11 +5210,11 @@ var QuirkListModule = {
5298
5210
  command: "list",
5299
5211
  describe: "List quirks",
5300
5212
  aliases: ["ls"],
5301
- builder: (yargs32) => withConfiguration(
5213
+ builder: (yargs28) => withConfiguration(
5302
5214
  withFormatOptions(
5303
5215
  withApiOptions(
5304
5216
  withProjectOptions(
5305
- yargs32.option("withIntegrations", {
5217
+ yargs28.option("withIntegrations", {
5306
5218
  alias: ["i"],
5307
5219
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
5308
5220
  type: "boolean"
@@ -5359,11 +5271,11 @@ function createQuirkEngineDataSource({
5359
5271
  var QuirkPullModule = {
5360
5272
  command: "pull <directory>",
5361
5273
  describe: "Pulls all quirks to local files in a directory",
5362
- builder: (yargs32) => withConfiguration(
5274
+ builder: (yargs28) => withConfiguration(
5363
5275
  withApiOptions(
5364
5276
  withProjectOptions(
5365
5277
  withDiffOptions(
5366
- yargs32.positional("directory", {
5278
+ yargs28.positional("directory", {
5367
5279
  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.",
5368
5280
  type: "string"
5369
5281
  }).option("format", {
@@ -5440,11 +5352,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
5440
5352
  var QuirkPushModule = {
5441
5353
  command: "push <directory>",
5442
5354
  describe: "Pushes all quirks from files in a directory or package to Uniform",
5443
- builder: (yargs32) => withConfiguration(
5355
+ builder: (yargs28) => withConfiguration(
5444
5356
  withApiOptions(
5445
5357
  withProjectOptions(
5446
5358
  withDiffOptions(
5447
- yargs32.positional("directory", {
5359
+ yargs28.positional("directory", {
5448
5360
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
5449
5361
  type: "string"
5450
5362
  }).option("what-if", {
@@ -5510,10 +5422,10 @@ var QuirkRemoveModule = {
5510
5422
  command: "remove <id>",
5511
5423
  aliases: ["delete", "rm"],
5512
5424
  describe: "Delete a quirk",
5513
- builder: (yargs32) => withConfiguration(
5425
+ builder: (yargs28) => withConfiguration(
5514
5426
  withApiOptions(
5515
5427
  withProjectOptions(
5516
- yargs32.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5428
+ yargs28.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5517
5429
  )
5518
5430
  )
5519
5431
  ),
@@ -5530,10 +5442,10 @@ var QuirkUpdateModule = {
5530
5442
  command: "update <filename>",
5531
5443
  aliases: ["put"],
5532
5444
  describe: "Insert or update a quirk",
5533
- builder: (yargs32) => withConfiguration(
5445
+ builder: (yargs28) => withConfiguration(
5534
5446
  withApiOptions(
5535
5447
  withProjectOptions(
5536
- yargs32.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5448
+ yargs28.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5537
5449
  )
5538
5450
  )
5539
5451
  ),
@@ -5550,25 +5462,25 @@ var QuirkModule = {
5550
5462
  command: "quirk <command>",
5551
5463
  aliases: ["qk"],
5552
5464
  describe: "Commands for Context quirks",
5553
- builder: (yargs32) => yargs32.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5465
+ builder: (yargs28) => yargs28.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5554
5466
  handler: () => {
5555
- yargs16.help();
5467
+ yargs15.help();
5556
5468
  }
5557
5469
  };
5558
5470
 
5559
5471
  // src/commands/context/commands/signal.ts
5560
- import yargs17 from "yargs";
5472
+ import yargs16 from "yargs";
5561
5473
 
5562
5474
  // src/commands/context/commands/signal/get.ts
5563
5475
  import { UncachedSignalClient } from "@uniformdev/context/api";
5564
5476
  var SignalGetModule = {
5565
5477
  command: "get <id>",
5566
5478
  describe: "Fetch a signal",
5567
- builder: (yargs32) => withConfiguration(
5479
+ builder: (yargs28) => withConfiguration(
5568
5480
  withFormatOptions(
5569
5481
  withApiOptions(
5570
5482
  withProjectOptions(
5571
- yargs32.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5483
+ yargs28.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5572
5484
  )
5573
5485
  )
5574
5486
  )
@@ -5592,7 +5504,7 @@ var SignalListModule = {
5592
5504
  command: "list",
5593
5505
  describe: "List signals",
5594
5506
  aliases: ["ls"],
5595
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
5507
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
5596
5508
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5597
5509
  const fetch3 = nodeFetchProxy(proxy);
5598
5510
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5641,11 +5553,11 @@ function createSignalEngineDataSource({
5641
5553
  var SignalPullModule = {
5642
5554
  command: "pull <directory>",
5643
5555
  describe: "Pulls all signals to local files in a directory",
5644
- builder: (yargs32) => withConfiguration(
5556
+ builder: (yargs28) => withConfiguration(
5645
5557
  withApiOptions(
5646
5558
  withProjectOptions(
5647
5559
  withDiffOptions(
5648
- yargs32.positional("directory", {
5560
+ yargs28.positional("directory", {
5649
5561
  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.",
5650
5562
  type: "string"
5651
5563
  }).option("format", {
@@ -5722,11 +5634,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
5722
5634
  var SignalPushModule = {
5723
5635
  command: "push <directory>",
5724
5636
  describe: "Pushes all signals from files in a directory or package to Uniform",
5725
- builder: (yargs32) => withConfiguration(
5637
+ builder: (yargs28) => withConfiguration(
5726
5638
  withApiOptions(
5727
5639
  withProjectOptions(
5728
5640
  withDiffOptions(
5729
- yargs32.positional("directory", {
5641
+ yargs28.positional("directory", {
5730
5642
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
5731
5643
  type: "string"
5732
5644
  }).option("what-if", {
@@ -5792,10 +5704,10 @@ var SignalRemoveModule = {
5792
5704
  command: "remove <id>",
5793
5705
  aliases: ["delete", "rm"],
5794
5706
  describe: "Delete a signal",
5795
- builder: (yargs32) => withConfiguration(
5707
+ builder: (yargs28) => withConfiguration(
5796
5708
  withApiOptions(
5797
5709
  withProjectOptions(
5798
- yargs32.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
5710
+ yargs28.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
5799
5711
  )
5800
5712
  )
5801
5713
  ),
@@ -5812,10 +5724,10 @@ var SignalUpdateModule = {
5812
5724
  command: "update <filename>",
5813
5725
  aliases: ["put"],
5814
5726
  describe: "Insert or update a signal",
5815
- builder: (yargs32) => withConfiguration(
5727
+ builder: (yargs28) => withConfiguration(
5816
5728
  withApiOptions(
5817
5729
  withProjectOptions(
5818
- yargs32.positional("filename", { demandOption: true, describe: "Signal file to put" })
5730
+ yargs28.positional("filename", { demandOption: true, describe: "Signal file to put" })
5819
5731
  )
5820
5732
  )
5821
5733
  ),
@@ -5832,25 +5744,25 @@ var SignalModule = {
5832
5744
  command: "signal <command>",
5833
5745
  aliases: ["sig"],
5834
5746
  describe: "Commands for Context signals",
5835
- builder: (yargs32) => yargs32.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
5747
+ builder: (yargs28) => yargs28.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
5836
5748
  handler: () => {
5837
- yargs17.help();
5749
+ yargs16.help();
5838
5750
  }
5839
5751
  };
5840
5752
 
5841
5753
  // src/commands/context/commands/test.ts
5842
- import yargs18 from "yargs";
5754
+ import yargs17 from "yargs";
5843
5755
 
5844
5756
  // src/commands/context/commands/test/get.ts
5845
5757
  import { UncachedTestClient } from "@uniformdev/context/api";
5846
5758
  var TestGetModule = {
5847
5759
  command: "get <id>",
5848
5760
  describe: "Fetch a test",
5849
- builder: (yargs32) => withConfiguration(
5761
+ builder: (yargs28) => withConfiguration(
5850
5762
  withFormatOptions(
5851
5763
  withApiOptions(
5852
5764
  withProjectOptions(
5853
- yargs32.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
5765
+ yargs28.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
5854
5766
  )
5855
5767
  )
5856
5768
  )
@@ -5874,7 +5786,7 @@ var TestListModule = {
5874
5786
  command: "list",
5875
5787
  describe: "List tests",
5876
5788
  aliases: ["ls"],
5877
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
5789
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
5878
5790
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5879
5791
  const fetch3 = nodeFetchProxy(proxy);
5880
5792
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5923,11 +5835,11 @@ function createTestEngineDataSource({
5923
5835
  var TestPullModule = {
5924
5836
  command: "pull <directory>",
5925
5837
  describe: "Pulls all tests to local files in a directory",
5926
- builder: (yargs32) => withConfiguration(
5838
+ builder: (yargs28) => withConfiguration(
5927
5839
  withApiOptions(
5928
5840
  withProjectOptions(
5929
5841
  withDiffOptions(
5930
- yargs32.positional("directory", {
5842
+ yargs28.positional("directory", {
5931
5843
  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.",
5932
5844
  type: "string"
5933
5845
  }).option("format", {
@@ -6004,11 +5916,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
6004
5916
  var TestPushModule = {
6005
5917
  command: "push <directory>",
6006
5918
  describe: "Pushes all tests from files in a directory or package to Uniform",
6007
- builder: (yargs32) => withConfiguration(
5919
+ builder: (yargs28) => withConfiguration(
6008
5920
  withApiOptions(
6009
5921
  withProjectOptions(
6010
5922
  withDiffOptions(
6011
- yargs32.positional("directory", {
5923
+ yargs28.positional("directory", {
6012
5924
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
6013
5925
  type: "string"
6014
5926
  }).option("what-if", {
@@ -6074,10 +5986,10 @@ var TestRemoveModule = {
6074
5986
  command: "remove <id>",
6075
5987
  aliases: ["delete", "rm"],
6076
5988
  describe: "Delete a test",
6077
- builder: (yargs32) => withConfiguration(
5989
+ builder: (yargs28) => withConfiguration(
6078
5990
  withApiOptions(
6079
5991
  withProjectOptions(
6080
- yargs32.positional("id", { demandOption: true, describe: "Test public ID to delete" })
5992
+ yargs28.positional("id", { demandOption: true, describe: "Test public ID to delete" })
6081
5993
  )
6082
5994
  )
6083
5995
  ),
@@ -6094,9 +6006,9 @@ var TestUpdateModule = {
6094
6006
  command: "update <filename>",
6095
6007
  aliases: ["put"],
6096
6008
  describe: "Insert or update a test",
6097
- builder: (yargs32) => withConfiguration(
6009
+ builder: (yargs28) => withConfiguration(
6098
6010
  withApiOptions(
6099
- withProjectOptions(yargs32.positional("filename", { demandOption: true, describe: "Test file to put" }))
6011
+ withProjectOptions(yargs28.positional("filename", { demandOption: true, describe: "Test file to put" }))
6100
6012
  )
6101
6013
  ),
6102
6014
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -6111,9 +6023,9 @@ var TestUpdateModule = {
6111
6023
  var TestModule = {
6112
6024
  command: "test <command>",
6113
6025
  describe: "Commands for Context A/B tests",
6114
- builder: (yargs32) => yargs32.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
6026
+ builder: (yargs28) => yargs28.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
6115
6027
  handler: () => {
6116
- yargs18.help();
6028
+ yargs17.help();
6117
6029
  }
6118
6030
  };
6119
6031
 
@@ -6122,290 +6034,9 @@ var ContextCommand = {
6122
6034
  command: "context <command>",
6123
6035
  aliases: ["ctx"],
6124
6036
  describe: "Uniform Context commands",
6125
- builder: (yargs32) => yargs32.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
6037
+ builder: (yargs28) => yargs28.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
6126
6038
  handler: () => {
6127
- yargs19.showHelp();
6128
- }
6129
- };
6130
-
6131
- // src/commands/integration/index.ts
6132
- import yargs22 from "yargs";
6133
-
6134
- // src/commands/integration/commands/definition.ts
6135
- import yargs21 from "yargs";
6136
-
6137
- // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
6138
- import yargs20 from "yargs";
6139
-
6140
- // src/commands/integration/commands/definition/edgehancer/deploy.ts
6141
- import { readFileSync as readFileSync2 } from "fs";
6142
-
6143
- // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
6144
- import { createLimitPolicy } from "@uniformdev/canvas";
6145
- import { ApiClient } from "@uniformdev/context/api";
6146
- var ENDPOINT = "/api/v1/integration-edgehancers";
6147
- var EdgehancerClient = class extends ApiClient {
6148
- constructor(options) {
6149
- if (!options.limitPolicy) {
6150
- options.limitPolicy = createLimitPolicy({});
6151
- }
6152
- super(options);
6153
- this.options = options;
6154
- }
6155
- async deploy(definition) {
6156
- const { teamId } = this.options;
6157
- const fetchUri = this.createUrl(ENDPOINT);
6158
- return await this.apiClient(fetchUri, {
6159
- method: "PUT",
6160
- body: JSON.stringify({ ...definition, teamId }),
6161
- expectNoContent: true
6162
- });
6163
- }
6164
- async remove(edgehancer) {
6165
- const { teamId } = this.options;
6166
- const fetchUri = this.createUrl(ENDPOINT);
6167
- return await this.apiClient(fetchUri, {
6168
- method: "DELETE",
6169
- body: JSON.stringify({ teamId, ...edgehancer }),
6170
- expectNoContent: true
6171
- });
6172
- }
6173
- };
6174
-
6175
- // src/commands/integration/commands/definition/edgehancer/util.ts
6176
- function withEdgehancerIdOptions(yargs32) {
6177
- return yargs32.option("connectorType", {
6178
- describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
6179
- demandOption: true,
6180
- type: "string"
6181
- }).option("archetype", {
6182
- describe: "Data connector archetype to edgehance. Must be defined within the connectorType.",
6183
- demandOption: true,
6184
- type: "string"
6185
- }).option("hook", {
6186
- describe: "Edgehancer hook to deploy to.",
6187
- demandOption: true,
6188
- choices: ["preRequest", "request"],
6189
- type: "string"
6190
- });
6191
- }
6192
-
6193
- // src/commands/integration/commands/definition/edgehancer/deploy.ts
6194
- var IntegrationEdgehancerDeployModule = {
6195
- command: "deploy <filename>",
6196
- describe: "Registers a custom integration definition on a project. The API key used must have project admin permissions.",
6197
- builder: (yargs32) => withConfiguration(
6198
- withApiOptions(
6199
- withTeamOptions(
6200
- withEdgehancerIdOptions(
6201
- yargs32.positional("filename", {
6202
- demandOption: true,
6203
- describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
6204
- })
6205
- )
6206
- )
6207
- )
6208
- ),
6209
- handler: async ({ apiHost, apiKey, proxy, filename, team: teamId, archetype, connectorType, hook }) => {
6210
- const fetch3 = nodeFetchProxy(proxy);
6211
- const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch3, teamId });
6212
- const code = readFileSync2(filename, "utf8");
6213
- await client.deploy({ archetype, code, connectorType, hook });
6214
- }
6215
- };
6216
-
6217
- // src/commands/integration/commands/definition/edgehancer/remove.ts
6218
- var IntegrationEdgehancerRemoveModule = {
6219
- command: "remove",
6220
- 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.",
6221
- builder: (yargs32) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs32)))),
6222
- handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
6223
- const fetch3 = nodeFetchProxy(proxy);
6224
- const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch3, teamId });
6225
- await client.remove({ archetype, connectorType, hook });
6226
- }
6227
- };
6228
-
6229
- // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
6230
- var IntegrationEdgehancerModule = {
6231
- command: "edgehancer <command>",
6232
- describe: "Commands for managing custom integration edgehancers at the team level.",
6233
- builder: (yargs32) => yargs32.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
6234
- handler: () => {
6235
- yargs20.help();
6236
- }
6237
- };
6238
-
6239
- // src/commands/integration/commands/definition/DefinitionClient.ts
6240
- import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
6241
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
6242
- var ENDPOINT2 = "/api/v1/integration-definitions";
6243
- var DefinitionClient = class extends ApiClient2 {
6244
- constructor(options) {
6245
- if (!options.limitPolicy) {
6246
- options.limitPolicy = createLimitPolicy2({});
6247
- }
6248
- super(options);
6249
- this.options = options;
6250
- }
6251
- async register(manifest) {
6252
- const { teamId } = this.options;
6253
- const fetchUri = this.createUrl(ENDPOINT2);
6254
- return await this.apiClient(fetchUri, {
6255
- method: "PUT",
6256
- body: JSON.stringify({ data: manifest, teamId }),
6257
- expectNoContent: true
6258
- });
6259
- }
6260
- async remove(integrationType) {
6261
- const { teamId } = this.options;
6262
- const fetchUri = this.createUrl(ENDPOINT2);
6263
- return await this.apiClient(fetchUri, {
6264
- method: "DELETE",
6265
- body: JSON.stringify({ teamId, type: integrationType }),
6266
- expectNoContent: true
6267
- });
6268
- }
6269
- };
6270
-
6271
- // src/commands/integration/commands/definition/register.ts
6272
- var IntegrationDefinitionRegisterModule = {
6273
- command: "register <filename>",
6274
- describe: "Registers a custom integration definition on a project. The API key used must have project admin permissions.",
6275
- builder: (yargs32) => withConfiguration(
6276
- withApiOptions(
6277
- withTeamOptions(
6278
- yargs32.positional("filename", {
6279
- demandOption: true,
6280
- describe: "Integration definition manifest to register"
6281
- })
6282
- )
6283
- )
6284
- ),
6285
- handler: async ({ apiHost, apiKey, proxy, filename, team: teamId }) => {
6286
- const fetch3 = nodeFetchProxy(proxy);
6287
- const client = new DefinitionClient({ apiKey, apiHost, fetch: fetch3, teamId });
6288
- const file = readFileToObject(filename);
6289
- await client.register(file);
6290
- }
6291
- };
6292
-
6293
- // src/commands/integration/commands/definition/remove.ts
6294
- var IntegrationDefinitionRemoveModule = {
6295
- command: "remove <type>",
6296
- 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.",
6297
- builder: (yargs32) => withConfiguration(
6298
- withApiOptions(
6299
- withTeamOptions(
6300
- yargs32.positional("type", {
6301
- demandOption: true,
6302
- describe: "Integration type (from its manifest) to remove."
6303
- })
6304
- )
6305
- )
6306
- ),
6307
- handler: async ({ apiHost, apiKey, proxy, type, team: teamId }) => {
6308
- const fetch3 = nodeFetchProxy(proxy);
6309
- const client = new DefinitionClient({ apiKey, apiHost, fetch: fetch3, teamId });
6310
- await client.remove(type);
6311
- }
6312
- };
6313
-
6314
- // src/commands/integration/commands/definition.ts
6315
- var IntegrationDefinitionModule = {
6316
- command: "definition <command>",
6317
- describe: "Commands for managing custom integration definitions at the team level.",
6318
- builder: (yargs32) => yargs32.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
6319
- handler: () => {
6320
- yargs21.help();
6321
- }
6322
- };
6323
-
6324
- // src/commands/integration/commands/InstallClient.ts
6325
- import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
6326
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
6327
- var ENDPOINT3 = "/api/v1/integration-installations";
6328
- var InstallClient = class extends ApiClient3 {
6329
- constructor(options) {
6330
- if (!options.limitPolicy) {
6331
- options.limitPolicy = createLimitPolicy3({});
6332
- }
6333
- super(options);
6334
- this.options = options;
6335
- }
6336
- async install(definition) {
6337
- const { projectId } = this.options;
6338
- const fetchUri = this.createUrl(ENDPOINT3);
6339
- return await this.apiClient(fetchUri, {
6340
- method: "PUT",
6341
- body: JSON.stringify({ ...definition, projectId }),
6342
- expectNoContent: true
6343
- });
6344
- }
6345
- async remove(type) {
6346
- const { projectId } = this.options;
6347
- const fetchUri = this.createUrl(ENDPOINT3);
6348
- return await this.apiClient(fetchUri, {
6349
- method: "DELETE",
6350
- body: JSON.stringify({ projectId, type }),
6351
- expectNoContent: true
6352
- });
6353
- }
6354
- };
6355
-
6356
- // src/commands/integration/commands/install.ts
6357
- var IntegrationInstallModule = {
6358
- command: "install <type>",
6359
- 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.",
6360
- builder: (yargs32) => withConfiguration(
6361
- withApiOptions(
6362
- withProjectOptions(
6363
- yargs32.positional("type", {
6364
- demandOption: true,
6365
- describe: "Integration type to install (as defined in its manifest)"
6366
- }).option("configuration", {
6367
- describe: "Optional JSON configuration data for the integration, to pre-configure it. The schema is specific to each integration.",
6368
- type: "string"
6369
- })
6370
- )
6371
- )
6372
- ),
6373
- handler: async ({ apiHost, apiKey, proxy, type, configuration: configuration2, project: projectId }) => {
6374
- const fetch3 = nodeFetchProxy(proxy);
6375
- const client = new InstallClient({ apiKey, apiHost, fetch: fetch3, projectId });
6376
- const data = configuration2 ? JSON.parse(configuration2) : void 0;
6377
- await client.install({ data, type });
6378
- }
6379
- };
6380
-
6381
- // src/commands/integration/commands/uninstall.ts
6382
- var IntegrationUninstallModule = {
6383
- command: "uninstall <type>",
6384
- describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
6385
- builder: (yargs32) => withConfiguration(
6386
- withApiOptions(
6387
- withProjectOptions(
6388
- yargs32.positional("type", {
6389
- demandOption: true,
6390
- describe: "Integration type to uninstall (as defined in its manifest)"
6391
- })
6392
- )
6393
- )
6394
- ),
6395
- handler: async ({ apiHost, apiKey, proxy, type, project: projectId }) => {
6396
- const fetch3 = nodeFetchProxy(proxy);
6397
- const client = new InstallClient({ apiKey, apiHost, fetch: fetch3, projectId });
6398
- await client.remove(type);
6399
- }
6400
- };
6401
-
6402
- // src/commands/integration/index.ts
6403
- var IntegrationCommand = {
6404
- command: "integration <command>",
6405
- describe: "Integration management commands",
6406
- builder: (yargs32) => yargs32.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
6407
- handler: () => {
6408
- yargs22.showHelp();
6039
+ yargs18.showHelp();
6409
6040
  }
6410
6041
  };
6411
6042
 
@@ -6433,7 +6064,7 @@ import { PostHog } from "posthog-node";
6433
6064
  // package.json
6434
6065
  var package_default = {
6435
6066
  name: "@uniformdev/cli",
6436
- version: "19.96.0",
6067
+ version: "19.99.0",
6437
6068
  description: "Uniform command line interface tool",
6438
6069
  license: "SEE LICENSE IN LICENSE.txt",
6439
6070
  main: "./cli.js",
@@ -7248,7 +6879,7 @@ npm run dev
7248
6879
  }
7249
6880
 
7250
6881
  // src/commands/new/commands/new-mesh-integration.ts
7251
- import { existsSync as existsSync3, mkdirSync as mkdirSync4, readdirSync, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
6882
+ import { existsSync as existsSync3, mkdirSync as mkdirSync4, readdirSync, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "fs";
7252
6883
  import inquirer5 from "inquirer";
7253
6884
  import path4 from "path";
7254
6885
  import slugify2 from "slugify";
@@ -7295,13 +6926,13 @@ async function newMeshIntegrationHandler({
7295
6926
  if (!existsSync3(pathToManifest)) {
7296
6927
  throw new Error("Invalid integration starter cloned: missing `mesh-manifest.json`");
7297
6928
  }
7298
- const manifestContents = readFileSync3(pathToManifest, "utf-8");
6929
+ const manifestContents = readFileSync2(pathToManifest, "utf-8");
7299
6930
  const manifestJson = JSON.parse(manifestContents);
7300
6931
  manifestJson.type = typeSlug;
7301
6932
  manifestJson.displayName = name;
7302
6933
  writeFileSync2(pathToManifest, JSON.stringify(manifestJson, null, 2), "utf-8");
7303
6934
  const packageJsonPath = path4.resolve(targetDir, "package.json");
7304
- const packageJson = JSON.parse(readFileSync3(packageJsonPath, "utf-8"));
6935
+ const packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8"));
7305
6936
  packageJson.name = typeSlug;
7306
6937
  writeFileSync2(packageJsonPath, JSON.stringify(packageJson, null, 2), "utf-8");
7307
6938
  const fullMeshAppKey = await uniformClient.registerMeshIntegration({ teamId, manifest: manifestJson });
@@ -7443,10 +7074,10 @@ var NewMeshCmd = {
7443
7074
  };
7444
7075
 
7445
7076
  // src/commands/optimize/index.ts
7446
- import yargs24 from "yargs";
7077
+ import yargs20 from "yargs";
7447
7078
 
7448
7079
  // src/commands/optimize/manifest.ts
7449
- import yargs23 from "yargs";
7080
+ import yargs19 from "yargs";
7450
7081
 
7451
7082
  // src/commands/optimize/manifest/download.ts
7452
7083
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -7461,7 +7092,7 @@ var UniformBaseUrl = "https://uniform.app";
7461
7092
  var module = {
7462
7093
  command: "download [output]",
7463
7094
  describe: "Download intent manifest",
7464
- builder: (yargs32) => yargs32.option("apiKey", {
7095
+ builder: (yargs28) => yargs28.option("apiKey", {
7465
7096
  alias: "k",
7466
7097
  demandOption: true,
7467
7098
  string: true,
@@ -7562,10 +7193,10 @@ var module2 = {
7562
7193
  command: "manifest <command>",
7563
7194
  describe: "Intent manifest commands",
7564
7195
  builder: () => {
7565
- return yargs23.command(download_default);
7196
+ return yargs19.command(download_default);
7566
7197
  },
7567
7198
  handler: () => {
7568
- yargs23.showHelp();
7199
+ yargs19.showHelp();
7569
7200
  }
7570
7201
  };
7571
7202
  var manifest_default = module2;
@@ -7576,29 +7207,29 @@ var OptimizeCommand = {
7576
7207
  aliases: ["opt"],
7577
7208
  describe: "Uniform Optimize commands",
7578
7209
  builder: () => {
7579
- return yargs24.command(manifest_default);
7210
+ return yargs20.command(manifest_default);
7580
7211
  },
7581
7212
  handler: () => {
7582
- yargs24.showHelp();
7213
+ yargs20.showHelp();
7583
7214
  }
7584
7215
  };
7585
7216
 
7586
7217
  // src/commands/project-map/index.ts
7587
- import yargs27 from "yargs";
7218
+ import yargs23 from "yargs";
7588
7219
 
7589
7220
  // src/commands/project-map/commands/projectMapDefinition.ts
7590
- import yargs25 from "yargs";
7221
+ import yargs21 from "yargs";
7591
7222
 
7592
7223
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
7593
7224
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
7594
7225
  var ProjectMapDefinitionGetModule = {
7595
7226
  command: "get <id>",
7596
7227
  describe: "Fetch a project map",
7597
- builder: (yargs32) => withFormatOptions(
7228
+ builder: (yargs28) => withFormatOptions(
7598
7229
  withConfiguration(
7599
7230
  withApiOptions(
7600
7231
  withProjectOptions(
7601
- yargs32.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
7232
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
7602
7233
  )
7603
7234
  )
7604
7235
  )
@@ -7622,7 +7253,7 @@ var ProjectMapDefinitionListModule = {
7622
7253
  command: "list",
7623
7254
  describe: "List of project maps",
7624
7255
  aliases: ["ls"],
7625
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
7256
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
7626
7257
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
7627
7258
  const fetch3 = nodeFetchProxy(proxy);
7628
7259
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7679,11 +7310,11 @@ function createProjectMapDefinitionEngineDataSource({
7679
7310
  var ProjectMapDefinitionPullModule = {
7680
7311
  command: "pull <directory>",
7681
7312
  describe: "Pulls all project maps to local files in a directory",
7682
- builder: (yargs32) => withConfiguration(
7313
+ builder: (yargs28) => withConfiguration(
7683
7314
  withApiOptions(
7684
7315
  withProjectOptions(
7685
7316
  withDiffOptions(
7686
- yargs32.positional("directory", {
7317
+ yargs28.positional("directory", {
7687
7318
  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.",
7688
7319
  type: "string"
7689
7320
  }).option("format", {
@@ -7760,11 +7391,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
7760
7391
  var ProjectMapDefinitionPushModule = {
7761
7392
  command: "push <directory>",
7762
7393
  describe: "Pushes all project maps from files in a directory or package to Uniform",
7763
- builder: (yargs32) => withConfiguration(
7394
+ builder: (yargs28) => withConfiguration(
7764
7395
  withApiOptions(
7765
7396
  withProjectOptions(
7766
7397
  withDiffOptions(
7767
- yargs32.positional("directory", {
7398
+ yargs28.positional("directory", {
7768
7399
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
7769
7400
  type: "string"
7770
7401
  }).option("what-if", {
@@ -7830,9 +7461,9 @@ var ProjectMapDefinitionRemoveModule = {
7830
7461
  command: "remove <id>",
7831
7462
  aliases: ["delete", "rm"],
7832
7463
  describe: "Delete a project map",
7833
- builder: (yargs32) => withConfiguration(
7464
+ builder: (yargs28) => withConfiguration(
7834
7465
  withApiOptions(
7835
- withProjectOptions(yargs32.positional("id", { demandOption: true, describe: " UUID to delete" }))
7466
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: " UUID to delete" }))
7836
7467
  )
7837
7468
  ),
7838
7469
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -7848,10 +7479,10 @@ var ProjectMapDefinitionUpdateModule = {
7848
7479
  command: "update <filename>",
7849
7480
  aliases: ["put"],
7850
7481
  describe: "Insert or update a project map",
7851
- builder: (yargs32) => withConfiguration(
7482
+ builder: (yargs28) => withConfiguration(
7852
7483
  withApiOptions(
7853
7484
  withProjectOptions(
7854
- yargs32.positional("filename", { demandOption: true, describe: "Project map file to put" })
7485
+ yargs28.positional("filename", { demandOption: true, describe: "Project map file to put" })
7855
7486
  )
7856
7487
  )
7857
7488
  ),
@@ -7867,25 +7498,25 @@ var ProjectMapDefinitionUpdateModule = {
7867
7498
  var ProjectMapDefinitionModule = {
7868
7499
  command: "definition <command>",
7869
7500
  describe: "Commands for ProjectMap Definitions",
7870
- builder: (yargs32) => yargs32.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
7501
+ builder: (yargs28) => yargs28.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
7871
7502
  handler: () => {
7872
- yargs25.help();
7503
+ yargs21.help();
7873
7504
  }
7874
7505
  };
7875
7506
 
7876
7507
  // src/commands/project-map/commands/projectMapNode.ts
7877
- import yargs26 from "yargs";
7508
+ import yargs22 from "yargs";
7878
7509
 
7879
7510
  // src/commands/project-map/commands/ProjectMapNode/get.ts
7880
7511
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
7881
7512
  var ProjectMapNodeGetModule = {
7882
7513
  command: "get <id> <projectMapId>",
7883
7514
  describe: "Fetch a project map node",
7884
- builder: (yargs32) => withConfiguration(
7515
+ builder: (yargs28) => withConfiguration(
7885
7516
  withFormatOptions(
7886
7517
  withApiOptions(
7887
7518
  withProjectOptions(
7888
- yargs32.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
7519
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
7889
7520
  )
7890
7521
  )
7891
7522
  )
@@ -7911,11 +7542,11 @@ var ProjectMapNodeListModule = {
7911
7542
  command: "list <projectMapId>",
7912
7543
  describe: "List project map nodes",
7913
7544
  aliases: ["ls"],
7914
- builder: (yargs32) => withConfiguration(
7545
+ builder: (yargs28) => withConfiguration(
7915
7546
  withFormatOptions(
7916
7547
  withApiOptions(
7917
7548
  withProjectOptions(
7918
- yargs32.positional("projectMapId", {
7549
+ yargs28.positional("projectMapId", {
7919
7550
  demandOption: true,
7920
7551
  describe: "ProjectMap UUID to fetch from"
7921
7552
  })
@@ -7986,11 +7617,11 @@ function createProjectMapNodeEngineDataSource({
7986
7617
  var ProjectMapNodePullModule = {
7987
7618
  command: "pull <directory>",
7988
7619
  describe: "Pulls all project maps nodes to local files in a directory",
7989
- builder: (yargs32) => withConfiguration(
7620
+ builder: (yargs28) => withConfiguration(
7990
7621
  withApiOptions(
7991
7622
  withProjectOptions(
7992
7623
  withDiffOptions(
7993
- yargs32.positional("directory", {
7624
+ yargs28.positional("directory", {
7994
7625
  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.",
7995
7626
  type: "string"
7996
7627
  }).option("format", {
@@ -8071,11 +7702,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
8071
7702
  var ProjectMapNodePushModule = {
8072
7703
  command: "push <directory>",
8073
7704
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
8074
- builder: (yargs32) => withConfiguration(
7705
+ builder: (yargs28) => withConfiguration(
8075
7706
  withApiOptions(
8076
7707
  withProjectOptions(
8077
7708
  withDiffOptions(
8078
- yargs32.positional("directory", {
7709
+ yargs28.positional("directory", {
8079
7710
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
8080
7711
  type: "string"
8081
7712
  }).option("what-if", {
@@ -8150,10 +7781,10 @@ var ProjectMapNodeRemoveModule = {
8150
7781
  command: "remove <id> <projectMapId>",
8151
7782
  aliases: ["delete", "rm"],
8152
7783
  describe: "Delete a project map node",
8153
- builder: (yargs32) => withConfiguration(
7784
+ builder: (yargs28) => withConfiguration(
8154
7785
  withApiOptions(
8155
7786
  withProjectOptions(
8156
- yargs32.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
7787
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
8157
7788
  )
8158
7789
  )
8159
7790
  ),
@@ -8170,10 +7801,10 @@ var ProjectMapNodeUpdateModule = {
8170
7801
  command: "update <filename> <projectMapId>",
8171
7802
  aliases: ["put"],
8172
7803
  describe: "Insert or update a project map node",
8173
- builder: (yargs32) => withConfiguration(
7804
+ builder: (yargs28) => withConfiguration(
8174
7805
  withApiOptions(
8175
7806
  withProjectOptions(
8176
- yargs32.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
7807
+ yargs28.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
8177
7808
  )
8178
7809
  )
8179
7810
  ),
@@ -8189,9 +7820,9 @@ var ProjectMapNodeUpdateModule = {
8189
7820
  var ProjectMapNodeModule = {
8190
7821
  command: "node <command>",
8191
7822
  describe: "Commands for ProjectMap Nodes",
8192
- builder: (yargs32) => yargs32.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
7823
+ builder: (yargs28) => yargs28.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
8193
7824
  handler: () => {
8194
- yargs26.help();
7825
+ yargs22.help();
8195
7826
  }
8196
7827
  };
8197
7828
 
@@ -8200,28 +7831,28 @@ var ProjectMapCommand = {
8200
7831
  command: "project-map <command>",
8201
7832
  aliases: ["prm"],
8202
7833
  describe: "Uniform ProjectMap commands",
8203
- builder: (yargs32) => yargs32.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
7834
+ builder: (yargs28) => yargs28.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
8204
7835
  handler: () => {
8205
- yargs27.showHelp();
7836
+ yargs23.showHelp();
8206
7837
  }
8207
7838
  };
8208
7839
 
8209
7840
  // src/commands/redirect/index.ts
8210
- import yargs29 from "yargs";
7841
+ import yargs25 from "yargs";
8211
7842
 
8212
7843
  // src/commands/redirect/commands/redirect.ts
8213
- import yargs28 from "yargs";
7844
+ import yargs24 from "yargs";
8214
7845
 
8215
7846
  // src/commands/redirect/commands/RedirectDefinition/get.ts
8216
7847
  import { UncachedRedirectClient } from "@uniformdev/redirect";
8217
7848
  var RedirectDefinitionGetModule = {
8218
7849
  command: "get <id>",
8219
7850
  describe: "Fetch a redirect",
8220
- builder: (yargs32) => withConfiguration(
7851
+ builder: (yargs28) => withConfiguration(
8221
7852
  withFormatOptions(
8222
7853
  withApiOptions(
8223
7854
  withProjectOptions(
8224
- yargs32.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
7855
+ yargs28.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
8225
7856
  )
8226
7857
  )
8227
7858
  )
@@ -8245,7 +7876,7 @@ var RedirectDefinitionListModule = {
8245
7876
  command: "list",
8246
7877
  describe: "List of redirects",
8247
7878
  aliases: ["ls"],
8248
- builder: (yargs32) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs32)))),
7879
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
8249
7880
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
8250
7881
  const fetch3 = nodeFetchProxy(proxy);
8251
7882
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -8311,11 +7942,11 @@ function createRedirectDefinitionEngineDataSource({
8311
7942
  var RedirectDefinitionPullModule = {
8312
7943
  command: "pull <directory>",
8313
7944
  describe: "Pulls all redirects to local files in a directory",
8314
- builder: (yargs32) => withConfiguration(
7945
+ builder: (yargs28) => withConfiguration(
8315
7946
  withApiOptions(
8316
7947
  withProjectOptions(
8317
7948
  withDiffOptions(
8318
- yargs32.positional("directory", {
7949
+ yargs28.positional("directory", {
8319
7950
  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.",
8320
7951
  type: "string"
8321
7952
  }).option("format", {
@@ -8393,11 +8024,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
8393
8024
  var RedirectDefinitionPushModule = {
8394
8025
  command: "push <directory>",
8395
8026
  describe: "Pushes all redirects from files in a directory or package to Uniform",
8396
- builder: (yargs32) => withConfiguration(
8027
+ builder: (yargs28) => withConfiguration(
8397
8028
  withApiOptions(
8398
8029
  withProjectOptions(
8399
8030
  withDiffOptions(
8400
- yargs32.positional("directory", {
8031
+ yargs28.positional("directory", {
8401
8032
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
8402
8033
  type: "string"
8403
8034
  }).option("what-if", {
@@ -8463,9 +8094,9 @@ var RedirectDefinitionRemoveModule = {
8463
8094
  command: "remove <id>",
8464
8095
  aliases: ["delete", "rm"],
8465
8096
  describe: "Delete a redirect",
8466
- builder: (yargs32) => withConfiguration(
8097
+ builder: (yargs28) => withConfiguration(
8467
8098
  withApiOptions(
8468
- withProjectOptions(yargs32.positional("id", { demandOption: true, describe: " UUID to delete" }))
8099
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: " UUID to delete" }))
8469
8100
  )
8470
8101
  ),
8471
8102
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -8481,10 +8112,10 @@ var RedirectDefinitionUpdateModule = {
8481
8112
  command: "update <filename>",
8482
8113
  aliases: ["put"],
8483
8114
  describe: "Insert or update a redirect",
8484
- builder: (yargs32) => withConfiguration(
8115
+ builder: (yargs28) => withConfiguration(
8485
8116
  withApiOptions(
8486
8117
  withProjectOptions(
8487
- yargs32.positional("filename", { demandOption: true, describe: "Redirect file to put" })
8118
+ yargs28.positional("filename", { demandOption: true, describe: "Redirect file to put" })
8488
8119
  )
8489
8120
  )
8490
8121
  ),
@@ -8500,9 +8131,9 @@ var RedirectDefinitionUpdateModule = {
8500
8131
  var RedirectDefinitionModule = {
8501
8132
  command: "definition <command>",
8502
8133
  describe: "Commands for Redirect Definitions",
8503
- builder: (yargs32) => yargs32.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
8134
+ builder: (yargs28) => yargs28.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
8504
8135
  handler: () => {
8505
- yargs28.help();
8136
+ yargs24.help();
8506
8137
  }
8507
8138
  };
8508
8139
 
@@ -8511,14 +8142,14 @@ var RedirectCommand = {
8511
8142
  command: "redirect <command>",
8512
8143
  aliases: ["red"],
8513
8144
  describe: "Uniform Redirect commands",
8514
- builder: (yargs32) => yargs32.command(RedirectDefinitionModule).demandCommand(),
8145
+ builder: (yargs28) => yargs28.command(RedirectDefinitionModule).demandCommand(),
8515
8146
  handler: () => {
8516
- yargs29.showHelp();
8147
+ yargs25.showHelp();
8517
8148
  }
8518
8149
  };
8519
8150
 
8520
8151
  // src/commands/sync/index.ts
8521
- import yargs30 from "yargs";
8152
+ import yargs26 from "yargs";
8522
8153
 
8523
8154
  // src/commands/sync/commands/util.ts
8524
8155
  import ora2 from "ora";
@@ -8551,11 +8182,11 @@ function spin(entityType) {
8551
8182
  var SyncPullModule = {
8552
8183
  command: "pull",
8553
8184
  describe: "Pulls whole project to local files in a directory",
8554
- builder: (yargs32) => withConfiguration(
8185
+ builder: (yargs28) => withConfiguration(
8555
8186
  withApiOptions(
8556
8187
  withProjectOptions(
8557
8188
  withDiffOptions(
8558
- yargs32.option("what-if", {
8189
+ yargs28.option("what-if", {
8559
8190
  alias: ["w"],
8560
8191
  describe: "What-if mode reports what would be done but changes no files",
8561
8192
  default: false,
@@ -8649,11 +8280,11 @@ var getFormat = (entityType, config2) => {
8649
8280
  var SyncPushModule = {
8650
8281
  command: "push",
8651
8282
  describe: "Pushes whole project data from files in a directory or package to Uniform",
8652
- builder: (yargs32) => withConfiguration(
8283
+ builder: (yargs28) => withConfiguration(
8653
8284
  withApiOptions(
8654
8285
  withProjectOptions(
8655
8286
  withDiffOptions(
8656
- yargs32.option("what-if", {
8287
+ yargs28.option("what-if", {
8657
8288
  alias: ["w"],
8658
8289
  describe: "What-if mode reports what would be done but changes nothing",
8659
8290
  default: false,
@@ -8752,9 +8383,9 @@ var getFormat2 = (entityType, config2) => {
8752
8383
  var SyncCommand = {
8753
8384
  command: "sync <command>",
8754
8385
  describe: "Uniform Sync commands",
8755
- builder: (yargs32) => yargs32.command(SyncPullModule).command(SyncPushModule).demandCommand(),
8386
+ builder: (yargs28) => yargs28.command(SyncPullModule).command(SyncPushModule).demandCommand(),
8756
8387
  handler: () => {
8757
- yargs30.showHelp();
8388
+ yargs26.showHelp();
8758
8389
  }
8759
8390
  };
8760
8391
 
@@ -8766,19 +8397,18 @@ import { reset } from "colorette";
8766
8397
  function fillString(char, length) {
8767
8398
  return Array.from({ length }).map(() => char).join("");
8768
8399
  }
8769
- var stdErrLog = (message) => process.stderr.write(message + "\n");
8770
8400
  function logCallout(options) {
8771
8401
  const message = typeof options === "string" ? options : options.message;
8772
8402
  const messageLines = message.trim().split("\n");
8773
8403
  const longestLine = messageLines.reduce((longest, next) => next.length > longest.length ? next : longest);
8774
8404
  const bar = "**" + fillString("*", reset(longestLine).length);
8775
- stdErrLog("");
8776
- stdErrLog(bar);
8405
+ console.log("");
8406
+ console.log(bar);
8777
8407
  for (const line of messageLines) {
8778
- stdErrLog(` ${line}`);
8408
+ console.log(` ${line}`);
8779
8409
  }
8780
- stdErrLog(bar);
8781
- stdErrLog("");
8410
+ console.log(bar);
8411
+ console.log("");
8782
8412
  }
8783
8413
 
8784
8414
  // src/updateCheck.ts
@@ -9021,7 +8651,7 @@ First found was: v${firstVersion}`;
9021
8651
 
9022
8652
  // src/index.ts
9023
8653
  dotenv.config();
9024
- var yarggery = yargs31(hideBin(process.argv));
8654
+ var yarggery = yargs27(hideBin(process.argv));
9025
8655
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
9026
8656
  var configuration = loadConfig(inlineConfigurationFilePath || null);
9027
8657
  yarggery.option("verbose", {
@@ -9030,4 +8660,4 @@ yarggery.option("verbose", {
9030
8660
  type: "boolean"
9031
8661
  }).scriptName("uniform").config(configuration).config("config", function() {
9032
8662
  return {};
9033
- }).command(CanvasCommand).command(ContextCommand).command(ProjectMapCommand).command(RedirectCommand).command(SyncCommand).command(NewCmd).command(NewMeshCmd).command(OptimizeCommand).command(IntegrationCommand).demandCommand(1, "").strict().help().middleware([checkForUpdateMiddleware, checkLocalDepsVersions]).argv;
8663
+ }).command(CanvasCommand).command(ContextCommand).command(ProjectMapCommand).command(RedirectCommand).command(SyncCommand).command(NewCmd).command(NewMeshCmd).command(OptimizeCommand).demandCommand(1, "").strict().help().middleware([checkForUpdateMiddleware, checkLocalDepsVersions]).argv;