@uniformdev/cli 19.88.0 → 19.89.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.
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 yargs26 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 yargs10 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(yargs27) {
141
- return yargs27.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(yargs27) {
147
- return yargs27.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(yargs27) {
187
- return yargs27.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,8 +194,8 @@ function withProjectOptions(yargs27) {
194
194
  alias: ["p"]
195
195
  });
196
196
  }
197
- function withFormatOptions(yargs27) {
198
- return yargs27.option("format", {
197
+ function withFormatOptions(yargs28) {
198
+ return yargs28.option("format", {
199
199
  alias: ["f"],
200
200
  describe: "Output format",
201
201
  default: "yaml",
@@ -207,8 +207,8 @@ function withFormatOptions(yargs27) {
207
207
  type: "string"
208
208
  });
209
209
  }
210
- function withDiffOptions(yargs27) {
211
- return yargs27.option("diff", {
210
+ function withDiffOptions(yargs28) {
211
+ return yargs28.option("diff", {
212
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.",
213
213
  default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
214
214
  type: "string",
@@ -632,12 +632,12 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
632
632
  var AssetGetModule = {
633
633
  command: "get <id>",
634
634
  describe: "Get an asset",
635
- builder: (yargs27) => withConfiguration(
635
+ builder: (yargs28) => withConfiguration(
636
636
  withFormatOptions(
637
637
  withApiOptions(
638
638
  withProjectOptions(
639
639
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
640
- yargs27.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
640
+ yargs28.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
641
641
  )
642
642
  )
643
643
  )
@@ -658,7 +658,7 @@ import { UncachedAssetClient as UncachedAssetClient2 } from "@uniformdev/assets"
658
658
  var AssetListModule = {
659
659
  command: "list",
660
660
  describe: "List assets",
661
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
661
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
662
662
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
663
663
  const fetch3 = nodeFetchProxy(proxy);
664
664
  const client = new UncachedAssetClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1008,8 +1008,8 @@ function prepCompositionForDisk(composition) {
1008
1008
  delete prepped.state;
1009
1009
  return prepped;
1010
1010
  }
1011
- function withStateOptions(yargs27) {
1012
- return yargs27.option("state", {
1011
+ function withStateOptions(yargs28) {
1012
+ return yargs28.option("state", {
1013
1013
  type: "string",
1014
1014
  describe: `Composition state to fetch.`,
1015
1015
  choices: ["preview", "published"],
@@ -1075,11 +1075,11 @@ function writeCanvasPackage(filename, packageContents) {
1075
1075
  var AssetPullModule = {
1076
1076
  command: "pull <directory>",
1077
1077
  describe: "Pulls all assets to local files in a directory",
1078
- builder: (yargs27) => withConfiguration(
1078
+ builder: (yargs28) => withConfiguration(
1079
1079
  withApiOptions(
1080
1080
  withProjectOptions(
1081
1081
  withDiffOptions(
1082
- yargs27.positional("directory", {
1082
+ yargs28.positional("directory", {
1083
1083
  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.",
1084
1084
  type: "string"
1085
1085
  }).option("format", {
@@ -1197,11 +1197,11 @@ import { UncachedFileClient as UncachedFileClient2 } from "@uniformdev/files";
1197
1197
  var AssetPushModule = {
1198
1198
  command: "push <directory>",
1199
1199
  describe: "Pushes all assets from files in a directory to Uniform",
1200
- builder: (yargs27) => withConfiguration(
1200
+ builder: (yargs28) => withConfiguration(
1201
1201
  withApiOptions(
1202
1202
  withProjectOptions(
1203
1203
  withDiffOptions(
1204
- yargs27.positional("directory", {
1204
+ yargs28.positional("directory", {
1205
1205
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
1206
1206
  type: "string"
1207
1207
  }).option("what-if", {
@@ -1304,9 +1304,9 @@ var AssetRemoveModule = {
1304
1304
  command: "remove <id>",
1305
1305
  aliases: ["delete", "rm"],
1306
1306
  describe: "Delete an asset",
1307
- builder: (yargs27) => withConfiguration(
1307
+ builder: (yargs28) => withConfiguration(
1308
1308
  withApiOptions(
1309
- withProjectOptions(yargs27.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1309
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
1310
1310
  )
1311
1311
  ),
1312
1312
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -1322,10 +1322,10 @@ var AssetUpdateModule = {
1322
1322
  command: "update <filename>",
1323
1323
  aliases: ["put"],
1324
1324
  describe: "Insert or update an asset",
1325
- builder: (yargs27) => withConfiguration(
1325
+ builder: (yargs28) => withConfiguration(
1326
1326
  withApiOptions(
1327
1327
  withProjectOptions(
1328
- yargs27.positional("filename", { demandOption: true, describe: "Asset file to put" })
1328
+ yargs28.positional("filename", { demandOption: true, describe: "Asset file to put" })
1329
1329
  )
1330
1330
  )
1331
1331
  ),
@@ -1341,7 +1341,7 @@ var AssetUpdateModule = {
1341
1341
  var AssetModule = {
1342
1342
  command: "asset <command>",
1343
1343
  describe: "Commands for Assets",
1344
- builder: (yargs27) => yargs27.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1344
+ builder: (yargs28) => yargs28.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
1345
1345
  handler: () => {
1346
1346
  yargs.help();
1347
1347
  }
@@ -1355,11 +1355,11 @@ import { UncachedCategoryClient } from "@uniformdev/canvas";
1355
1355
  var CategoryGetModule = {
1356
1356
  command: "get <id>",
1357
1357
  describe: "Fetch a category",
1358
- builder: (yargs27) => withConfiguration(
1358
+ builder: (yargs28) => withConfiguration(
1359
1359
  withFormatOptions(
1360
1360
  withApiOptions(
1361
1361
  withProjectOptions(
1362
- yargs27.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1362
+ yargs28.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
1363
1363
  )
1364
1364
  )
1365
1365
  )
@@ -1384,7 +1384,7 @@ var CategoryListModule = {
1384
1384
  command: "list",
1385
1385
  describe: "List categories",
1386
1386
  aliases: ["ls"],
1387
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27.options({}))))),
1387
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28.options({}))))),
1388
1388
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
1389
1389
  const fetch3 = nodeFetchProxy(proxy);
1390
1390
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -1433,11 +1433,11 @@ function createCategoriesEngineDataSource({
1433
1433
  var CategoryPullModule = {
1434
1434
  command: "pull <directory>",
1435
1435
  describe: "Pulls all categories to local files in a directory",
1436
- builder: (yargs27) => withConfiguration(
1436
+ builder: (yargs28) => withConfiguration(
1437
1437
  withApiOptions(
1438
1438
  withProjectOptions(
1439
1439
  withDiffOptions(
1440
- yargs27.positional("directory", {
1440
+ yargs28.positional("directory", {
1441
1441
  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.",
1442
1442
  type: "string"
1443
1443
  }).option("format", {
@@ -1513,11 +1513,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
1513
1513
  var CategoryPushModule = {
1514
1514
  command: "push <directory>",
1515
1515
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
1516
- builder: (yargs27) => withConfiguration(
1516
+ builder: (yargs28) => withConfiguration(
1517
1517
  withApiOptions(
1518
1518
  withProjectOptions(
1519
1519
  withDiffOptions(
1520
- yargs27.positional("directory", {
1520
+ yargs28.positional("directory", {
1521
1521
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
1522
1522
  type: "string"
1523
1523
  }).option("what-if", {
@@ -1581,10 +1581,10 @@ var CategoryRemoveModule = {
1581
1581
  command: "remove <id>",
1582
1582
  aliases: ["delete", "rm"],
1583
1583
  describe: "Delete a category",
1584
- builder: (yargs27) => withConfiguration(
1584
+ builder: (yargs28) => withConfiguration(
1585
1585
  withApiOptions(
1586
1586
  withProjectOptions(
1587
- yargs27.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1587
+ yargs28.positional("id", { demandOption: true, describe: "Category UUID to delete" })
1588
1588
  )
1589
1589
  )
1590
1590
  ),
@@ -1601,10 +1601,10 @@ var CategoryUpdateModule = {
1601
1601
  command: "update <filename>",
1602
1602
  aliases: ["put"],
1603
1603
  describe: "Insert or update a category",
1604
- builder: (yargs27) => withConfiguration(
1604
+ builder: (yargs28) => withConfiguration(
1605
1605
  withApiOptions(
1606
1606
  withProjectOptions(
1607
- yargs27.positional("filename", { demandOption: true, describe: "Category file to put" })
1607
+ yargs28.positional("filename", { demandOption: true, describe: "Category file to put" })
1608
1608
  )
1609
1609
  )
1610
1610
  ),
@@ -1621,7 +1621,7 @@ var CategoryModule = {
1621
1621
  command: "category <command>",
1622
1622
  aliases: ["cat"],
1623
1623
  describe: "Commands for Canvas categories",
1624
- builder: (yargs27) => yargs27.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1624
+ builder: (yargs28) => yargs28.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
1625
1625
  handler: () => {
1626
1626
  yargs2.help();
1627
1627
  }
@@ -1642,11 +1642,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
1642
1642
  var ComponentGetModule = {
1643
1643
  command: "get <id>",
1644
1644
  describe: "Fetch a component definition",
1645
- builder: (yargs27) => withConfiguration(
1645
+ builder: (yargs28) => withConfiguration(
1646
1646
  withFormatOptions(
1647
1647
  withApiOptions(
1648
1648
  withProjectOptions(
1649
- yargs27.positional("id", {
1649
+ yargs28.positional("id", {
1650
1650
  demandOption: true,
1651
1651
  describe: "Component definition public ID to fetch"
1652
1652
  })
@@ -1680,11 +1680,11 @@ var ComponentListModule = {
1680
1680
  command: "list",
1681
1681
  describe: "List component definitions",
1682
1682
  aliases: ["ls"],
1683
- builder: (yargs27) => withConfiguration(
1683
+ builder: (yargs28) => withConfiguration(
1684
1684
  withFormatOptions(
1685
1685
  withApiOptions(
1686
1686
  withProjectOptions(
1687
- yargs27.options({
1687
+ yargs28.options({
1688
1688
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1689
1689
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
1690
1690
  })
@@ -1739,11 +1739,11 @@ function createComponentDefinitionEngineDataSource({
1739
1739
  var ComponentPullModule = {
1740
1740
  command: "pull <directory>",
1741
1741
  describe: "Pulls all component definitions to local files in a directory",
1742
- builder: (yargs27) => withConfiguration(
1742
+ builder: (yargs28) => withConfiguration(
1743
1743
  withApiOptions(
1744
1744
  withProjectOptions(
1745
1745
  withDiffOptions(
1746
- yargs27.positional("directory", {
1746
+ yargs28.positional("directory", {
1747
1747
  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.",
1748
1748
  type: "string"
1749
1749
  }).option("format", {
@@ -1820,11 +1820,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1820
1820
  var ComponentPushModule = {
1821
1821
  command: "push <directory>",
1822
1822
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1823
- builder: (yargs27) => withConfiguration(
1823
+ builder: (yargs28) => withConfiguration(
1824
1824
  withApiOptions(
1825
1825
  withProjectOptions(
1826
1826
  withDiffOptions(
1827
- yargs27.positional("directory", {
1827
+ yargs28.positional("directory", {
1828
1828
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1829
1829
  type: "string"
1830
1830
  }).option("what-if", {
@@ -1889,10 +1889,10 @@ var ComponentRemoveModule = {
1889
1889
  command: "remove <id>",
1890
1890
  aliases: ["delete", "rm"],
1891
1891
  describe: "Delete a component definition",
1892
- builder: (yargs27) => withConfiguration(
1892
+ builder: (yargs28) => withConfiguration(
1893
1893
  withApiOptions(
1894
1894
  withProjectOptions(
1895
- yargs27.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1895
+ yargs28.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1896
1896
  )
1897
1897
  )
1898
1898
  ),
@@ -1909,10 +1909,10 @@ var ComponentUpdateModule = {
1909
1909
  command: "update <filename>",
1910
1910
  aliases: ["put"],
1911
1911
  describe: "Insert or update a component definition",
1912
- builder: (yargs27) => withConfiguration(
1912
+ builder: (yargs28) => withConfiguration(
1913
1913
  withApiOptions(
1914
1914
  withProjectOptions(
1915
- yargs27.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1915
+ yargs28.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1916
1916
  )
1917
1917
  )
1918
1918
  ),
@@ -1929,7 +1929,7 @@ var ComponentModule = {
1929
1929
  command: "component <command>",
1930
1930
  aliases: ["def"],
1931
1931
  describe: "Commands for Canvas component definitions",
1932
- builder: (yargs27) => yargs27.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1932
+ builder: (yargs28) => yargs28.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1933
1933
  handler: () => {
1934
1934
  yargs3.help();
1935
1935
  }
@@ -1943,12 +1943,12 @@ import { UncachedCanvasClient as UncachedCanvasClient7 } from "@uniformdev/canva
1943
1943
  var CompositionGetModule = {
1944
1944
  command: "get <id>",
1945
1945
  describe: "Fetch a composition",
1946
- builder: (yargs27) => withFormatOptions(
1946
+ builder: (yargs28) => withFormatOptions(
1947
1947
  withConfiguration(
1948
1948
  withApiOptions(
1949
1949
  withProjectOptions(
1950
1950
  withStateOptions(
1951
- yargs27.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1951
+ yargs28.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1952
1952
  resolvePatterns: {
1953
1953
  type: "boolean",
1954
1954
  default: false,
@@ -2019,12 +2019,12 @@ var CompositionListModule = {
2019
2019
  command: "list",
2020
2020
  describe: "List compositions",
2021
2021
  aliases: ["ls"],
2022
- builder: (yargs27) => withFormatOptions(
2022
+ builder: (yargs28) => withFormatOptions(
2023
2023
  withConfiguration(
2024
2024
  withApiOptions(
2025
2025
  withProjectOptions(
2026
2026
  withStateOptions(
2027
- yargs27.options({
2027
+ yargs28.options({
2028
2028
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2029
2029
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2030
2030
  resolvePatterns: {
@@ -2145,11 +2145,11 @@ function createComponentInstanceEngineDataSource({
2145
2145
  var CompositionPublishModule = {
2146
2146
  command: "publish [ids]",
2147
2147
  describe: "Publishes composition(s)",
2148
- builder: (yargs27) => withConfiguration(
2148
+ builder: (yargs28) => withConfiguration(
2149
2149
  withApiOptions(
2150
2150
  withProjectOptions(
2151
2151
  withDiffOptions(
2152
- yargs27.positional("ids", {
2152
+ yargs28.positional("ids", {
2153
2153
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2154
2154
  type: "string"
2155
2155
  }).option("all", {
@@ -2225,12 +2225,12 @@ import { UncachedFileClient as UncachedFileClient3 } from "@uniformdev/files";
2225
2225
  var CompositionPullModule = {
2226
2226
  command: "pull <directory>",
2227
2227
  describe: "Pulls all compositions to local files in a directory",
2228
- builder: (yargs27) => withConfiguration(
2228
+ builder: (yargs28) => withConfiguration(
2229
2229
  withApiOptions(
2230
2230
  withProjectOptions(
2231
2231
  withStateOptions(
2232
2232
  withDiffOptions(
2233
- yargs27.positional("directory", {
2233
+ yargs28.positional("directory", {
2234
2234
  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.",
2235
2235
  type: "string"
2236
2236
  }).option("format", {
@@ -2333,12 +2333,12 @@ import { UncachedFileClient as UncachedFileClient4 } from "@uniformdev/files";
2333
2333
  var CompositionPushModule = {
2334
2334
  command: "push <directory>",
2335
2335
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
2336
- builder: (yargs27) => withConfiguration(
2336
+ builder: (yargs28) => withConfiguration(
2337
2337
  withApiOptions(
2338
2338
  withProjectOptions(
2339
2339
  withStateOptions(
2340
2340
  withDiffOptions(
2341
- yargs27.positional("directory", {
2341
+ yargs28.positional("directory", {
2342
2342
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2343
2343
  type: "string"
2344
2344
  }).option("what-if", {
@@ -2427,10 +2427,10 @@ var CompositionRemoveModule = {
2427
2427
  command: "remove <id>",
2428
2428
  aliases: ["delete", "rm"],
2429
2429
  describe: "Delete a composition",
2430
- builder: (yargs27) => withConfiguration(
2430
+ builder: (yargs28) => withConfiguration(
2431
2431
  withApiOptions(
2432
2432
  withProjectOptions(
2433
- yargs27.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2433
+ yargs28.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
2434
2434
  )
2435
2435
  )
2436
2436
  ),
@@ -2447,10 +2447,10 @@ import { diffJson as diffJson2 } from "diff";
2447
2447
  var CompositionUnpublishModule = {
2448
2448
  command: "unpublish [ids]",
2449
2449
  describe: "Unpublish a composition(s)",
2450
- builder: (yargs27) => withConfiguration(
2450
+ builder: (yargs28) => withConfiguration(
2451
2451
  withApiOptions(
2452
2452
  withProjectOptions(
2453
- yargs27.positional("ids", {
2453
+ yargs28.positional("ids", {
2454
2454
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2455
2455
  type: "string"
2456
2456
  }).option("all", {
@@ -2544,11 +2544,11 @@ var CompositionUpdateModule = {
2544
2544
  command: "update <filename>",
2545
2545
  aliases: ["put"],
2546
2546
  describe: "Insert or update a composition",
2547
- builder: (yargs27) => withConfiguration(
2547
+ builder: (yargs28) => withConfiguration(
2548
2548
  withApiOptions(
2549
2549
  withProjectOptions(
2550
2550
  withStateOptions(
2551
- yargs27.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2551
+ yargs28.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2552
2552
  )
2553
2553
  )
2554
2554
  )
@@ -2566,7 +2566,7 @@ var CompositionModule = {
2566
2566
  command: "composition <command>",
2567
2567
  describe: "Commands for Canvas compositions",
2568
2568
  aliases: ["comp"],
2569
- builder: (yargs27) => yargs27.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2569
+ builder: (yargs28) => yargs28.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2570
2570
  handler: () => {
2571
2571
  yargs4.help();
2572
2572
  }
@@ -2580,12 +2580,12 @@ import { ContentClient } from "@uniformdev/canvas";
2580
2580
  var ContentTypeGetModule = {
2581
2581
  command: "get <id>",
2582
2582
  describe: "Get a content type",
2583
- builder: (yargs27) => withConfiguration(
2583
+ builder: (yargs28) => withConfiguration(
2584
2584
  withFormatOptions(
2585
2585
  withApiOptions(
2586
2586
  withProjectOptions(
2587
2587
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2588
- yargs27.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2588
+ yargs28.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2589
2589
  )
2590
2590
  )
2591
2591
  )
@@ -2607,7 +2607,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2607
2607
  var ContentTypeListModule = {
2608
2608
  command: "list",
2609
2609
  describe: "List content types",
2610
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
2610
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
2611
2611
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2612
2612
  const fetch3 = nodeFetchProxy(proxy);
2613
2613
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2654,11 +2654,11 @@ function createContentTypeEngineDataSource({
2654
2654
  var ContentTypePullModule = {
2655
2655
  command: "pull <directory>",
2656
2656
  describe: "Pulls all content types to local files in a directory",
2657
- builder: (yargs27) => withConfiguration(
2657
+ builder: (yargs28) => withConfiguration(
2658
2658
  withApiOptions(
2659
2659
  withProjectOptions(
2660
2660
  withDiffOptions(
2661
- yargs27.positional("directory", {
2661
+ yargs28.positional("directory", {
2662
2662
  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.",
2663
2663
  type: "string"
2664
2664
  }).option("format", {
@@ -2740,11 +2740,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2740
2740
  var ContentTypePushModule = {
2741
2741
  command: "push <directory>",
2742
2742
  describe: "Pushes all content types from files in a directory to Uniform",
2743
- builder: (yargs27) => withConfiguration(
2743
+ builder: (yargs28) => withConfiguration(
2744
2744
  withApiOptions(
2745
2745
  withProjectOptions(
2746
2746
  withDiffOptions(
2747
- yargs27.positional("directory", {
2747
+ yargs28.positional("directory", {
2748
2748
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
2749
2749
  type: "string"
2750
2750
  }).option("what-if", {
@@ -2814,10 +2814,10 @@ var ContentTypeRemoveModule = {
2814
2814
  command: "remove <id>",
2815
2815
  aliases: ["delete", "rm"],
2816
2816
  describe: "Delete a content type",
2817
- builder: (yargs27) => withConfiguration(
2817
+ builder: (yargs28) => withConfiguration(
2818
2818
  withApiOptions(
2819
2819
  withProjectOptions(
2820
- yargs27.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2820
+ yargs28.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2821
2821
  )
2822
2822
  )
2823
2823
  ),
@@ -2834,10 +2834,10 @@ var ContentTypeUpdateModule = {
2834
2834
  command: "update <filename>",
2835
2835
  aliases: ["put"],
2836
2836
  describe: "Insert or update a content type",
2837
- builder: (yargs27) => withConfiguration(
2837
+ builder: (yargs28) => withConfiguration(
2838
2838
  withApiOptions(
2839
2839
  withProjectOptions(
2840
- yargs27.positional("filename", { demandOption: true, describe: "Content type file to put" })
2840
+ yargs28.positional("filename", { demandOption: true, describe: "Content type file to put" })
2841
2841
  )
2842
2842
  )
2843
2843
  ),
@@ -2854,7 +2854,7 @@ var ContentTypeModule = {
2854
2854
  command: "contenttype <command>",
2855
2855
  aliases: ["ct"],
2856
2856
  describe: "Commands for Content Types",
2857
- builder: (yargs27) => yargs27.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2857
+ builder: (yargs28) => yargs28.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2858
2858
  handler: () => {
2859
2859
  yargs5.help();
2860
2860
  }
@@ -2869,12 +2869,12 @@ var DataTypeGetModule = {
2869
2869
  command: "get <id>",
2870
2870
  describe: "Get a data type",
2871
2871
  aliases: ["ls"],
2872
- builder: (yargs27) => withConfiguration(
2872
+ builder: (yargs28) => withConfiguration(
2873
2873
  withFormatOptions(
2874
2874
  withApiOptions(
2875
2875
  withProjectOptions(
2876
2876
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2877
- yargs27.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2877
+ yargs28.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2878
2878
  )
2879
2879
  )
2880
2880
  )
@@ -2897,7 +2897,7 @@ var DataTypeListModule = {
2897
2897
  command: "list",
2898
2898
  describe: "List data types",
2899
2899
  aliases: ["ls"],
2900
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
2900
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
2901
2901
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2902
2902
  const fetch3 = nodeFetchProxy(proxy);
2903
2903
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2946,11 +2946,11 @@ function createDataTypeEngineDataSource({
2946
2946
  var DataTypePullModule = {
2947
2947
  command: "pull <directory>",
2948
2948
  describe: "Pulls all data types to local files in a directory",
2949
- builder: (yargs27) => withConfiguration(
2949
+ builder: (yargs28) => withConfiguration(
2950
2950
  withApiOptions(
2951
2951
  withProjectOptions(
2952
2952
  withDiffOptions(
2953
- yargs27.positional("directory", {
2953
+ yargs28.positional("directory", {
2954
2954
  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.",
2955
2955
  type: "string"
2956
2956
  }).option("format", {
@@ -3032,11 +3032,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
3032
3032
  var DataTypePushModule = {
3033
3033
  command: "push <directory>",
3034
3034
  describe: "Pushes all data types from files in a directory to Uniform",
3035
- builder: (yargs27) => withConfiguration(
3035
+ builder: (yargs28) => withConfiguration(
3036
3036
  withApiOptions(
3037
3037
  withProjectOptions(
3038
3038
  withDiffOptions(
3039
- yargs27.positional("directory", {
3039
+ yargs28.positional("directory", {
3040
3040
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
3041
3041
  type: "string"
3042
3042
  }).option("what-if", {
@@ -3106,10 +3106,10 @@ var DataTypeRemoveModule = {
3106
3106
  command: "remove <id>",
3107
3107
  aliases: ["delete", "rm"],
3108
3108
  describe: "Delete a data type",
3109
- builder: (yargs27) => withConfiguration(
3109
+ builder: (yargs28) => withConfiguration(
3110
3110
  withApiOptions(
3111
3111
  withProjectOptions(
3112
- yargs27.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3112
+ yargs28.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
3113
3113
  )
3114
3114
  )
3115
3115
  ),
@@ -3126,10 +3126,10 @@ var DataTypeUpdateModule = {
3126
3126
  command: "update <filename>",
3127
3127
  aliases: ["put"],
3128
3128
  describe: "Insert or update a data type",
3129
- builder: (yargs27) => withConfiguration(
3129
+ builder: (yargs28) => withConfiguration(
3130
3130
  withApiOptions(
3131
3131
  withProjectOptions(
3132
- yargs27.positional("filename", { demandOption: true, describe: "Data type file to put" })
3132
+ yargs28.positional("filename", { demandOption: true, describe: "Data type file to put" })
3133
3133
  )
3134
3134
  )
3135
3135
  ),
@@ -3146,7 +3146,7 @@ var DataTypeModule = {
3146
3146
  command: "datatype <command>",
3147
3147
  aliases: ["dt"],
3148
3148
  describe: "Commands for Data Type definitions",
3149
- builder: (yargs27) => yargs27.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3149
+ builder: (yargs28) => yargs28.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
3150
3150
  handler: () => {
3151
3151
  yargs6.help();
3152
3152
  }
@@ -3160,12 +3160,12 @@ import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
3160
3160
  var EntryGetModule = {
3161
3161
  command: "get <id>",
3162
3162
  describe: "Get an entry",
3163
- builder: (yargs27) => withConfiguration(
3163
+ builder: (yargs28) => withConfiguration(
3164
3164
  withFormatOptions(
3165
3165
  withApiOptions(
3166
3166
  withProjectOptions(
3167
3167
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3168
- yargs27.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3168
+ yargs28.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
3169
3169
  )
3170
3170
  )
3171
3171
  )
@@ -3191,7 +3191,7 @@ import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
3191
3191
  var EntryListModule = {
3192
3192
  command: "list",
3193
3193
  describe: "List entries",
3194
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
3194
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
3195
3195
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3196
3196
  const fetch3 = nodeFetchProxy(proxy);
3197
3197
  const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3251,12 +3251,12 @@ function createEntryEngineDataSource({
3251
3251
  var EntryPullModule = {
3252
3252
  command: "pull <directory>",
3253
3253
  describe: "Pulls all entries to local files in a directory",
3254
- builder: (yargs27) => withConfiguration(
3254
+ builder: (yargs28) => withConfiguration(
3255
3255
  withApiOptions(
3256
3256
  withProjectOptions(
3257
3257
  withStateOptions(
3258
3258
  withDiffOptions(
3259
- yargs27.positional("directory", {
3259
+ yargs28.positional("directory", {
3260
3260
  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.",
3261
3261
  type: "string"
3262
3262
  }).option("format", {
@@ -3354,12 +3354,12 @@ import { UncachedFileClient as UncachedFileClient6 } from "@uniformdev/files";
3354
3354
  var EntryPushModule = {
3355
3355
  command: "push <directory>",
3356
3356
  describe: "Pushes all entries from files in a directory to Uniform",
3357
- builder: (yargs27) => withConfiguration(
3357
+ builder: (yargs28) => withConfiguration(
3358
3358
  withApiOptions(
3359
3359
  withProjectOptions(
3360
3360
  withStateOptions(
3361
3361
  withDiffOptions(
3362
- yargs27.positional("directory", {
3362
+ yargs28.positional("directory", {
3363
3363
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
3364
3364
  type: "string"
3365
3365
  }).option("what-if", {
@@ -3443,10 +3443,10 @@ var EntryRemoveModule = {
3443
3443
  command: "remove <id>",
3444
3444
  aliases: ["delete", "rm"],
3445
3445
  describe: "Delete an entry",
3446
- builder: (yargs27) => withConfiguration(
3446
+ builder: (yargs28) => withConfiguration(
3447
3447
  withApiOptions(
3448
3448
  withProjectOptions(
3449
- yargs27.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3449
+ yargs28.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
3450
3450
  )
3451
3451
  )
3452
3452
  ),
@@ -3463,10 +3463,10 @@ var EntryUpdateModule = {
3463
3463
  command: "update <filename>",
3464
3464
  aliases: ["put"],
3465
3465
  describe: "Insert or update an entry",
3466
- builder: (yargs27) => withConfiguration(
3466
+ builder: (yargs28) => withConfiguration(
3467
3467
  withApiOptions(
3468
3468
  withProjectOptions(
3469
- yargs27.positional("filename", { demandOption: true, describe: "Entry file to put" })
3469
+ yargs28.positional("filename", { demandOption: true, describe: "Entry file to put" })
3470
3470
  )
3471
3471
  )
3472
3472
  ),
@@ -3482,15 +3482,218 @@ var EntryUpdateModule = {
3482
3482
  var EntryModule = {
3483
3483
  command: "entry <command>",
3484
3484
  describe: "Commands for Entries",
3485
- builder: (yargs27) => yargs27.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).demandCommand(),
3485
+ builder: (yargs28) => yargs28.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).demandCommand(),
3486
3486
  handler: () => {
3487
3487
  yargs7.help();
3488
3488
  }
3489
3489
  };
3490
3490
 
3491
- // src/commands/canvas/commands/pattern.ts
3491
+ // src/commands/canvas/commands/locale.ts
3492
3492
  import yargs8 from "yargs";
3493
3493
 
3494
+ // src/commands/canvas/commands/locale/pull.ts
3495
+ import { LocaleClient } from "@uniformdev/canvas";
3496
+
3497
+ // src/commands/canvas/localesEngineDataSource.ts
3498
+ function createLocaleEngineDataSource({
3499
+ client
3500
+ }) {
3501
+ async function* getObjects() {
3502
+ const locales = (await client.get()).results;
3503
+ for await (const locale of locales) {
3504
+ const result = {
3505
+ id: locale.locale,
3506
+ displayName: locale.displayName,
3507
+ providerId: locale.locale,
3508
+ object: locale
3509
+ };
3510
+ yield result;
3511
+ }
3512
+ }
3513
+ return {
3514
+ objects: getObjects(),
3515
+ deleteObject: async (providerId) => {
3516
+ await client.remove({ locale: providerId });
3517
+ },
3518
+ writeObject: async (object) => {
3519
+ await client.upsert({
3520
+ locale: object.object
3521
+ });
3522
+ }
3523
+ };
3524
+ }
3525
+
3526
+ // src/commands/canvas/commands/locale/pull.ts
3527
+ var LocalePullModule = {
3528
+ command: "pull <directory>",
3529
+ describe: "Pulls all locales to local files in a directory",
3530
+ builder: (yargs28) => withConfiguration(
3531
+ withApiOptions(
3532
+ withProjectOptions(
3533
+ withDiffOptions(
3534
+ yargs28.positional("directory", {
3535
+ 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.",
3536
+ type: "string"
3537
+ }).option("format", {
3538
+ alias: ["f"],
3539
+ describe: "Output format",
3540
+ default: "yaml",
3541
+ choices: ["yaml", "json"],
3542
+ type: "string"
3543
+ }).option("what-if", {
3544
+ alias: ["w"],
3545
+ describe: "What-if mode reports what would be done but changes no files",
3546
+ default: false,
3547
+ type: "boolean"
3548
+ }).option("mode", {
3549
+ alias: ["m"],
3550
+ describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
3551
+ choices: ["create", "createOrUpdate", "mirror"],
3552
+ default: "mirror",
3553
+ type: "string"
3554
+ })
3555
+ )
3556
+ )
3557
+ )
3558
+ ),
3559
+ handler: async ({
3560
+ apiHost,
3561
+ apiKey,
3562
+ proxy,
3563
+ directory,
3564
+ format,
3565
+ mode,
3566
+ whatIf,
3567
+ project: projectId,
3568
+ diff: diffMode
3569
+ }) => {
3570
+ const fetch3 = nodeFetchProxy(proxy);
3571
+ const client = new LocaleClient({
3572
+ apiKey,
3573
+ apiHost,
3574
+ fetch: fetch3,
3575
+ projectId,
3576
+ bypassCache: true
3577
+ });
3578
+ const source = createLocaleEngineDataSource({ client });
3579
+ let target;
3580
+ const isPackage = isPathAPackageFile(directory);
3581
+ if (isPackage) {
3582
+ const packageContents = readCanvasPackage(directory, false);
3583
+ target = await createArraySyncEngineDataSource({
3584
+ objects: packageContents.locales ?? [],
3585
+ selectIdentifier: (i) => i.locale,
3586
+ selectDisplayName: (i) => i.displayName,
3587
+ onSyncComplete: async (_, synced) => {
3588
+ packageContents.locales = synced;
3589
+ writeCanvasPackage(directory, packageContents);
3590
+ }
3591
+ });
3592
+ } else {
3593
+ target = await createFileSyncEngineDataSource({
3594
+ directory,
3595
+ selectIdentifier: (i) => i.locale,
3596
+ selectDisplayName: (i) => i.displayName,
3597
+ format
3598
+ });
3599
+ }
3600
+ await syncEngine({
3601
+ source,
3602
+ target,
3603
+ mode,
3604
+ whatIf,
3605
+ allowEmptySource: true,
3606
+ log: createSyncEngineConsoleLogger({ diffMode })
3607
+ });
3608
+ }
3609
+ };
3610
+
3611
+ // src/commands/canvas/commands/locale/push.ts
3612
+ import { LocaleClient as LocaleClient2 } from "@uniformdev/canvas";
3613
+ var LocalePushModule = {
3614
+ command: "push <directory>",
3615
+ describe: "Pushes all locales from files in a directory to Uniform",
3616
+ builder: (yargs28) => withConfiguration(
3617
+ withApiOptions(
3618
+ withProjectOptions(
3619
+ withDiffOptions(
3620
+ yargs28.positional("directory", {
3621
+ describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
3622
+ type: "string"
3623
+ }).option("what-if", {
3624
+ alias: ["w"],
3625
+ describe: "What-if mode reports what would be done but changes nothing",
3626
+ default: false,
3627
+ type: "boolean"
3628
+ }).option("mode", {
3629
+ alias: ["m"],
3630
+ describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
3631
+ choices: ["create", "createOrUpdate", "mirror"],
3632
+ default: "mirror",
3633
+ type: "string"
3634
+ })
3635
+ )
3636
+ )
3637
+ )
3638
+ ),
3639
+ handler: async ({
3640
+ apiHost,
3641
+ apiKey,
3642
+ proxy,
3643
+ directory,
3644
+ mode,
3645
+ whatIf,
3646
+ project: projectId,
3647
+ diff: diffMode
3648
+ }) => {
3649
+ const fetch3 = nodeFetchProxy(proxy);
3650
+ const client = new LocaleClient2({
3651
+ apiKey,
3652
+ apiHost,
3653
+ fetch: fetch3,
3654
+ projectId,
3655
+ bypassCache: true
3656
+ });
3657
+ let source;
3658
+ const isPackage = isPathAPackageFile(directory);
3659
+ if (isPackage) {
3660
+ const packageContents = readCanvasPackage(directory, true);
3661
+ source = await createArraySyncEngineDataSource({
3662
+ objects: packageContents.locales ?? [],
3663
+ selectIdentifier: (locale) => locale.locale,
3664
+ selectDisplayName: (locale) => locale.displayName
3665
+ });
3666
+ } else {
3667
+ source = await createFileSyncEngineDataSource({
3668
+ directory,
3669
+ selectIdentifier: (locale) => locale.locale,
3670
+ selectDisplayName: (locale) => locale.displayName
3671
+ });
3672
+ }
3673
+ const target = createLocaleEngineDataSource({ client });
3674
+ await syncEngine({
3675
+ source,
3676
+ target,
3677
+ mode,
3678
+ whatIf,
3679
+ log: createSyncEngineConsoleLogger({ diffMode })
3680
+ });
3681
+ }
3682
+ };
3683
+
3684
+ // src/commands/canvas/commands/locale.ts
3685
+ var LocaleModule = {
3686
+ command: "locale <command>",
3687
+ describe: "Commands for locale definitions",
3688
+ builder: (yargs28) => yargs28.command(LocalePullModule).command(LocalePushModule),
3689
+ handler: () => {
3690
+ yargs8.help();
3691
+ }
3692
+ };
3693
+
3694
+ // src/commands/canvas/commands/pattern.ts
3695
+ import yargs9 from "yargs";
3696
+
3494
3697
  // src/commands/canvas/commands/pattern/get.ts
3495
3698
  var PatternGetModule = {
3496
3699
  ...CompositionGetModule,
@@ -3501,12 +3704,12 @@ var PatternGetModule = {
3501
3704
  var PatternListModule = {
3502
3705
  ...CompositionListModule,
3503
3706
  describe: "List patterns",
3504
- builder: (yargs27) => withFormatOptions(
3707
+ builder: (yargs28) => withFormatOptions(
3505
3708
  withConfiguration(
3506
3709
  withApiOptions(
3507
3710
  withProjectOptions(
3508
3711
  withStateOptions(
3509
- yargs27.options({
3712
+ yargs28.options({
3510
3713
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
3511
3714
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
3512
3715
  resolvePatterns: {
@@ -3544,11 +3747,11 @@ var PatternListModule = {
3544
3747
  var PatternPublishModule = {
3545
3748
  ...CompositionPublishModule,
3546
3749
  describe: "Publishes pattern(s)",
3547
- builder: (yargs27) => withConfiguration(
3750
+ builder: (yargs28) => withConfiguration(
3548
3751
  withApiOptions(
3549
3752
  withProjectOptions(
3550
3753
  withDiffOptions(
3551
- yargs27.positional("ids", {
3754
+ yargs28.positional("ids", {
3552
3755
  describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
3553
3756
  type: "string"
3554
3757
  }).option("all", {
@@ -3586,12 +3789,12 @@ var PatternPublishModule = {
3586
3789
  var PatternPullModule = {
3587
3790
  ...CompositionPullModule,
3588
3791
  describe: "Pulls all patterns to local files in a directory",
3589
- builder: (yargs27) => withConfiguration(
3792
+ builder: (yargs28) => withConfiguration(
3590
3793
  withApiOptions(
3591
3794
  withProjectOptions(
3592
3795
  withStateOptions(
3593
3796
  withDiffOptions(
3594
- yargs27.positional("directory", {
3797
+ yargs28.positional("directory", {
3595
3798
  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.",
3596
3799
  type: "string"
3597
3800
  }).option("format", {
@@ -3629,12 +3832,12 @@ var PatternPullModule = {
3629
3832
  var PatternPushModule = {
3630
3833
  ...CompositionPushModule,
3631
3834
  describe: "Pushes all patterns from files in a directory to Uniform Canvas",
3632
- builder: (yargs27) => withConfiguration(
3835
+ builder: (yargs28) => withConfiguration(
3633
3836
  withApiOptions(
3634
3837
  withProjectOptions(
3635
3838
  withStateOptions(
3636
3839
  withDiffOptions(
3637
- yargs27.positional("directory", {
3840
+ yargs28.positional("directory", {
3638
3841
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
3639
3842
  type: "string"
3640
3843
  }).option("what-if", {
@@ -3672,10 +3875,10 @@ var PatternRemoveModule = {
3672
3875
  var PatternUnpublishModule = {
3673
3876
  command: "unpublish [ids]",
3674
3877
  describe: "Unpublish a pattern(s)",
3675
- builder: (yargs27) => withConfiguration(
3878
+ builder: (yargs28) => withConfiguration(
3676
3879
  withApiOptions(
3677
3880
  withProjectOptions(
3678
- yargs27.positional("ids", {
3881
+ yargs28.positional("ids", {
3679
3882
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3680
3883
  type: "string"
3681
3884
  }).option("all", {
@@ -3714,26 +3917,26 @@ var PatternUpdateModule = {
3714
3917
  var PatternModule = {
3715
3918
  command: "pattern <command>",
3716
3919
  describe: "Commands for Canvas patterns",
3717
- builder: (yargs27) => yargs27.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
3920
+ builder: (yargs28) => yargs28.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
3718
3921
  handler: () => {
3719
- yargs8.help();
3922
+ yargs9.help();
3720
3923
  }
3721
3924
  };
3722
3925
 
3723
3926
  // src/commands/canvas/commands/prompts.ts
3724
- import yargs9 from "yargs";
3927
+ import yargs10 from "yargs";
3725
3928
 
3726
3929
  // src/commands/canvas/commands/prompts/get.ts
3727
3930
  import { PromptClient } from "@uniformdev/canvas";
3728
3931
  var PromptGetModule = {
3729
3932
  command: "get <id>",
3730
3933
  describe: "Get a prompt",
3731
- builder: (yargs27) => withConfiguration(
3934
+ builder: (yargs28) => withConfiguration(
3732
3935
  withFormatOptions(
3733
3936
  withApiOptions(
3734
3937
  withProjectOptions(
3735
3938
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3736
- yargs27.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
3939
+ yargs28.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
3737
3940
  )
3738
3941
  )
3739
3942
  )
@@ -3754,7 +3957,7 @@ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
3754
3957
  var PromptListModule = {
3755
3958
  command: "list",
3756
3959
  describe: "List prompts",
3757
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
3960
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
3758
3961
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3759
3962
  const fetch3 = nodeFetchProxy(proxy);
3760
3963
  const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -3801,12 +4004,12 @@ function createPromptEngineDataSource({
3801
4004
  var PromptPullModule = {
3802
4005
  command: "pull <directory>",
3803
4006
  describe: "Pulls all entries to local files in a directory",
3804
- builder: (yargs27) => withConfiguration(
4007
+ builder: (yargs28) => withConfiguration(
3805
4008
  withApiOptions(
3806
4009
  withProjectOptions(
3807
4010
  withStateOptions(
3808
4011
  withDiffOptions(
3809
- yargs27.positional("directory", {
4012
+ yargs28.positional("directory", {
3810
4013
  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.",
3811
4014
  type: "string"
3812
4015
  }).option("format", {
@@ -3889,12 +4092,12 @@ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
3889
4092
  var PromptPushModule = {
3890
4093
  command: "push <directory>",
3891
4094
  describe: "Pushes all prompts from files in a directory to Uniform",
3892
- builder: (yargs27) => withConfiguration(
4095
+ builder: (yargs28) => withConfiguration(
3893
4096
  withApiOptions(
3894
4097
  withProjectOptions(
3895
4098
  withStateOptions(
3896
4099
  withDiffOptions(
3897
- yargs27.positional("directory", {
4100
+ yargs28.positional("directory", {
3898
4101
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
3899
4102
  type: "string"
3900
4103
  }).option("what-if", {
@@ -3965,9 +4168,9 @@ var PromptRemoveModule = {
3965
4168
  command: "remove <id>",
3966
4169
  aliases: ["delete", "rm"],
3967
4170
  describe: "Delete a prompt",
3968
- builder: (yargs27) => withConfiguration(
4171
+ builder: (yargs28) => withConfiguration(
3969
4172
  withApiOptions(
3970
- withProjectOptions(yargs27.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
4173
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
3971
4174
  )
3972
4175
  ),
3973
4176
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -3983,10 +4186,10 @@ var PromptUpdateModule = {
3983
4186
  command: "update <filename>",
3984
4187
  aliases: ["put"],
3985
4188
  describe: "Insert or update a prompt",
3986
- builder: (yargs27) => withConfiguration(
4189
+ builder: (yargs28) => withConfiguration(
3987
4190
  withApiOptions(
3988
4191
  withProjectOptions(
3989
- yargs27.positional("filename", { demandOption: true, describe: "Prompt file to put" })
4192
+ yargs28.positional("filename", { demandOption: true, describe: "Prompt file to put" })
3990
4193
  )
3991
4194
  )
3992
4195
  ),
@@ -4003,9 +4206,9 @@ var PromptModule = {
4003
4206
  command: "prompt <command>",
4004
4207
  aliases: ["dt"],
4005
4208
  describe: "Commands for AI Prompt definitions",
4006
- builder: (yargs27) => yargs27.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4209
+ builder: (yargs28) => yargs28.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
4007
4210
  handler: () => {
4008
- yargs9.help();
4211
+ yargs10.help();
4009
4212
  }
4010
4213
  };
4011
4214
 
@@ -4014,28 +4217,28 @@ var CanvasCommand = {
4014
4217
  command: "canvas <command>",
4015
4218
  aliases: ["cv", "pm", "presentation"],
4016
4219
  describe: "Uniform Canvas commands",
4017
- builder: (yargs27) => yargs27.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).command(PromptModule).command(AssetModule).demandCommand(),
4220
+ builder: (yargs28) => yargs28.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).command(PromptModule).command(AssetModule).command(LocaleModule).demandCommand(),
4018
4221
  handler: () => {
4019
- yargs10.showHelp();
4222
+ yargs11.showHelp();
4020
4223
  }
4021
4224
  };
4022
4225
 
4023
4226
  // src/commands/context/index.ts
4024
- import yargs17 from "yargs";
4227
+ import yargs18 from "yargs";
4025
4228
 
4026
4229
  // src/commands/context/commands/aggregate.ts
4027
- import yargs11 from "yargs";
4230
+ import yargs12 from "yargs";
4028
4231
 
4029
4232
  // src/commands/context/commands/aggregate/get.ts
4030
4233
  import { UncachedAggregateClient } from "@uniformdev/context/api";
4031
4234
  var AggregateGetModule = {
4032
4235
  command: "get <id>",
4033
4236
  describe: "Fetch an aggregate",
4034
- builder: (yargs27) => withConfiguration(
4237
+ builder: (yargs28) => withConfiguration(
4035
4238
  withFormatOptions(
4036
4239
  withApiOptions(
4037
4240
  withProjectOptions(
4038
- yargs27.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4241
+ yargs28.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
4039
4242
  )
4040
4243
  )
4041
4244
  )
@@ -4059,7 +4262,7 @@ var AggregateListModule = {
4059
4262
  command: "list",
4060
4263
  describe: "List aggregates",
4061
4264
  aliases: ["ls"],
4062
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
4265
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
4063
4266
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4064
4267
  const fetch3 = nodeFetchProxy(proxy);
4065
4268
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4125,11 +4328,11 @@ function writeContextPackage(filename, packageContents) {
4125
4328
  var AggregatePullModule = {
4126
4329
  command: "pull <directory>",
4127
4330
  describe: "Pulls all aggregates to local files in a directory",
4128
- builder: (yargs27) => withConfiguration(
4331
+ builder: (yargs28) => withConfiguration(
4129
4332
  withApiOptions(
4130
4333
  withProjectOptions(
4131
4334
  withDiffOptions(
4132
- yargs27.positional("directory", {
4335
+ yargs28.positional("directory", {
4133
4336
  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.",
4134
4337
  type: "string"
4135
4338
  }).option("format", {
@@ -4204,11 +4407,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
4204
4407
  var AggregatePushModule = {
4205
4408
  command: "push <directory>",
4206
4409
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
4207
- builder: (yargs27) => withConfiguration(
4410
+ builder: (yargs28) => withConfiguration(
4208
4411
  withApiOptions(
4209
4412
  withProjectOptions(
4210
4413
  withDiffOptions(
4211
- yargs27.positional("directory", {
4414
+ yargs28.positional("directory", {
4212
4415
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
4213
4416
  type: "string"
4214
4417
  }).option("what-if", {
@@ -4273,10 +4476,10 @@ var AggregateRemoveModule = {
4273
4476
  command: "remove <id>",
4274
4477
  aliases: ["delete", "rm"],
4275
4478
  describe: "Delete an aggregate",
4276
- builder: (yargs27) => withConfiguration(
4479
+ builder: (yargs28) => withConfiguration(
4277
4480
  withApiOptions(
4278
4481
  withProjectOptions(
4279
- yargs27.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
4482
+ yargs28.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
4280
4483
  )
4281
4484
  )
4282
4485
  ),
@@ -4293,10 +4496,10 @@ var AggregateUpdateModule = {
4293
4496
  command: "update <filename>",
4294
4497
  aliases: ["put"],
4295
4498
  describe: "Insert or update an aggregate",
4296
- builder: (yargs27) => withConfiguration(
4499
+ builder: (yargs28) => withConfiguration(
4297
4500
  withApiOptions(
4298
4501
  withProjectOptions(
4299
- yargs27.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
4502
+ yargs28.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
4300
4503
  )
4301
4504
  )
4302
4505
  ),
@@ -4313,25 +4516,25 @@ var AggregateModule = {
4313
4516
  command: "aggregate <command>",
4314
4517
  aliases: ["agg", "intent", "audience"],
4315
4518
  describe: "Commands for Context aggregates (intents, audiences)",
4316
- builder: (yargs27) => yargs27.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
4519
+ builder: (yargs28) => yargs28.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
4317
4520
  handler: () => {
4318
- yargs11.help();
4521
+ yargs12.help();
4319
4522
  }
4320
4523
  };
4321
4524
 
4322
4525
  // src/commands/context/commands/enrichment.ts
4323
- import yargs12 from "yargs";
4526
+ import yargs13 from "yargs";
4324
4527
 
4325
4528
  // src/commands/context/commands/enrichment/get.ts
4326
4529
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
4327
4530
  var EnrichmentGetModule = {
4328
4531
  command: "get <id>",
4329
4532
  describe: "Fetch an enrichment category and its values",
4330
- builder: (yargs27) => withFormatOptions(
4533
+ builder: (yargs28) => withFormatOptions(
4331
4534
  withConfiguration(
4332
4535
  withApiOptions(
4333
4536
  withProjectOptions(
4334
- yargs27.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
4537
+ yargs28.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
4335
4538
  )
4336
4539
  )
4337
4540
  )
@@ -4356,7 +4559,7 @@ var EnrichmentListModule = {
4356
4559
  command: "list",
4357
4560
  describe: "List enrichments",
4358
4561
  aliases: ["ls"],
4359
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
4562
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
4360
4563
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4361
4564
  const fetch3 = nodeFetchProxy(proxy);
4362
4565
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4457,11 +4660,11 @@ var createEnrichmentValueEngineDataSource = ({
4457
4660
  var EnrichmentPullModule = {
4458
4661
  command: "pull <directory>",
4459
4662
  describe: "Pulls all enrichments to local files in a directory",
4460
- builder: (yargs27) => withConfiguration(
4663
+ builder: (yargs28) => withConfiguration(
4461
4664
  withApiOptions(
4462
4665
  withProjectOptions(
4463
4666
  withDiffOptions(
4464
- yargs27.positional("directory", {
4667
+ yargs28.positional("directory", {
4465
4668
  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.",
4466
4669
  type: "string"
4467
4670
  }).option("format", {
@@ -4536,11 +4739,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
4536
4739
  var EnrichmentPushModule = {
4537
4740
  command: "push <directory>",
4538
4741
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
4539
- builder: (yargs27) => withConfiguration(
4742
+ builder: (yargs28) => withConfiguration(
4540
4743
  withApiOptions(
4541
4744
  withProjectOptions(
4542
4745
  withDiffOptions(
4543
- yargs27.positional("directory", {
4746
+ yargs28.positional("directory", {
4544
4747
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
4545
4748
  type: "string"
4546
4749
  }).option("what-if", {
@@ -4604,10 +4807,10 @@ var EnrichmentRemoveModule = {
4604
4807
  command: "remove <id>",
4605
4808
  aliases: ["delete", "rm"],
4606
4809
  describe: "Delete an enrichment category and its values",
4607
- builder: (yargs27) => withConfiguration(
4810
+ builder: (yargs28) => withConfiguration(
4608
4811
  withApiOptions(
4609
4812
  withProjectOptions(
4610
- yargs27.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
4813
+ yargs28.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
4611
4814
  )
4612
4815
  )
4613
4816
  ),
@@ -4623,14 +4826,14 @@ var EnrichmentModule = {
4623
4826
  command: "enrichment <command>",
4624
4827
  aliases: ["enr"],
4625
4828
  describe: "Commands for Context enrichments",
4626
- builder: (yargs27) => yargs27.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
4829
+ builder: (yargs28) => yargs28.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
4627
4830
  handler: () => {
4628
- yargs12.help();
4831
+ yargs13.help();
4629
4832
  }
4630
4833
  };
4631
4834
 
4632
4835
  // src/commands/context/commands/manifest.ts
4633
- import yargs13 from "yargs";
4836
+ import yargs14 from "yargs";
4634
4837
 
4635
4838
  // src/commands/context/commands/manifest/get.ts
4636
4839
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -4641,10 +4844,10 @@ var ManifestGetModule = {
4641
4844
  command: "get [output]",
4642
4845
  aliases: ["dl", "download"],
4643
4846
  describe: "Download the Uniform Context manifest for a project",
4644
- builder: (yargs27) => withConfiguration(
4847
+ builder: (yargs28) => withConfiguration(
4645
4848
  withApiOptions(
4646
4849
  withProjectOptions(
4647
- yargs27.option("preview", {
4850
+ yargs28.option("preview", {
4648
4851
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
4649
4852
  default: false,
4650
4853
  type: "boolean",
@@ -4706,7 +4909,7 @@ import { exit as exit2 } from "process";
4706
4909
  var ManifestPublishModule = {
4707
4910
  command: "publish",
4708
4911
  describe: "Publish the Uniform Context manifest for a project",
4709
- builder: (yargs27) => withConfiguration(withApiOptions(withProjectOptions(yargs27))),
4912
+ builder: (yargs28) => withConfiguration(withApiOptions(withProjectOptions(yargs28))),
4710
4913
  handler: async ({ apiKey, apiHost, proxy, project }) => {
4711
4914
  const fetch3 = nodeFetchProxy(proxy);
4712
4915
  try {
@@ -4739,25 +4942,25 @@ var ManifestModule = {
4739
4942
  command: "manifest <command>",
4740
4943
  describe: "Commands for context manifests",
4741
4944
  aliases: ["man"],
4742
- builder: (yargs27) => yargs27.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
4945
+ builder: (yargs28) => yargs28.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
4743
4946
  handler: () => {
4744
- yargs13.help();
4947
+ yargs14.help();
4745
4948
  }
4746
4949
  };
4747
4950
 
4748
4951
  // src/commands/context/commands/quirk.ts
4749
- import yargs14 from "yargs";
4952
+ import yargs15 from "yargs";
4750
4953
 
4751
4954
  // src/commands/context/commands/quirk/get.ts
4752
4955
  import { UncachedQuirkClient } from "@uniformdev/context/api";
4753
4956
  var QuirkGetModule = {
4754
4957
  command: "get <id>",
4755
4958
  describe: "Fetch a quirk",
4756
- builder: (yargs27) => withConfiguration(
4959
+ builder: (yargs28) => withConfiguration(
4757
4960
  withFormatOptions(
4758
4961
  withApiOptions(
4759
4962
  withProjectOptions(
4760
- yargs27.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
4963
+ yargs28.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
4761
4964
  )
4762
4965
  )
4763
4966
  )
@@ -4781,11 +4984,11 @@ var QuirkListModule = {
4781
4984
  command: "list",
4782
4985
  describe: "List quirks",
4783
4986
  aliases: ["ls"],
4784
- builder: (yargs27) => withConfiguration(
4987
+ builder: (yargs28) => withConfiguration(
4785
4988
  withFormatOptions(
4786
4989
  withApiOptions(
4787
4990
  withProjectOptions(
4788
- yargs27.option("withIntegrations", {
4991
+ yargs28.option("withIntegrations", {
4789
4992
  alias: ["i"],
4790
4993
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
4791
4994
  type: "boolean"
@@ -4842,11 +5045,11 @@ function createQuirkEngineDataSource({
4842
5045
  var QuirkPullModule = {
4843
5046
  command: "pull <directory>",
4844
5047
  describe: "Pulls all quirks to local files in a directory",
4845
- builder: (yargs27) => withConfiguration(
5048
+ builder: (yargs28) => withConfiguration(
4846
5049
  withApiOptions(
4847
5050
  withProjectOptions(
4848
5051
  withDiffOptions(
4849
- yargs27.positional("directory", {
5052
+ yargs28.positional("directory", {
4850
5053
  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.",
4851
5054
  type: "string"
4852
5055
  }).option("format", {
@@ -4921,11 +5124,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
4921
5124
  var QuirkPushModule = {
4922
5125
  command: "push <directory>",
4923
5126
  describe: "Pushes all quirks from files in a directory or package to Uniform",
4924
- builder: (yargs27) => withConfiguration(
5127
+ builder: (yargs28) => withConfiguration(
4925
5128
  withApiOptions(
4926
5129
  withProjectOptions(
4927
5130
  withDiffOptions(
4928
- yargs27.positional("directory", {
5131
+ yargs28.positional("directory", {
4929
5132
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
4930
5133
  type: "string"
4931
5134
  }).option("what-if", {
@@ -4989,10 +5192,10 @@ var QuirkRemoveModule = {
4989
5192
  command: "remove <id>",
4990
5193
  aliases: ["delete", "rm"],
4991
5194
  describe: "Delete a quirk",
4992
- builder: (yargs27) => withConfiguration(
5195
+ builder: (yargs28) => withConfiguration(
4993
5196
  withApiOptions(
4994
5197
  withProjectOptions(
4995
- yargs27.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
5198
+ yargs28.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
4996
5199
  )
4997
5200
  )
4998
5201
  ),
@@ -5009,10 +5212,10 @@ var QuirkUpdateModule = {
5009
5212
  command: "update <filename>",
5010
5213
  aliases: ["put"],
5011
5214
  describe: "Insert or update a quirk",
5012
- builder: (yargs27) => withConfiguration(
5215
+ builder: (yargs28) => withConfiguration(
5013
5216
  withApiOptions(
5014
5217
  withProjectOptions(
5015
- yargs27.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5218
+ yargs28.positional("filename", { demandOption: true, describe: "Quirk file to put" })
5016
5219
  )
5017
5220
  )
5018
5221
  ),
@@ -5029,25 +5232,25 @@ var QuirkModule = {
5029
5232
  command: "quirk <command>",
5030
5233
  aliases: ["qk"],
5031
5234
  describe: "Commands for Context quirks",
5032
- builder: (yargs27) => yargs27.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5235
+ builder: (yargs28) => yargs28.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
5033
5236
  handler: () => {
5034
- yargs14.help();
5237
+ yargs15.help();
5035
5238
  }
5036
5239
  };
5037
5240
 
5038
5241
  // src/commands/context/commands/signal.ts
5039
- import yargs15 from "yargs";
5242
+ import yargs16 from "yargs";
5040
5243
 
5041
5244
  // src/commands/context/commands/signal/get.ts
5042
5245
  import { UncachedSignalClient } from "@uniformdev/context/api";
5043
5246
  var SignalGetModule = {
5044
5247
  command: "get <id>",
5045
5248
  describe: "Fetch a signal",
5046
- builder: (yargs27) => withConfiguration(
5249
+ builder: (yargs28) => withConfiguration(
5047
5250
  withFormatOptions(
5048
5251
  withApiOptions(
5049
5252
  withProjectOptions(
5050
- yargs27.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5253
+ yargs28.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
5051
5254
  )
5052
5255
  )
5053
5256
  )
@@ -5071,7 +5274,7 @@ var SignalListModule = {
5071
5274
  command: "list",
5072
5275
  describe: "List signals",
5073
5276
  aliases: ["ls"],
5074
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
5277
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
5075
5278
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5076
5279
  const fetch3 = nodeFetchProxy(proxy);
5077
5280
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5120,11 +5323,11 @@ function createSignalEngineDataSource({
5120
5323
  var SignalPullModule = {
5121
5324
  command: "pull <directory>",
5122
5325
  describe: "Pulls all signals to local files in a directory",
5123
- builder: (yargs27) => withConfiguration(
5326
+ builder: (yargs28) => withConfiguration(
5124
5327
  withApiOptions(
5125
5328
  withProjectOptions(
5126
5329
  withDiffOptions(
5127
- yargs27.positional("directory", {
5330
+ yargs28.positional("directory", {
5128
5331
  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.",
5129
5332
  type: "string"
5130
5333
  }).option("format", {
@@ -5199,11 +5402,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
5199
5402
  var SignalPushModule = {
5200
5403
  command: "push <directory>",
5201
5404
  describe: "Pushes all signals from files in a directory or package to Uniform",
5202
- builder: (yargs27) => withConfiguration(
5405
+ builder: (yargs28) => withConfiguration(
5203
5406
  withApiOptions(
5204
5407
  withProjectOptions(
5205
5408
  withDiffOptions(
5206
- yargs27.positional("directory", {
5409
+ yargs28.positional("directory", {
5207
5410
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
5208
5411
  type: "string"
5209
5412
  }).option("what-if", {
@@ -5267,10 +5470,10 @@ var SignalRemoveModule = {
5267
5470
  command: "remove <id>",
5268
5471
  aliases: ["delete", "rm"],
5269
5472
  describe: "Delete a signal",
5270
- builder: (yargs27) => withConfiguration(
5473
+ builder: (yargs28) => withConfiguration(
5271
5474
  withApiOptions(
5272
5475
  withProjectOptions(
5273
- yargs27.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
5476
+ yargs28.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
5274
5477
  )
5275
5478
  )
5276
5479
  ),
@@ -5287,10 +5490,10 @@ var SignalUpdateModule = {
5287
5490
  command: "update <filename>",
5288
5491
  aliases: ["put"],
5289
5492
  describe: "Insert or update a signal",
5290
- builder: (yargs27) => withConfiguration(
5493
+ builder: (yargs28) => withConfiguration(
5291
5494
  withApiOptions(
5292
5495
  withProjectOptions(
5293
- yargs27.positional("filename", { demandOption: true, describe: "Signal file to put" })
5496
+ yargs28.positional("filename", { demandOption: true, describe: "Signal file to put" })
5294
5497
  )
5295
5498
  )
5296
5499
  ),
@@ -5307,25 +5510,25 @@ var SignalModule = {
5307
5510
  command: "signal <command>",
5308
5511
  aliases: ["sig"],
5309
5512
  describe: "Commands for Context signals",
5310
- builder: (yargs27) => yargs27.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
5513
+ builder: (yargs28) => yargs28.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
5311
5514
  handler: () => {
5312
- yargs15.help();
5515
+ yargs16.help();
5313
5516
  }
5314
5517
  };
5315
5518
 
5316
5519
  // src/commands/context/commands/test.ts
5317
- import yargs16 from "yargs";
5520
+ import yargs17 from "yargs";
5318
5521
 
5319
5522
  // src/commands/context/commands/test/get.ts
5320
5523
  import { UncachedTestClient } from "@uniformdev/context/api";
5321
5524
  var TestGetModule = {
5322
5525
  command: "get <id>",
5323
5526
  describe: "Fetch a test",
5324
- builder: (yargs27) => withConfiguration(
5527
+ builder: (yargs28) => withConfiguration(
5325
5528
  withFormatOptions(
5326
5529
  withApiOptions(
5327
5530
  withProjectOptions(
5328
- yargs27.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
5531
+ yargs28.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
5329
5532
  )
5330
5533
  )
5331
5534
  )
@@ -5349,7 +5552,7 @@ var TestListModule = {
5349
5552
  command: "list",
5350
5553
  describe: "List tests",
5351
5554
  aliases: ["ls"],
5352
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
5555
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
5353
5556
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5354
5557
  const fetch3 = nodeFetchProxy(proxy);
5355
5558
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5398,11 +5601,11 @@ function createTestEngineDataSource({
5398
5601
  var TestPullModule = {
5399
5602
  command: "pull <directory>",
5400
5603
  describe: "Pulls all tests to local files in a directory",
5401
- builder: (yargs27) => withConfiguration(
5604
+ builder: (yargs28) => withConfiguration(
5402
5605
  withApiOptions(
5403
5606
  withProjectOptions(
5404
5607
  withDiffOptions(
5405
- yargs27.positional("directory", {
5608
+ yargs28.positional("directory", {
5406
5609
  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.",
5407
5610
  type: "string"
5408
5611
  }).option("format", {
@@ -5477,11 +5680,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
5477
5680
  var TestPushModule = {
5478
5681
  command: "push <directory>",
5479
5682
  describe: "Pushes all tests from files in a directory or package to Uniform",
5480
- builder: (yargs27) => withConfiguration(
5683
+ builder: (yargs28) => withConfiguration(
5481
5684
  withApiOptions(
5482
5685
  withProjectOptions(
5483
5686
  withDiffOptions(
5484
- yargs27.positional("directory", {
5687
+ yargs28.positional("directory", {
5485
5688
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
5486
5689
  type: "string"
5487
5690
  }).option("what-if", {
@@ -5545,10 +5748,10 @@ var TestRemoveModule = {
5545
5748
  command: "remove <id>",
5546
5749
  aliases: ["delete", "rm"],
5547
5750
  describe: "Delete a test",
5548
- builder: (yargs27) => withConfiguration(
5751
+ builder: (yargs28) => withConfiguration(
5549
5752
  withApiOptions(
5550
5753
  withProjectOptions(
5551
- yargs27.positional("id", { demandOption: true, describe: "Test public ID to delete" })
5754
+ yargs28.positional("id", { demandOption: true, describe: "Test public ID to delete" })
5552
5755
  )
5553
5756
  )
5554
5757
  ),
@@ -5565,9 +5768,9 @@ var TestUpdateModule = {
5565
5768
  command: "update <filename>",
5566
5769
  aliases: ["put"],
5567
5770
  describe: "Insert or update a test",
5568
- builder: (yargs27) => withConfiguration(
5771
+ builder: (yargs28) => withConfiguration(
5569
5772
  withApiOptions(
5570
- withProjectOptions(yargs27.positional("filename", { demandOption: true, describe: "Test file to put" }))
5773
+ withProjectOptions(yargs28.positional("filename", { demandOption: true, describe: "Test file to put" }))
5571
5774
  )
5572
5775
  ),
5573
5776
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -5582,9 +5785,9 @@ var TestUpdateModule = {
5582
5785
  var TestModule = {
5583
5786
  command: "test <command>",
5584
5787
  describe: "Commands for Context A/B tests",
5585
- builder: (yargs27) => yargs27.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
5788
+ builder: (yargs28) => yargs28.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
5586
5789
  handler: () => {
5587
- yargs16.help();
5790
+ yargs17.help();
5588
5791
  }
5589
5792
  };
5590
5793
 
@@ -5593,9 +5796,9 @@ var ContextCommand = {
5593
5796
  command: "context <command>",
5594
5797
  aliases: ["ctx"],
5595
5798
  describe: "Uniform Context commands",
5596
- builder: (yargs27) => yargs27.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
5799
+ builder: (yargs28) => yargs28.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
5597
5800
  handler: () => {
5598
- yargs17.showHelp();
5801
+ yargs18.showHelp();
5599
5802
  }
5600
5803
  };
5601
5804
 
@@ -5623,7 +5826,7 @@ import { PostHog } from "posthog-node";
5623
5826
  // package.json
5624
5827
  var package_default = {
5625
5828
  name: "@uniformdev/cli",
5626
- version: "19.88.0",
5829
+ version: "19.89.0",
5627
5830
  description: "Uniform command line interface tool",
5628
5831
  license: "SEE LICENSE IN LICENSE.txt",
5629
5832
  main: "./cli.js",
@@ -5680,7 +5883,7 @@ var package_default = {
5680
5883
  "@types/js-yaml": "4.0.9",
5681
5884
  "@types/jsonwebtoken": "9.0.5",
5682
5885
  "@types/lodash.isequalwith": "4.4.9",
5683
- "@types/node": "18.19.1",
5886
+ "@types/node": "18.19.3",
5684
5887
  "@types/yargs": "17.0.32"
5685
5888
  },
5686
5889
  bin: {
@@ -6633,10 +6836,10 @@ var NewMeshCmd = {
6633
6836
  };
6634
6837
 
6635
6838
  // src/commands/optimize/index.ts
6636
- import yargs19 from "yargs";
6839
+ import yargs20 from "yargs";
6637
6840
 
6638
6841
  // src/commands/optimize/manifest.ts
6639
- import yargs18 from "yargs";
6842
+ import yargs19 from "yargs";
6640
6843
 
6641
6844
  // src/commands/optimize/manifest/download.ts
6642
6845
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -6651,7 +6854,7 @@ var UniformBaseUrl = "https://uniform.app";
6651
6854
  var module = {
6652
6855
  command: "download [output]",
6653
6856
  describe: "Download intent manifest",
6654
- builder: (yargs27) => yargs27.option("apiKey", {
6857
+ builder: (yargs28) => yargs28.option("apiKey", {
6655
6858
  alias: "k",
6656
6859
  demandOption: true,
6657
6860
  string: true,
@@ -6752,10 +6955,10 @@ var module2 = {
6752
6955
  command: "manifest <command>",
6753
6956
  describe: "Intent manifest commands",
6754
6957
  builder: () => {
6755
- return yargs18.command(download_default);
6958
+ return yargs19.command(download_default);
6756
6959
  },
6757
6960
  handler: () => {
6758
- yargs18.showHelp();
6961
+ yargs19.showHelp();
6759
6962
  }
6760
6963
  };
6761
6964
  var manifest_default = module2;
@@ -6766,29 +6969,29 @@ var OptimizeCommand = {
6766
6969
  aliases: ["opt"],
6767
6970
  describe: "Uniform Optimize commands",
6768
6971
  builder: () => {
6769
- return yargs19.command(manifest_default);
6972
+ return yargs20.command(manifest_default);
6770
6973
  },
6771
6974
  handler: () => {
6772
- yargs19.showHelp();
6975
+ yargs20.showHelp();
6773
6976
  }
6774
6977
  };
6775
6978
 
6776
6979
  // src/commands/project-map/index.ts
6777
- import yargs22 from "yargs";
6980
+ import yargs23 from "yargs";
6778
6981
 
6779
6982
  // src/commands/project-map/commands/projectMapDefinition.ts
6780
- import yargs20 from "yargs";
6983
+ import yargs21 from "yargs";
6781
6984
 
6782
6985
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
6783
6986
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
6784
6987
  var ProjectMapDefinitionGetModule = {
6785
6988
  command: "get <id>",
6786
6989
  describe: "Fetch a project map",
6787
- builder: (yargs27) => withFormatOptions(
6990
+ builder: (yargs28) => withFormatOptions(
6788
6991
  withConfiguration(
6789
6992
  withApiOptions(
6790
6993
  withProjectOptions(
6791
- yargs27.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
6994
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
6792
6995
  )
6793
6996
  )
6794
6997
  )
@@ -6812,7 +7015,7 @@ var ProjectMapDefinitionListModule = {
6812
7015
  command: "list",
6813
7016
  describe: "List of project maps",
6814
7017
  aliases: ["ls"],
6815
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
7018
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
6816
7019
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6817
7020
  const fetch3 = nodeFetchProxy(proxy);
6818
7021
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6869,11 +7072,11 @@ function createProjectMapDefinitionEngineDataSource({
6869
7072
  var ProjectMapDefinitionPullModule = {
6870
7073
  command: "pull <directory>",
6871
7074
  describe: "Pulls all project maps to local files in a directory",
6872
- builder: (yargs27) => withConfiguration(
7075
+ builder: (yargs28) => withConfiguration(
6873
7076
  withApiOptions(
6874
7077
  withProjectOptions(
6875
7078
  withDiffOptions(
6876
- yargs27.positional("directory", {
7079
+ yargs28.positional("directory", {
6877
7080
  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.",
6878
7081
  type: "string"
6879
7082
  }).option("format", {
@@ -6949,11 +7152,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
6949
7152
  var ProjectMapDefinitionPushModule = {
6950
7153
  command: "push <directory>",
6951
7154
  describe: "Pushes all project maps from files in a directory or package to Uniform",
6952
- builder: (yargs27) => withConfiguration(
7155
+ builder: (yargs28) => withConfiguration(
6953
7156
  withApiOptions(
6954
7157
  withProjectOptions(
6955
7158
  withDiffOptions(
6956
- yargs27.positional("directory", {
7159
+ yargs28.positional("directory", {
6957
7160
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
6958
7161
  type: "string"
6959
7162
  }).option("what-if", {
@@ -7017,9 +7220,9 @@ var ProjectMapDefinitionRemoveModule = {
7017
7220
  command: "remove <id>",
7018
7221
  aliases: ["delete", "rm"],
7019
7222
  describe: "Delete a project map",
7020
- builder: (yargs27) => withConfiguration(
7223
+ builder: (yargs28) => withConfiguration(
7021
7224
  withApiOptions(
7022
- withProjectOptions(yargs27.positional("id", { demandOption: true, describe: " UUID to delete" }))
7225
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: " UUID to delete" }))
7023
7226
  )
7024
7227
  ),
7025
7228
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -7035,10 +7238,10 @@ var ProjectMapDefinitionUpdateModule = {
7035
7238
  command: "update <filename>",
7036
7239
  aliases: ["put"],
7037
7240
  describe: "Insert or update a project map",
7038
- builder: (yargs27) => withConfiguration(
7241
+ builder: (yargs28) => withConfiguration(
7039
7242
  withApiOptions(
7040
7243
  withProjectOptions(
7041
- yargs27.positional("filename", { demandOption: true, describe: "Project map file to put" })
7244
+ yargs28.positional("filename", { demandOption: true, describe: "Project map file to put" })
7042
7245
  )
7043
7246
  )
7044
7247
  ),
@@ -7054,25 +7257,25 @@ var ProjectMapDefinitionUpdateModule = {
7054
7257
  var ProjectMapDefinitionModule = {
7055
7258
  command: "definition <command>",
7056
7259
  describe: "Commands for ProjectMap Definitions",
7057
- builder: (yargs27) => yargs27.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
7260
+ builder: (yargs28) => yargs28.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
7058
7261
  handler: () => {
7059
- yargs20.help();
7262
+ yargs21.help();
7060
7263
  }
7061
7264
  };
7062
7265
 
7063
7266
  // src/commands/project-map/commands/projectMapNode.ts
7064
- import yargs21 from "yargs";
7267
+ import yargs22 from "yargs";
7065
7268
 
7066
7269
  // src/commands/project-map/commands/ProjectMapNode/get.ts
7067
7270
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
7068
7271
  var ProjectMapNodeGetModule = {
7069
7272
  command: "get <id> <projectMapId>",
7070
7273
  describe: "Fetch a project map node",
7071
- builder: (yargs27) => withConfiguration(
7274
+ builder: (yargs28) => withConfiguration(
7072
7275
  withFormatOptions(
7073
7276
  withApiOptions(
7074
7277
  withProjectOptions(
7075
- yargs27.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
7278
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
7076
7279
  )
7077
7280
  )
7078
7281
  )
@@ -7098,11 +7301,11 @@ var ProjectMapNodeListModule = {
7098
7301
  command: "list <projectMapId>",
7099
7302
  describe: "List project map nodes",
7100
7303
  aliases: ["ls"],
7101
- builder: (yargs27) => withConfiguration(
7304
+ builder: (yargs28) => withConfiguration(
7102
7305
  withFormatOptions(
7103
7306
  withApiOptions(
7104
7307
  withProjectOptions(
7105
- yargs27.positional("projectMapId", {
7308
+ yargs28.positional("projectMapId", {
7106
7309
  demandOption: true,
7107
7310
  describe: "ProjectMap UUID to fetch from"
7108
7311
  })
@@ -7173,11 +7376,11 @@ function createProjectMapNodeEngineDataSource({
7173
7376
  var ProjectMapNodePullModule = {
7174
7377
  command: "pull <directory>",
7175
7378
  describe: "Pulls all project maps nodes to local files in a directory",
7176
- builder: (yargs27) => withConfiguration(
7379
+ builder: (yargs28) => withConfiguration(
7177
7380
  withApiOptions(
7178
7381
  withProjectOptions(
7179
7382
  withDiffOptions(
7180
- yargs27.positional("directory", {
7383
+ yargs28.positional("directory", {
7181
7384
  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.",
7182
7385
  type: "string"
7183
7386
  }).option("format", {
@@ -7257,11 +7460,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
7257
7460
  var ProjectMapNodePushModule = {
7258
7461
  command: "push <directory>",
7259
7462
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
7260
- builder: (yargs27) => withConfiguration(
7463
+ builder: (yargs28) => withConfiguration(
7261
7464
  withApiOptions(
7262
7465
  withProjectOptions(
7263
7466
  withDiffOptions(
7264
- yargs27.positional("directory", {
7467
+ yargs28.positional("directory", {
7265
7468
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
7266
7469
  type: "string"
7267
7470
  }).option("what-if", {
@@ -7334,10 +7537,10 @@ var ProjectMapNodeRemoveModule = {
7334
7537
  command: "remove <id> <projectMapId>",
7335
7538
  aliases: ["delete", "rm"],
7336
7539
  describe: "Delete a project map node",
7337
- builder: (yargs27) => withConfiguration(
7540
+ builder: (yargs28) => withConfiguration(
7338
7541
  withApiOptions(
7339
7542
  withProjectOptions(
7340
- yargs27.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
7543
+ yargs28.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
7341
7544
  )
7342
7545
  )
7343
7546
  ),
@@ -7354,10 +7557,10 @@ var ProjectMapNodeUpdateModule = {
7354
7557
  command: "update <filename> <projectMapId>",
7355
7558
  aliases: ["put"],
7356
7559
  describe: "Insert or update a project map node",
7357
- builder: (yargs27) => withConfiguration(
7560
+ builder: (yargs28) => withConfiguration(
7358
7561
  withApiOptions(
7359
7562
  withProjectOptions(
7360
- yargs27.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
7563
+ yargs28.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
7361
7564
  )
7362
7565
  )
7363
7566
  ),
@@ -7373,9 +7576,9 @@ var ProjectMapNodeUpdateModule = {
7373
7576
  var ProjectMapNodeModule = {
7374
7577
  command: "node <command>",
7375
7578
  describe: "Commands for ProjectMap Nodes",
7376
- builder: (yargs27) => yargs27.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
7579
+ builder: (yargs28) => yargs28.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
7377
7580
  handler: () => {
7378
- yargs21.help();
7581
+ yargs22.help();
7379
7582
  }
7380
7583
  };
7381
7584
 
@@ -7384,28 +7587,28 @@ var ProjectMapCommand = {
7384
7587
  command: "project-map <command>",
7385
7588
  aliases: ["prm"],
7386
7589
  describe: "Uniform ProjectMap commands",
7387
- builder: (yargs27) => yargs27.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
7590
+ builder: (yargs28) => yargs28.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
7388
7591
  handler: () => {
7389
- yargs22.showHelp();
7592
+ yargs23.showHelp();
7390
7593
  }
7391
7594
  };
7392
7595
 
7393
7596
  // src/commands/redirect/index.ts
7394
- import yargs24 from "yargs";
7597
+ import yargs25 from "yargs";
7395
7598
 
7396
7599
  // src/commands/redirect/commands/redirect.ts
7397
- import yargs23 from "yargs";
7600
+ import yargs24 from "yargs";
7398
7601
 
7399
7602
  // src/commands/redirect/commands/RedirectDefinition/get.ts
7400
7603
  import { UncachedRedirectClient } from "@uniformdev/redirect";
7401
7604
  var RedirectDefinitionGetModule = {
7402
7605
  command: "get <id>",
7403
7606
  describe: "Fetch a redirect",
7404
- builder: (yargs27) => withConfiguration(
7607
+ builder: (yargs28) => withConfiguration(
7405
7608
  withFormatOptions(
7406
7609
  withApiOptions(
7407
7610
  withProjectOptions(
7408
- yargs27.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
7611
+ yargs28.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
7409
7612
  )
7410
7613
  )
7411
7614
  )
@@ -7429,7 +7632,7 @@ var RedirectDefinitionListModule = {
7429
7632
  command: "list",
7430
7633
  describe: "List of redirects",
7431
7634
  aliases: ["ls"],
7432
- builder: (yargs27) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs27)))),
7635
+ builder: (yargs28) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs28)))),
7433
7636
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
7434
7637
  const fetch3 = nodeFetchProxy(proxy);
7435
7638
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -7495,11 +7698,11 @@ function createRedirectDefinitionEngineDataSource({
7495
7698
  var RedirectDefinitionPullModule = {
7496
7699
  command: "pull <directory>",
7497
7700
  describe: "Pulls all redirects to local files in a directory",
7498
- builder: (yargs27) => withConfiguration(
7701
+ builder: (yargs28) => withConfiguration(
7499
7702
  withApiOptions(
7500
7703
  withProjectOptions(
7501
7704
  withDiffOptions(
7502
- yargs27.positional("directory", {
7705
+ yargs28.positional("directory", {
7503
7706
  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.",
7504
7707
  type: "string"
7505
7708
  }).option("format", {
@@ -7576,11 +7779,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
7576
7779
  var RedirectDefinitionPushModule = {
7577
7780
  command: "push <directory>",
7578
7781
  describe: "Pushes all redirects from files in a directory or package to Uniform",
7579
- builder: (yargs27) => withConfiguration(
7782
+ builder: (yargs28) => withConfiguration(
7580
7783
  withApiOptions(
7581
7784
  withProjectOptions(
7582
7785
  withDiffOptions(
7583
- yargs27.positional("directory", {
7786
+ yargs28.positional("directory", {
7584
7787
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
7585
7788
  type: "string"
7586
7789
  }).option("what-if", {
@@ -7644,9 +7847,9 @@ var RedirectDefinitionRemoveModule = {
7644
7847
  command: "remove <id>",
7645
7848
  aliases: ["delete", "rm"],
7646
7849
  describe: "Delete a redirect",
7647
- builder: (yargs27) => withConfiguration(
7850
+ builder: (yargs28) => withConfiguration(
7648
7851
  withApiOptions(
7649
- withProjectOptions(yargs27.positional("id", { demandOption: true, describe: " UUID to delete" }))
7852
+ withProjectOptions(yargs28.positional("id", { demandOption: true, describe: " UUID to delete" }))
7650
7853
  )
7651
7854
  ),
7652
7855
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -7662,10 +7865,10 @@ var RedirectDefinitionUpdateModule = {
7662
7865
  command: "update <filename>",
7663
7866
  aliases: ["put"],
7664
7867
  describe: "Insert or update a redirect",
7665
- builder: (yargs27) => withConfiguration(
7868
+ builder: (yargs28) => withConfiguration(
7666
7869
  withApiOptions(
7667
7870
  withProjectOptions(
7668
- yargs27.positional("filename", { demandOption: true, describe: "Redirect file to put" })
7871
+ yargs28.positional("filename", { demandOption: true, describe: "Redirect file to put" })
7669
7872
  )
7670
7873
  )
7671
7874
  ),
@@ -7681,9 +7884,9 @@ var RedirectDefinitionUpdateModule = {
7681
7884
  var RedirectDefinitionModule = {
7682
7885
  command: "definition <command>",
7683
7886
  describe: "Commands for Redirect Definitions",
7684
- builder: (yargs27) => yargs27.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
7887
+ builder: (yargs28) => yargs28.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
7685
7888
  handler: () => {
7686
- yargs23.help();
7889
+ yargs24.help();
7687
7890
  }
7688
7891
  };
7689
7892
 
@@ -7692,14 +7895,14 @@ var RedirectCommand = {
7692
7895
  command: "redirect <command>",
7693
7896
  aliases: ["red"],
7694
7897
  describe: "Uniform Redirect commands",
7695
- builder: (yargs27) => yargs27.command(RedirectDefinitionModule).demandCommand(),
7898
+ builder: (yargs28) => yargs28.command(RedirectDefinitionModule).demandCommand(),
7696
7899
  handler: () => {
7697
- yargs24.showHelp();
7900
+ yargs25.showHelp();
7698
7901
  }
7699
7902
  };
7700
7903
 
7701
7904
  // src/commands/sync/index.ts
7702
- import yargs25 from "yargs";
7905
+ import yargs26 from "yargs";
7703
7906
 
7704
7907
  // src/commands/sync/commands/util.ts
7705
7908
  import ora2 from "ora";
@@ -7732,11 +7935,11 @@ function spin(entityType) {
7732
7935
  var SyncPullModule = {
7733
7936
  command: "pull",
7734
7937
  describe: "Pulls whole project to local files in a directory",
7735
- builder: (yargs27) => withConfiguration(
7938
+ builder: (yargs28) => withConfiguration(
7736
7939
  withApiOptions(
7737
7940
  withProjectOptions(
7738
7941
  withDiffOptions(
7739
- yargs27.option("what-if", {
7942
+ yargs28.option("what-if", {
7740
7943
  alias: ["w"],
7741
7944
  describe: "What-if mode reports what would be done but changes no files",
7742
7945
  default: false,
@@ -7750,6 +7953,7 @@ var SyncPullModule = {
7750
7953
  var _a;
7751
7954
  const config2 = serialization;
7752
7955
  const enabledEntities = Object.entries({
7956
+ locale: LocalePullModule,
7753
7957
  asset: AssetPullModule,
7754
7958
  category: CategoryPullModule,
7755
7959
  dataType: DataTypePullModule,
@@ -7828,11 +8032,11 @@ var getFormat = (entityType, config2) => {
7828
8032
  var SyncPushModule = {
7829
8033
  command: "push",
7830
8034
  describe: "Pushes whole project data from files in a directory or package to Uniform",
7831
- builder: (yargs27) => withConfiguration(
8035
+ builder: (yargs28) => withConfiguration(
7832
8036
  withApiOptions(
7833
8037
  withProjectOptions(
7834
8038
  withDiffOptions(
7835
- yargs27.option("what-if", {
8039
+ yargs28.option("what-if", {
7836
8040
  alias: ["w"],
7837
8041
  describe: "What-if mode reports what would be done but changes nothing",
7838
8042
  default: false,
@@ -7846,6 +8050,7 @@ var SyncPushModule = {
7846
8050
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
7847
8051
  const config2 = serialization;
7848
8052
  const enabledEntities = Object.entries({
8053
+ locale: LocalePushModule,
7849
8054
  asset: AssetPushModule,
7850
8055
  category: CategoryPushModule,
7851
8056
  dataType: DataTypePushModule,
@@ -7926,9 +8131,9 @@ var getFormat2 = (entityType, config2) => {
7926
8131
  var SyncCommand = {
7927
8132
  command: "sync <command>",
7928
8133
  describe: "Uniform Sync commands",
7929
- builder: (yargs27) => yargs27.command(SyncPullModule).command(SyncPushModule).demandCommand(),
8134
+ builder: (yargs28) => yargs28.command(SyncPullModule).command(SyncPushModule).demandCommand(),
7930
8135
  handler: () => {
7931
- yargs25.showHelp();
8136
+ yargs26.showHelp();
7932
8137
  }
7933
8138
  };
7934
8139
 
@@ -8194,7 +8399,7 @@ First found was: v${firstVersion}`;
8194
8399
 
8195
8400
  // src/index.ts
8196
8401
  dotenv.config();
8197
- var yarggery = yargs26(hideBin(process.argv));
8402
+ var yarggery = yargs27(hideBin(process.argv));
8198
8403
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
8199
8404
  var configuration = loadConfig(inlineConfigurationFilePath || null);
8200
8405
  yarggery.option("verbose", {