@uniformdev/cli 19.45.1 → 19.45.2-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +780 -230
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  // src/index.ts
4
4
  import * as dotenv from "dotenv";
5
- import yargs22 from "yargs";
5
+ import yargs24 from "yargs";
6
6
  import { hideBin } from "yargs/helpers";
7
7
 
8
8
  // src/commands/canvas/index.ts
9
- import yargs6 from "yargs";
9
+ import yargs8 from "yargs";
10
10
 
11
11
  // src/commands/canvas/commands/category.ts
12
12
  import yargs from "yargs";
@@ -119,14 +119,14 @@ import httpsProxyAgent from "https-proxy-agent";
119
119
  import unfetch from "isomorphic-unfetch";
120
120
  import { dump, load } from "js-yaml";
121
121
  import { extname } from "path";
122
- function withConfiguration(yargs23) {
123
- return yargs23.option("serialization", {
122
+ function withConfiguration(yargs25) {
123
+ return yargs25.option("serialization", {
124
124
  skipValidation: true,
125
125
  hidden: true
126
126
  });
127
127
  }
128
- function withApiOptions(yargs23) {
129
- return yargs23.option("apiKey", {
128
+ function withApiOptions(yargs25) {
129
+ return yargs25.option("apiKey", {
130
130
  describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
131
131
  default: process.env.UNIFORM_CLI_API_KEY ?? // deprecated
132
132
  process.env.CANVAS_CLI_API_KEY ?? // deprecated
@@ -165,8 +165,8 @@ function nodeFetchProxy(proxy) {
165
165
  };
166
166
  return wrappedFetch;
167
167
  }
168
- function withProjectOptions(yargs23) {
169
- return yargs23.option("project", {
168
+ function withProjectOptions(yargs25) {
169
+ return yargs25.option("project", {
170
170
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
171
171
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? // deprecated
172
172
  process.env.CANVAS_CLI_PROJECT_ID ?? // deprecated
@@ -176,8 +176,8 @@ function withProjectOptions(yargs23) {
176
176
  alias: ["p"]
177
177
  });
178
178
  }
179
- function withFormatOptions(yargs23) {
180
- return yargs23.option("format", {
179
+ function withFormatOptions(yargs25) {
180
+ return yargs25.option("format", {
181
181
  alias: ["f"],
182
182
  describe: "Output format",
183
183
  default: "yaml",
@@ -189,8 +189,8 @@ function withFormatOptions(yargs23) {
189
189
  type: "string"
190
190
  });
191
191
  }
192
- function withDiffOptions(yargs23) {
193
- return yargs23.option("diff", {
192
+ function withDiffOptions(yargs25) {
193
+ return yargs25.option("diff", {
194
194
  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.",
195
195
  default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
196
196
  type: "string",
@@ -579,11 +579,11 @@ function createSyncEngineConsoleLogger(options) {
579
579
  var CategoryGetModule = {
580
580
  command: "get <id>",
581
581
  describe: "Fetch a category",
582
- builder: (yargs23) => withConfiguration(
582
+ builder: (yargs25) => withConfiguration(
583
583
  withFormatOptions(
584
584
  withApiOptions(
585
585
  withProjectOptions(
586
- yargs23.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
586
+ yargs25.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
587
587
  )
588
588
  )
589
589
  )
@@ -608,7 +608,7 @@ var CategoryListModule = {
608
608
  command: "list",
609
609
  describe: "List categories",
610
610
  aliases: ["ls"],
611
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23.options({}))))),
611
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25.options({}))))),
612
612
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
613
613
  const fetch3 = nodeFetchProxy(proxy);
614
614
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -665,11 +665,11 @@ function writeCanvasPackage(filename, packageContents) {
665
665
  var CategoryPullModule = {
666
666
  command: "pull <directory>",
667
667
  describe: "Pulls all categories to local files in a directory",
668
- builder: (yargs23) => withConfiguration(
668
+ builder: (yargs25) => withConfiguration(
669
669
  withApiOptions(
670
670
  withProjectOptions(
671
671
  withDiffOptions(
672
- yargs23.positional("directory", {
672
+ yargs25.positional("directory", {
673
673
  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.",
674
674
  type: "string"
675
675
  }).option("format", {
@@ -744,11 +744,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
744
744
  var CategoryPushModule = {
745
745
  command: "push <directory>",
746
746
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
747
- builder: (yargs23) => withConfiguration(
747
+ builder: (yargs25) => withConfiguration(
748
748
  withApiOptions(
749
749
  withProjectOptions(
750
750
  withDiffOptions(
751
- yargs23.positional("directory", {
751
+ yargs25.positional("directory", {
752
752
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
753
753
  type: "string"
754
754
  }).option("what-if", {
@@ -812,10 +812,10 @@ var CategoryRemoveModule = {
812
812
  command: "remove <id>",
813
813
  aliases: ["delete", "rm"],
814
814
  describe: "Delete a category",
815
- builder: (yargs23) => withConfiguration(
815
+ builder: (yargs25) => withConfiguration(
816
816
  withApiOptions(
817
817
  withProjectOptions(
818
- yargs23.positional("id", { demandOption: true, describe: "Category UUID to delete" })
818
+ yargs25.positional("id", { demandOption: true, describe: "Category UUID to delete" })
819
819
  )
820
820
  )
821
821
  ),
@@ -832,10 +832,10 @@ var CategoryUpdateModule = {
832
832
  command: "update <filename>",
833
833
  aliases: ["put"],
834
834
  describe: "Insert or update a category",
835
- builder: (yargs23) => withConfiguration(
835
+ builder: (yargs25) => withConfiguration(
836
836
  withApiOptions(
837
837
  withProjectOptions(
838
- yargs23.positional("filename", { demandOption: true, describe: "Category file to put" })
838
+ yargs25.positional("filename", { demandOption: true, describe: "Category file to put" })
839
839
  )
840
840
  )
841
841
  ),
@@ -852,7 +852,7 @@ var CategoryModule = {
852
852
  command: "category <command>",
853
853
  aliases: ["cat"],
854
854
  describe: "Commands for Canvas categories",
855
- builder: (yargs23) => yargs23.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
855
+ builder: (yargs25) => yargs25.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
856
856
  handler: () => {
857
857
  yargs.help();
858
858
  }
@@ -873,11 +873,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
873
873
  var ComponentGetModule = {
874
874
  command: "get <id>",
875
875
  describe: "Fetch a component definition",
876
- builder: (yargs23) => withConfiguration(
876
+ builder: (yargs25) => withConfiguration(
877
877
  withFormatOptions(
878
878
  withApiOptions(
879
879
  withProjectOptions(
880
- yargs23.positional("id", {
880
+ yargs25.positional("id", {
881
881
  demandOption: true,
882
882
  describe: "Component definition public ID to fetch"
883
883
  })
@@ -911,11 +911,11 @@ var ComponentListModule = {
911
911
  command: "list",
912
912
  describe: "List component definitions",
913
913
  aliases: ["ls"],
914
- builder: (yargs23) => withConfiguration(
914
+ builder: (yargs25) => withConfiguration(
915
915
  withFormatOptions(
916
916
  withApiOptions(
917
917
  withProjectOptions(
918
- yargs23.options({
918
+ yargs25.options({
919
919
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
920
920
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
921
921
  })
@@ -970,11 +970,11 @@ function createComponentDefinitionEngineDataSource({
970
970
  var ComponentPullModule = {
971
971
  command: "pull <directory>",
972
972
  describe: "Pulls all component definitions to local files in a directory",
973
- builder: (yargs23) => withConfiguration(
973
+ builder: (yargs25) => withConfiguration(
974
974
  withApiOptions(
975
975
  withProjectOptions(
976
976
  withDiffOptions(
977
- yargs23.positional("directory", {
977
+ yargs25.positional("directory", {
978
978
  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.",
979
979
  type: "string"
980
980
  }).option("format", {
@@ -1050,11 +1050,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1050
1050
  var ComponentPushModule = {
1051
1051
  command: "push <directory>",
1052
1052
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1053
- builder: (yargs23) => withConfiguration(
1053
+ builder: (yargs25) => withConfiguration(
1054
1054
  withApiOptions(
1055
1055
  withProjectOptions(
1056
1056
  withDiffOptions(
1057
- yargs23.positional("directory", {
1057
+ yargs25.positional("directory", {
1058
1058
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1059
1059
  type: "string"
1060
1060
  }).option("what-if", {
@@ -1119,10 +1119,10 @@ var ComponentRemoveModule = {
1119
1119
  command: "remove <id>",
1120
1120
  aliases: ["delete", "rm"],
1121
1121
  describe: "Delete a component definition",
1122
- builder: (yargs23) => withConfiguration(
1122
+ builder: (yargs25) => withConfiguration(
1123
1123
  withApiOptions(
1124
1124
  withProjectOptions(
1125
- yargs23.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1125
+ yargs25.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1126
1126
  )
1127
1127
  )
1128
1128
  ),
@@ -1139,10 +1139,10 @@ var ComponentUpdateModule = {
1139
1139
  command: "update <filename>",
1140
1140
  aliases: ["put"],
1141
1141
  describe: "Insert or update a component definition",
1142
- builder: (yargs23) => withConfiguration(
1142
+ builder: (yargs25) => withConfiguration(
1143
1143
  withApiOptions(
1144
1144
  withProjectOptions(
1145
- yargs23.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1145
+ yargs25.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1146
1146
  )
1147
1147
  )
1148
1148
  ),
@@ -1159,7 +1159,7 @@ var ComponentModule = {
1159
1159
  command: "component <command>",
1160
1160
  aliases: ["def"],
1161
1161
  describe: "Commands for Canvas component definitions",
1162
- builder: (yargs23) => yargs23.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1162
+ builder: (yargs25) => yargs25.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1163
1163
  handler: () => {
1164
1164
  yargs2.help();
1165
1165
  }
@@ -1181,8 +1181,8 @@ function prepCompositionForDisk(composition) {
1181
1181
  delete prepped.state;
1182
1182
  return prepped;
1183
1183
  }
1184
- function withStateOptions(yargs23) {
1185
- return yargs23.option("state", {
1184
+ function withStateOptions(yargs25) {
1185
+ return yargs25.option("state", {
1186
1186
  type: "string",
1187
1187
  describe: `Composition state to fetch.`,
1188
1188
  choices: ["preview", "published"],
@@ -1207,12 +1207,12 @@ function convertCompositionState(state) {
1207
1207
  var CompositionGetModule = {
1208
1208
  command: "get <id>",
1209
1209
  describe: "Fetch a composition",
1210
- builder: (yargs23) => withFormatOptions(
1210
+ builder: (yargs25) => withFormatOptions(
1211
1211
  withConfiguration(
1212
1212
  withApiOptions(
1213
1213
  withProjectOptions(
1214
1214
  withStateOptions(
1215
- yargs23.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1215
+ yargs25.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1216
1216
  resolvePatterns: {
1217
1217
  type: "boolean",
1218
1218
  default: false,
@@ -1283,12 +1283,12 @@ var CompositionListModule = {
1283
1283
  command: "list",
1284
1284
  describe: "List compositions",
1285
1285
  aliases: ["ls"],
1286
- builder: (yargs23) => withFormatOptions(
1286
+ builder: (yargs25) => withFormatOptions(
1287
1287
  withConfiguration(
1288
1288
  withApiOptions(
1289
1289
  withProjectOptions(
1290
1290
  withStateOptions(
1291
- yargs23.options({
1291
+ yargs25.options({
1292
1292
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1293
1293
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1294
1294
  resolvePatterns: {
@@ -1409,11 +1409,11 @@ function createComponentInstanceEngineDataSource({
1409
1409
  var CompositionPublishModule = {
1410
1410
  command: "publish [ids]",
1411
1411
  describe: "Publishes composition(s)",
1412
- builder: (yargs23) => withConfiguration(
1412
+ builder: (yargs25) => withConfiguration(
1413
1413
  withApiOptions(
1414
1414
  withProjectOptions(
1415
1415
  withDiffOptions(
1416
- yargs23.positional("ids", {
1416
+ yargs25.positional("ids", {
1417
1417
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
1418
1418
  type: "string"
1419
1419
  }).option("all", {
@@ -1489,7 +1489,7 @@ import { UncachedCanvasClient as UncachedCanvasClient10 } from "@uniformdev/canv
1489
1489
 
1490
1490
  // src/files/index.ts
1491
1491
  import { preferredType } from "@thi.ng/mime";
1492
- import { FILE_READY_STATE, getFileNameFromUrl } from "@uniformdev/files-sdk";
1492
+ import { FILE_READY_STATE, getFileNameFromUrl } from "@uniformdev/files";
1493
1493
  import { createHash } from "crypto";
1494
1494
  import fsj from "fs-jetpack";
1495
1495
  import sizeOf from "image-size";
@@ -1663,12 +1663,12 @@ var swapOutUniformFileUrlsForTargetProject = async (object, options) => {
1663
1663
  var CompositionPullModule = {
1664
1664
  command: "pull <directory>",
1665
1665
  describe: "Pulls all compositions to local files in a directory",
1666
- builder: (yargs23) => withConfiguration(
1666
+ builder: (yargs25) => withConfiguration(
1667
1667
  withApiOptions(
1668
1668
  withProjectOptions(
1669
1669
  withStateOptions(
1670
1670
  withDiffOptions(
1671
- yargs23.positional("directory", {
1671
+ yargs25.positional("directory", {
1672
1672
  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.",
1673
1673
  type: "string"
1674
1674
  }).option("format", {
@@ -1758,16 +1758,16 @@ var CompositionPullModule = {
1758
1758
 
1759
1759
  // src/commands/canvas/commands/composition/push.ts
1760
1760
  import { UncachedCanvasClient as UncachedCanvasClient11 } from "@uniformdev/canvas";
1761
- import { FileClient as FileClient2 } from "@uniformdev/files-sdk";
1761
+ import { FileClient as FileClient2 } from "@uniformdev/files";
1762
1762
  var CompositionPushModule = {
1763
1763
  command: "push <directory>",
1764
1764
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
1765
- builder: (yargs23) => withConfiguration(
1765
+ builder: (yargs25) => withConfiguration(
1766
1766
  withApiOptions(
1767
1767
  withProjectOptions(
1768
1768
  withStateOptions(
1769
1769
  withDiffOptions(
1770
- yargs23.positional("directory", {
1770
+ yargs25.positional("directory", {
1771
1771
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
1772
1772
  type: "string"
1773
1773
  }).option("what-if", {
@@ -1858,10 +1858,10 @@ var CompositionRemoveModule = {
1858
1858
  command: "remove <id>",
1859
1859
  aliases: ["delete", "rm"],
1860
1860
  describe: "Delete a composition",
1861
- builder: (yargs23) => withConfiguration(
1861
+ builder: (yargs25) => withConfiguration(
1862
1862
  withApiOptions(
1863
1863
  withProjectOptions(
1864
- yargs23.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
1864
+ yargs25.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
1865
1865
  )
1866
1866
  )
1867
1867
  ),
@@ -1878,10 +1878,10 @@ import { diffJson as diffJson2 } from "diff";
1878
1878
  var CompositionUnpublishModule = {
1879
1879
  command: "unpublish [ids]",
1880
1880
  describe: "Unpublish a composition(s)",
1881
- builder: (yargs23) => withConfiguration(
1881
+ builder: (yargs25) => withConfiguration(
1882
1882
  withApiOptions(
1883
1883
  withProjectOptions(
1884
- yargs23.positional("ids", {
1884
+ yargs25.positional("ids", {
1885
1885
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
1886
1886
  type: "string"
1887
1887
  }).option("all", {
@@ -1976,11 +1976,11 @@ var CompositionUpdateModule = {
1976
1976
  command: "update <filename>",
1977
1977
  aliases: ["put"],
1978
1978
  describe: "Insert or update a composition",
1979
- builder: (yargs23) => withConfiguration(
1979
+ builder: (yargs25) => withConfiguration(
1980
1980
  withApiOptions(
1981
1981
  withProjectOptions(
1982
1982
  withStateOptions(
1983
- yargs23.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
1983
+ yargs25.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
1984
1984
  )
1985
1985
  )
1986
1986
  )
@@ -1998,27 +1998,304 @@ var CompositionModule = {
1998
1998
  command: "composition <command>",
1999
1999
  describe: "Commands for Canvas compositions",
2000
2000
  aliases: ["comp"],
2001
- builder: (yargs23) => yargs23.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2001
+ builder: (yargs25) => yargs25.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2002
2002
  handler: () => {
2003
2003
  yargs3.help();
2004
2004
  }
2005
2005
  };
2006
2006
 
2007
- // src/commands/canvas/commands/dataType.ts
2007
+ // src/commands/canvas/commands/contentType.ts
2008
2008
  import yargs4 from "yargs";
2009
2009
 
2010
+ // src/commands/canvas/commands/contentType/get.ts
2011
+ import { ContentClient } from "@uniformdev/canvas";
2012
+ var ContentTypeGetModule = {
2013
+ command: "get <id>",
2014
+ describe: "Get a content type",
2015
+ builder: (yargs25) => withFormatOptions(
2016
+ withApiOptions(
2017
+ withProjectOptions(
2018
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2019
+ yargs25.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2020
+ )
2021
+ )
2022
+ ),
2023
+ handler: async ({ apiHost, apiKey, proxy, id, format, filename, project: projectId }) => {
2024
+ const fetch3 = nodeFetchProxy(proxy);
2025
+ const client = new ContentClient({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2026
+ const res = await client.getContentTypes({ offset: 0, limit: 1e3 });
2027
+ const found = res.contentTypes.find((f) => f.id === id);
2028
+ if (!found) {
2029
+ throw new Error(`Content type with ID ${id} not found`);
2030
+ }
2031
+ emitWithFormat(found, format, filename);
2032
+ }
2033
+ };
2034
+
2035
+ // src/commands/canvas/commands/contentType/list.ts
2036
+ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2037
+ var ContentTypeListModule = {
2038
+ command: "list",
2039
+ describe: "List content types",
2040
+ builder: (yargs25) => withFormatOptions(withApiOptions(withProjectOptions(yargs25))),
2041
+ handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2042
+ const fetch3 = nodeFetchProxy(proxy);
2043
+ const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2044
+ const res = await client.getContentTypes({ offset: 0, limit: 1e3 });
2045
+ emitWithFormat(res.contentTypes, format, filename);
2046
+ }
2047
+ };
2048
+
2049
+ // src/commands/canvas/commands/contentType/pull.ts
2050
+ import { ContentClient as ContentClient3 } from "@uniformdev/canvas";
2051
+
2052
+ // src/commands/canvas/commands/contentType/_util.ts
2053
+ var selectContentTypeIdentifier = (ct) => ct.id;
2054
+ var selectContentTypeDisplayName = (ct) => `${ct.name} (pid: ${ct.id})`;
2055
+
2056
+ // src/commands/canvas/contentTypeEngineDataSource.ts
2057
+ function createContentTypeEngineDataSource({
2058
+ client
2059
+ }) {
2060
+ async function* getObjects() {
2061
+ const { contentTypes } = await client.getContentTypes({ offset: 0, limit: 1e3 });
2062
+ for await (const ct of contentTypes) {
2063
+ const result = {
2064
+ id: selectContentTypeIdentifier(ct),
2065
+ displayName: selectContentTypeDisplayName(ct),
2066
+ providerId: ct.id,
2067
+ object: ct
2068
+ };
2069
+ yield result;
2070
+ }
2071
+ }
2072
+ return {
2073
+ objects: getObjects(),
2074
+ deleteObject: async (providerId) => {
2075
+ await client.deleteContentType({ contentTypeId: providerId });
2076
+ },
2077
+ writeObject: async ({ object }) => {
2078
+ await client.upsertContentType({ contentType: object });
2079
+ }
2080
+ };
2081
+ }
2082
+
2083
+ // src/commands/canvas/commands/contentType/pull.ts
2084
+ var ContentTypePullModule = {
2085
+ command: "pull <directory>",
2086
+ describe: "Pulls all content types to local files in a directory",
2087
+ builder: (yargs25) => withApiOptions(
2088
+ withProjectOptions(
2089
+ withDiffOptions(
2090
+ yargs25.positional("directory", {
2091
+ 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.",
2092
+ type: "string"
2093
+ }).option("format", {
2094
+ alias: ["f"],
2095
+ describe: "Output format",
2096
+ default: "yaml",
2097
+ choices: ["yaml", "json"],
2098
+ type: "string"
2099
+ }).option("what-if", {
2100
+ alias: ["w"],
2101
+ describe: "What-if mode reports what would be done but changes no files",
2102
+ default: false,
2103
+ type: "boolean"
2104
+ }).option("mode", {
2105
+ alias: ["m"],
2106
+ 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',
2107
+ choices: ["create", "createOrUpdate", "mirror"],
2108
+ default: "mirror",
2109
+ type: "string"
2110
+ })
2111
+ )
2112
+ )
2113
+ ),
2114
+ handler: async ({
2115
+ apiHost,
2116
+ apiKey,
2117
+ proxy,
2118
+ directory,
2119
+ format,
2120
+ mode,
2121
+ whatIf,
2122
+ project: projectId,
2123
+ diff: diffMode
2124
+ }) => {
2125
+ const fetch3 = nodeFetchProxy(proxy);
2126
+ const client = new ContentClient3({
2127
+ apiKey,
2128
+ apiHost,
2129
+ fetch: fetch3,
2130
+ projectId,
2131
+ bypassCache: true
2132
+ });
2133
+ const source = createContentTypeEngineDataSource({ client });
2134
+ let target;
2135
+ const isPackage = isPathAPackageFile(directory);
2136
+ if (isPackage) {
2137
+ const packageContents = readCanvasPackage(directory, false);
2138
+ target = await createArraySyncEngineDataSource({
2139
+ objects: packageContents.contentTypes ?? [],
2140
+ selectIdentifier: selectContentTypeIdentifier,
2141
+ selectDisplayName: selectContentTypeDisplayName,
2142
+ onSyncComplete: async (_, synced) => {
2143
+ packageContents.contentTypes = synced;
2144
+ writeCanvasPackage(directory, packageContents);
2145
+ }
2146
+ });
2147
+ } else {
2148
+ target = await createFileSyncEngineDataSource({
2149
+ directory,
2150
+ selectIdentifier: selectContentTypeIdentifier,
2151
+ selectDisplayName: selectContentTypeDisplayName,
2152
+ format
2153
+ });
2154
+ }
2155
+ await syncEngine({
2156
+ source,
2157
+ target,
2158
+ mode,
2159
+ whatIf,
2160
+ log: createSyncEngineConsoleLogger({ diffMode })
2161
+ });
2162
+ }
2163
+ };
2164
+
2165
+ // src/commands/canvas/commands/contentType/push.ts
2166
+ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2167
+ var ContentTypePushModule = {
2168
+ command: "push <directory>",
2169
+ describe: "Pushes all content types from files in a directory to Uniform",
2170
+ builder: (yargs25) => withApiOptions(
2171
+ withProjectOptions(
2172
+ withDiffOptions(
2173
+ yargs25.positional("directory", {
2174
+ describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
2175
+ type: "string"
2176
+ }).option("what-if", {
2177
+ alias: ["w"],
2178
+ describe: "What-if mode reports what would be done but changes nothing",
2179
+ default: false,
2180
+ type: "boolean"
2181
+ }).option("mode", {
2182
+ alias: ["m"],
2183
+ 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',
2184
+ choices: ["create", "createOrUpdate", "mirror"],
2185
+ default: "mirror",
2186
+ type: "string"
2187
+ })
2188
+ )
2189
+ )
2190
+ ),
2191
+ handler: async ({
2192
+ apiHost,
2193
+ apiKey,
2194
+ proxy,
2195
+ directory,
2196
+ mode,
2197
+ whatIf,
2198
+ project: projectId,
2199
+ diff: diffMode
2200
+ }) => {
2201
+ const fetch3 = nodeFetchProxy(proxy);
2202
+ const client = new ContentClient4({
2203
+ apiKey,
2204
+ apiHost,
2205
+ fetch: fetch3,
2206
+ projectId,
2207
+ bypassCache: true
2208
+ });
2209
+ let source;
2210
+ const isPackage = isPathAPackageFile(directory);
2211
+ if (isPackage) {
2212
+ const packageContents = readCanvasPackage(directory, true);
2213
+ source = await createArraySyncEngineDataSource({
2214
+ objects: packageContents.contentTypes ?? [],
2215
+ selectIdentifier: selectContentTypeIdentifier,
2216
+ selectDisplayName: selectContentTypeDisplayName
2217
+ });
2218
+ } else {
2219
+ source = await createFileSyncEngineDataSource({
2220
+ directory,
2221
+ selectIdentifier: selectContentTypeIdentifier,
2222
+ selectDisplayName: selectContentTypeDisplayName
2223
+ });
2224
+ }
2225
+ const target = createContentTypeEngineDataSource({ client });
2226
+ await syncEngine({
2227
+ source,
2228
+ target,
2229
+ mode,
2230
+ whatIf,
2231
+ log: createSyncEngineConsoleLogger({ diffMode })
2232
+ });
2233
+ }
2234
+ };
2235
+
2236
+ // src/commands/canvas/commands/contentType/remove.ts
2237
+ import { ContentClient as ContentClient5 } from "@uniformdev/canvas";
2238
+ var ContentTypeRemoveModule = {
2239
+ command: "remove <id>",
2240
+ aliases: ["delete", "rm"],
2241
+ describe: "Delete a content type",
2242
+ builder: (yargs25) => withApiOptions(
2243
+ withProjectOptions(
2244
+ yargs25.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2245
+ )
2246
+ ),
2247
+ handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
2248
+ const fetch3 = nodeFetchProxy(proxy);
2249
+ const client = new ContentClient5({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2250
+ await client.deleteContentType({ contentTypeId: id });
2251
+ }
2252
+ };
2253
+
2254
+ // src/commands/canvas/commands/contentType/update.ts
2255
+ import { ContentClient as ContentClient6 } from "@uniformdev/canvas";
2256
+ var ContentTypeUpdateModule = {
2257
+ command: "update <filename>",
2258
+ aliases: ["put"],
2259
+ describe: "Insert or update a content type",
2260
+ builder: (yargs25) => withApiOptions(
2261
+ withProjectOptions(
2262
+ yargs25.positional("filename", { demandOption: true, describe: "Content type file to put" })
2263
+ )
2264
+ ),
2265
+ handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
2266
+ const fetch3 = nodeFetchProxy(proxy);
2267
+ const client = new ContentClient6({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2268
+ const file = readFileToObject(filename);
2269
+ await client.upsertContentType({ contentType: file });
2270
+ }
2271
+ };
2272
+
2273
+ // src/commands/canvas/commands/contentType.ts
2274
+ var ContentTypeModule = {
2275
+ command: "contenttype <command>",
2276
+ aliases: ["ct"],
2277
+ describe: "Commands for Content Types",
2278
+ builder: (yargs25) => yargs25.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2279
+ handler: () => {
2280
+ yargs4.help();
2281
+ }
2282
+ };
2283
+
2284
+ // src/commands/canvas/commands/dataType.ts
2285
+ import yargs5 from "yargs";
2286
+
2010
2287
  // src/commands/canvas/commands/dataType/get.ts
2011
2288
  import { DataTypeClient } from "@uniformdev/canvas";
2012
2289
  var DataTypeGetModule = {
2013
2290
  command: "get <id>",
2014
2291
  describe: "Get a data type",
2015
2292
  aliases: ["ls"],
2016
- builder: (yargs23) => withConfiguration(
2293
+ builder: (yargs25) => withConfiguration(
2017
2294
  withFormatOptions(
2018
2295
  withApiOptions(
2019
2296
  withProjectOptions(
2020
2297
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2021
- yargs23.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2298
+ yargs25.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2022
2299
  )
2023
2300
  )
2024
2301
  )
@@ -2041,7 +2318,7 @@ var DataTypeListModule = {
2041
2318
  command: "list",
2042
2319
  describe: "List data types",
2043
2320
  aliases: ["ls"],
2044
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
2321
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2045
2322
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2046
2323
  const fetch3 = nodeFetchProxy(proxy);
2047
2324
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2090,11 +2367,11 @@ function createDataTypeEngineDataSource({
2090
2367
  var DataTypePullModule = {
2091
2368
  command: "pull <directory>",
2092
2369
  describe: "Pulls all data types to local files in a directory",
2093
- builder: (yargs23) => withConfiguration(
2370
+ builder: (yargs25) => withConfiguration(
2094
2371
  withApiOptions(
2095
2372
  withProjectOptions(
2096
2373
  withDiffOptions(
2097
- yargs23.positional("directory", {
2374
+ yargs25.positional("directory", {
2098
2375
  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.",
2099
2376
  type: "string"
2100
2377
  }).option("format", {
@@ -2175,11 +2452,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
2175
2452
  var DataTypePushModule = {
2176
2453
  command: "push <directory>",
2177
2454
  describe: "Pushes all data types from files in a directory to Uniform",
2178
- builder: (yargs23) => withConfiguration(
2455
+ builder: (yargs25) => withConfiguration(
2179
2456
  withApiOptions(
2180
2457
  withProjectOptions(
2181
2458
  withDiffOptions(
2182
- yargs23.positional("directory", {
2459
+ yargs25.positional("directory", {
2183
2460
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
2184
2461
  type: "string"
2185
2462
  }).option("what-if", {
@@ -2249,10 +2526,10 @@ var DataTypeRemoveModule = {
2249
2526
  command: "remove <id>",
2250
2527
  aliases: ["delete", "rm"],
2251
2528
  describe: "Delete a data type",
2252
- builder: (yargs23) => withConfiguration(
2529
+ builder: (yargs25) => withConfiguration(
2253
2530
  withApiOptions(
2254
2531
  withProjectOptions(
2255
- yargs23.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
2532
+ yargs25.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
2256
2533
  )
2257
2534
  )
2258
2535
  ),
@@ -2269,10 +2546,10 @@ var DataTypeUpdateModule = {
2269
2546
  command: "update <filename>",
2270
2547
  aliases: ["put"],
2271
2548
  describe: "Insert or update a data type",
2272
- builder: (yargs23) => withConfiguration(
2549
+ builder: (yargs25) => withConfiguration(
2273
2550
  withApiOptions(
2274
2551
  withProjectOptions(
2275
- yargs23.positional("filename", { demandOption: true, describe: "Data type file to put" })
2552
+ yargs25.positional("filename", { demandOption: true, describe: "Data type file to put" })
2276
2553
  )
2277
2554
  )
2278
2555
  ),
@@ -2289,14 +2566,287 @@ var DataTypeModule = {
2289
2566
  command: "datatype <command>",
2290
2567
  aliases: ["dt"],
2291
2568
  describe: "Commands for Data Type definitions",
2292
- builder: (yargs23) => yargs23.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
2569
+ builder: (yargs25) => yargs25.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
2293
2570
  handler: () => {
2294
- yargs4.help();
2571
+ yargs5.help();
2572
+ }
2573
+ };
2574
+
2575
+ // src/commands/canvas/commands/entry.ts
2576
+ import yargs6 from "yargs";
2577
+
2578
+ // src/commands/canvas/commands/entry/get.ts
2579
+ import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
2580
+ var EntryGetModule = {
2581
+ command: "get <id>",
2582
+ describe: "Get an entry",
2583
+ builder: (yargs25) => withFormatOptions(
2584
+ withApiOptions(
2585
+ withProjectOptions(
2586
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2587
+ yargs25.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
2588
+ )
2589
+ )
2590
+ ),
2591
+ handler: async ({ apiHost, apiKey, proxy, id, format, filename, project: projectId }) => {
2592
+ const fetch3 = nodeFetchProxy(proxy);
2593
+ const client = new ContentClient7({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2594
+ const res = await client.getEntries({ offset: 0, limit: 1, entryIDs: [id] });
2595
+ if (res.entries.length !== 1) {
2596
+ throw new Error(`Entry with ID ${id} not found`);
2597
+ }
2598
+ emitWithFormat(res.entries[0], format, filename);
2599
+ }
2600
+ };
2601
+
2602
+ // src/commands/canvas/commands/entry/list.ts
2603
+ import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
2604
+ var EntryListModule = {
2605
+ command: "list",
2606
+ describe: "List entries",
2607
+ builder: (yargs25) => withFormatOptions(withApiOptions(withProjectOptions(yargs25))),
2608
+ handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2609
+ const fetch3 = nodeFetchProxy(proxy);
2610
+ const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2611
+ const res = await client.getEntries({ offset: 0, limit: 1e3 });
2612
+ emitWithFormat(res.entries, format, filename);
2613
+ }
2614
+ };
2615
+
2616
+ // src/commands/canvas/commands/entry/pull.ts
2617
+ import { ContentClient as ContentClient9 } from "@uniformdev/canvas";
2618
+
2619
+ // src/commands/canvas/commands/entry/_util.ts
2620
+ var selectEntryIdentifier = (e) => e.entry._id;
2621
+ var selectEntryDisplayName = (e) => `${e.entry._name ?? "Untitled"} (pid: ${e.entry._id})`;
2622
+
2623
+ // src/commands/canvas/entryEngineDataSource.ts
2624
+ function createEntryEngineDataSource({
2625
+ client
2626
+ }) {
2627
+ async function* getObjects() {
2628
+ const { entries } = await client.getEntries({ offset: 0, limit: 1e3 });
2629
+ for await (const e of entries) {
2630
+ const result = {
2631
+ id: selectEntryIdentifier(e),
2632
+ displayName: selectEntryDisplayName(e),
2633
+ providerId: e.entry._id,
2634
+ object: e
2635
+ };
2636
+ yield result;
2637
+ }
2638
+ }
2639
+ return {
2640
+ objects: getObjects(),
2641
+ deleteObject: async (providerId) => {
2642
+ await client.deleteEntry({ entryId: providerId });
2643
+ },
2644
+ writeObject: async ({ object }) => {
2645
+ await client.upsertEntry(object);
2646
+ }
2647
+ };
2648
+ }
2649
+
2650
+ // src/commands/canvas/commands/entry/pull.ts
2651
+ var EntryPullModule = {
2652
+ command: "pull <directory>",
2653
+ describe: "Pulls all entries to local files in a directory",
2654
+ builder: (yargs25) => withApiOptions(
2655
+ withProjectOptions(
2656
+ withDiffOptions(
2657
+ yargs25.positional("directory", {
2658
+ 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.",
2659
+ type: "string"
2660
+ }).option("format", {
2661
+ alias: ["f"],
2662
+ describe: "Output format",
2663
+ default: "yaml",
2664
+ choices: ["yaml", "json"],
2665
+ type: "string"
2666
+ }).option("what-if", {
2667
+ alias: ["w"],
2668
+ describe: "What-if mode reports what would be done but changes no files",
2669
+ default: false,
2670
+ type: "boolean"
2671
+ }).option("mode", {
2672
+ alias: ["m"],
2673
+ 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',
2674
+ choices: ["create", "createOrUpdate", "mirror"],
2675
+ default: "mirror",
2676
+ type: "string"
2677
+ })
2678
+ )
2679
+ )
2680
+ ),
2681
+ handler: async ({
2682
+ apiHost,
2683
+ apiKey,
2684
+ proxy,
2685
+ directory,
2686
+ format,
2687
+ mode,
2688
+ whatIf,
2689
+ project: projectId,
2690
+ diff: diffMode
2691
+ }) => {
2692
+ const fetch3 = nodeFetchProxy(proxy);
2693
+ const client = new ContentClient9({
2694
+ apiKey,
2695
+ apiHost,
2696
+ fetch: fetch3,
2697
+ projectId,
2698
+ bypassCache: true
2699
+ });
2700
+ const source = createEntryEngineDataSource({ client });
2701
+ let target;
2702
+ const isPackage = isPathAPackageFile(directory);
2703
+ if (isPackage) {
2704
+ const packageContents = readCanvasPackage(directory, false);
2705
+ target = await createArraySyncEngineDataSource({
2706
+ objects: packageContents.entries ?? [],
2707
+ selectIdentifier: selectEntryIdentifier,
2708
+ selectDisplayName: selectEntryDisplayName,
2709
+ onSyncComplete: async (_, synced) => {
2710
+ packageContents.entries = synced;
2711
+ writeCanvasPackage(directory, packageContents);
2712
+ }
2713
+ });
2714
+ } else {
2715
+ target = await createFileSyncEngineDataSource({
2716
+ directory,
2717
+ selectIdentifier: selectEntryIdentifier,
2718
+ selectDisplayName: selectEntryDisplayName,
2719
+ format
2720
+ });
2721
+ }
2722
+ await syncEngine({
2723
+ source,
2724
+ target,
2725
+ mode,
2726
+ whatIf,
2727
+ log: createSyncEngineConsoleLogger({ diffMode })
2728
+ });
2729
+ }
2730
+ };
2731
+
2732
+ // src/commands/canvas/commands/entry/push.ts
2733
+ import { ContentClient as ContentClient10 } from "@uniformdev/canvas";
2734
+ var EntryPushModule = {
2735
+ command: "push <directory>",
2736
+ describe: "Pushes all entries from files in a directory to Uniform",
2737
+ builder: (yargs25) => withApiOptions(
2738
+ withProjectOptions(
2739
+ withDiffOptions(
2740
+ yargs25.positional("directory", {
2741
+ describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
2742
+ type: "string"
2743
+ }).option("what-if", {
2744
+ alias: ["w"],
2745
+ describe: "What-if mode reports what would be done but changes nothing",
2746
+ default: false,
2747
+ type: "boolean"
2748
+ }).option("mode", {
2749
+ alias: ["m"],
2750
+ 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',
2751
+ choices: ["create", "createOrUpdate", "mirror"],
2752
+ default: "mirror",
2753
+ type: "string"
2754
+ })
2755
+ )
2756
+ )
2757
+ ),
2758
+ handler: async ({
2759
+ apiHost,
2760
+ apiKey,
2761
+ proxy,
2762
+ directory,
2763
+ mode,
2764
+ whatIf,
2765
+ project: projectId,
2766
+ diff: diffMode
2767
+ }) => {
2768
+ const fetch3 = nodeFetchProxy(proxy);
2769
+ const client = new ContentClient10({
2770
+ apiKey,
2771
+ apiHost,
2772
+ fetch: fetch3,
2773
+ projectId,
2774
+ bypassCache: true
2775
+ });
2776
+ let source;
2777
+ const isPackage = isPathAPackageFile(directory);
2778
+ if (isPackage) {
2779
+ const packageContents = readCanvasPackage(directory, true);
2780
+ source = await createArraySyncEngineDataSource({
2781
+ objects: packageContents.entries ?? [],
2782
+ selectIdentifier: selectEntryIdentifier,
2783
+ selectDisplayName: selectEntryDisplayName
2784
+ });
2785
+ } else {
2786
+ source = await createFileSyncEngineDataSource({
2787
+ directory,
2788
+ selectIdentifier: selectEntryIdentifier,
2789
+ selectDisplayName: selectEntryDisplayName
2790
+ });
2791
+ }
2792
+ const target = createEntryEngineDataSource({ client });
2793
+ await syncEngine({
2794
+ source,
2795
+ target,
2796
+ mode,
2797
+ whatIf,
2798
+ log: createSyncEngineConsoleLogger({ diffMode })
2799
+ });
2800
+ }
2801
+ };
2802
+
2803
+ // src/commands/canvas/commands/entry/remove.ts
2804
+ import { ContentClient as ContentClient11 } from "@uniformdev/canvas";
2805
+ var EntryRemoveModule = {
2806
+ command: "remove <id>",
2807
+ aliases: ["delete", "rm"],
2808
+ describe: "Delete an entry",
2809
+ builder: (yargs25) => withApiOptions(
2810
+ withProjectOptions(
2811
+ yargs25.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
2812
+ )
2813
+ ),
2814
+ handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
2815
+ const fetch3 = nodeFetchProxy(proxy);
2816
+ const client = new ContentClient11({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2817
+ await client.deleteEntry({ entryId: id });
2818
+ }
2819
+ };
2820
+
2821
+ // src/commands/canvas/commands/entry/update.ts
2822
+ import { ContentClient as ContentClient12 } from "@uniformdev/canvas";
2823
+ var EntryUpdateModule = {
2824
+ command: "update <filename>",
2825
+ aliases: ["put"],
2826
+ describe: "Insert or update an entry",
2827
+ builder: (yargs25) => withApiOptions(
2828
+ withProjectOptions(yargs25.positional("filename", { demandOption: true, describe: "Entry file to put" }))
2829
+ ),
2830
+ handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
2831
+ const fetch3 = nodeFetchProxy(proxy);
2832
+ const client = new ContentClient12({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
2833
+ const file = readFileToObject(filename);
2834
+ await client.upsertEntry(file);
2835
+ }
2836
+ };
2837
+
2838
+ // src/commands/canvas/commands/entry.ts
2839
+ var EntryModule = {
2840
+ command: "entry <command>",
2841
+ describe: "Commands for Entries",
2842
+ builder: (yargs25) => yargs25.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).demandCommand(),
2843
+ handler: () => {
2844
+ yargs6.help();
2295
2845
  }
2296
2846
  };
2297
2847
 
2298
2848
  // src/commands/canvas/commands/pattern.ts
2299
- import yargs5 from "yargs";
2849
+ import yargs7 from "yargs";
2300
2850
 
2301
2851
  // src/commands/canvas/commands/pattern/get.ts
2302
2852
  var PatternGetModule = {
@@ -2308,12 +2858,12 @@ var PatternGetModule = {
2308
2858
  var PatternListModule = {
2309
2859
  ...CompositionListModule,
2310
2860
  describe: "List patterns",
2311
- builder: (yargs23) => withFormatOptions(
2861
+ builder: (yargs25) => withFormatOptions(
2312
2862
  withConfiguration(
2313
2863
  withApiOptions(
2314
2864
  withProjectOptions(
2315
2865
  withStateOptions(
2316
- yargs23.options({
2866
+ yargs25.options({
2317
2867
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2318
2868
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2319
2869
  resolvePatterns: {
@@ -2351,11 +2901,11 @@ var PatternListModule = {
2351
2901
  var PatternPublishModule = {
2352
2902
  ...CompositionPublishModule,
2353
2903
  describe: "Publishes pattern(s)",
2354
- builder: (yargs23) => withConfiguration(
2904
+ builder: (yargs25) => withConfiguration(
2355
2905
  withApiOptions(
2356
2906
  withProjectOptions(
2357
2907
  withDiffOptions(
2358
- yargs23.positional("ids", {
2908
+ yargs25.positional("ids", {
2359
2909
  describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2360
2910
  type: "string"
2361
2911
  }).option("all", {
@@ -2393,12 +2943,12 @@ var PatternPublishModule = {
2393
2943
  var PatternPullModule = {
2394
2944
  ...CompositionPullModule,
2395
2945
  describe: "Pulls all patterns to local files in a directory",
2396
- builder: (yargs23) => withConfiguration(
2946
+ builder: (yargs25) => withConfiguration(
2397
2947
  withApiOptions(
2398
2948
  withProjectOptions(
2399
2949
  withStateOptions(
2400
2950
  withDiffOptions(
2401
- yargs23.positional("directory", {
2951
+ yargs25.positional("directory", {
2402
2952
  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.",
2403
2953
  type: "string"
2404
2954
  }).option("format", {
@@ -2436,12 +2986,12 @@ var PatternPullModule = {
2436
2986
  var PatternPushModule = {
2437
2987
  ...CompositionPushModule,
2438
2988
  describe: "Pushes all patterns from files in a directory to Uniform Canvas",
2439
- builder: (yargs23) => withConfiguration(
2989
+ builder: (yargs25) => withConfiguration(
2440
2990
  withApiOptions(
2441
2991
  withProjectOptions(
2442
2992
  withStateOptions(
2443
2993
  withDiffOptions(
2444
- yargs23.positional("directory", {
2994
+ yargs25.positional("directory", {
2445
2995
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
2446
2996
  type: "string"
2447
2997
  }).option("what-if", {
@@ -2479,10 +3029,10 @@ var PatternRemoveModule = {
2479
3029
  var PatternUnpublishModule = {
2480
3030
  command: "unpublish [ids]",
2481
3031
  describe: "Unpublish a pattern(s)",
2482
- builder: (yargs23) => withConfiguration(
3032
+ builder: (yargs25) => withConfiguration(
2483
3033
  withApiOptions(
2484
3034
  withProjectOptions(
2485
- yargs23.positional("ids", {
3035
+ yargs25.positional("ids", {
2486
3036
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
2487
3037
  type: "string"
2488
3038
  }).option("all", {
@@ -2521,9 +3071,9 @@ var PatternUpdateModule = {
2521
3071
  var PatternModule = {
2522
3072
  command: "pattern <command>",
2523
3073
  describe: "Commands for Canvas patterns",
2524
- builder: (yargs23) => yargs23.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
3074
+ builder: (yargs25) => yargs25.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
2525
3075
  handler: () => {
2526
- yargs5.help();
3076
+ yargs7.help();
2527
3077
  }
2528
3078
  };
2529
3079
 
@@ -2532,28 +3082,28 @@ var CanvasCommand = {
2532
3082
  command: "canvas <command>",
2533
3083
  aliases: ["cv", "pm", "presentation"],
2534
3084
  describe: "Uniform Canvas commands",
2535
- builder: (yargs23) => yargs23.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).demandCommand(),
3085
+ builder: (yargs25) => yargs25.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).demandCommand(),
2536
3086
  handler: () => {
2537
- yargs6.showHelp();
3087
+ yargs8.showHelp();
2538
3088
  }
2539
3089
  };
2540
3090
 
2541
3091
  // src/commands/context/index.ts
2542
- import yargs13 from "yargs";
3092
+ import yargs15 from "yargs";
2543
3093
 
2544
3094
  // src/commands/context/commands/aggregate.ts
2545
- import yargs7 from "yargs";
3095
+ import yargs9 from "yargs";
2546
3096
 
2547
3097
  // src/commands/context/commands/aggregate/get.ts
2548
3098
  import { UncachedAggregateClient } from "@uniformdev/context/api";
2549
3099
  var AggregateGetModule = {
2550
3100
  command: "get <id>",
2551
3101
  describe: "Fetch an aggregate",
2552
- builder: (yargs23) => withConfiguration(
3102
+ builder: (yargs25) => withConfiguration(
2553
3103
  withFormatOptions(
2554
3104
  withApiOptions(
2555
3105
  withProjectOptions(
2556
- yargs23.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
3106
+ yargs25.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
2557
3107
  )
2558
3108
  )
2559
3109
  )
@@ -2577,7 +3127,7 @@ var AggregateListModule = {
2577
3127
  command: "list",
2578
3128
  describe: "List aggregates",
2579
3129
  aliases: ["ls"],
2580
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
3130
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2581
3131
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2582
3132
  const fetch3 = nodeFetchProxy(proxy);
2583
3133
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -2643,11 +3193,11 @@ function writeContextPackage(filename, packageContents) {
2643
3193
  var AggregatePullModule = {
2644
3194
  command: "pull <directory>",
2645
3195
  describe: "Pulls all aggregates to local files in a directory",
2646
- builder: (yargs23) => withConfiguration(
3196
+ builder: (yargs25) => withConfiguration(
2647
3197
  withApiOptions(
2648
3198
  withProjectOptions(
2649
3199
  withDiffOptions(
2650
- yargs23.positional("directory", {
3200
+ yargs25.positional("directory", {
2651
3201
  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.",
2652
3202
  type: "string"
2653
3203
  }).option("format", {
@@ -2722,11 +3272,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
2722
3272
  var AggregatePushModule = {
2723
3273
  command: "push <directory>",
2724
3274
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
2725
- builder: (yargs23) => withConfiguration(
3275
+ builder: (yargs25) => withConfiguration(
2726
3276
  withApiOptions(
2727
3277
  withProjectOptions(
2728
3278
  withDiffOptions(
2729
- yargs23.positional("directory", {
3279
+ yargs25.positional("directory", {
2730
3280
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
2731
3281
  type: "string"
2732
3282
  }).option("what-if", {
@@ -2791,10 +3341,10 @@ var AggregateRemoveModule = {
2791
3341
  command: "remove <id>",
2792
3342
  aliases: ["delete", "rm"],
2793
3343
  describe: "Delete an aggregate",
2794
- builder: (yargs23) => withConfiguration(
3344
+ builder: (yargs25) => withConfiguration(
2795
3345
  withApiOptions(
2796
3346
  withProjectOptions(
2797
- yargs23.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
3347
+ yargs25.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
2798
3348
  )
2799
3349
  )
2800
3350
  ),
@@ -2811,10 +3361,10 @@ var AggregateUpdateModule = {
2811
3361
  command: "update <filename>",
2812
3362
  aliases: ["put"],
2813
3363
  describe: "Insert or update an aggregate",
2814
- builder: (yargs23) => withConfiguration(
3364
+ builder: (yargs25) => withConfiguration(
2815
3365
  withApiOptions(
2816
3366
  withProjectOptions(
2817
- yargs23.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
3367
+ yargs25.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
2818
3368
  )
2819
3369
  )
2820
3370
  ),
@@ -2831,25 +3381,25 @@ var AggregateModule = {
2831
3381
  command: "aggregate <command>",
2832
3382
  aliases: ["agg", "intent", "audience"],
2833
3383
  describe: "Commands for Context aggregates (intents, audiences)",
2834
- builder: (yargs23) => yargs23.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
3384
+ builder: (yargs25) => yargs25.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
2835
3385
  handler: () => {
2836
- yargs7.help();
3386
+ yargs9.help();
2837
3387
  }
2838
3388
  };
2839
3389
 
2840
3390
  // src/commands/context/commands/enrichment.ts
2841
- import yargs8 from "yargs";
3391
+ import yargs10 from "yargs";
2842
3392
 
2843
3393
  // src/commands/context/commands/enrichment/get.ts
2844
3394
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
2845
3395
  var EnrichmentGetModule = {
2846
3396
  command: "get <id>",
2847
3397
  describe: "Fetch an enrichment category and its values",
2848
- builder: (yargs23) => withFormatOptions(
3398
+ builder: (yargs25) => withFormatOptions(
2849
3399
  withConfiguration(
2850
3400
  withApiOptions(
2851
3401
  withProjectOptions(
2852
- yargs23.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
3402
+ yargs25.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
2853
3403
  )
2854
3404
  )
2855
3405
  )
@@ -2874,7 +3424,7 @@ var EnrichmentListModule = {
2874
3424
  command: "list",
2875
3425
  describe: "List enrichments",
2876
3426
  aliases: ["ls"],
2877
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
3427
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2878
3428
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2879
3429
  const fetch3 = nodeFetchProxy(proxy);
2880
3430
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -2975,11 +3525,11 @@ var createEnrichmentValueEngineDataSource = ({
2975
3525
  var EnrichmentPullModule = {
2976
3526
  command: "pull <directory>",
2977
3527
  describe: "Pulls all enrichments to local files in a directory",
2978
- builder: (yargs23) => withConfiguration(
3528
+ builder: (yargs25) => withConfiguration(
2979
3529
  withApiOptions(
2980
3530
  withProjectOptions(
2981
3531
  withDiffOptions(
2982
- yargs23.positional("directory", {
3532
+ yargs25.positional("directory", {
2983
3533
  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.",
2984
3534
  type: "string"
2985
3535
  }).option("format", {
@@ -3054,11 +3604,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
3054
3604
  var EnrichmentPushModule = {
3055
3605
  command: "push <directory>",
3056
3606
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
3057
- builder: (yargs23) => withConfiguration(
3607
+ builder: (yargs25) => withConfiguration(
3058
3608
  withApiOptions(
3059
3609
  withProjectOptions(
3060
3610
  withDiffOptions(
3061
- yargs23.positional("directory", {
3611
+ yargs25.positional("directory", {
3062
3612
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
3063
3613
  type: "string"
3064
3614
  }).option("what-if", {
@@ -3122,10 +3672,10 @@ var EnrichmentRemoveModule = {
3122
3672
  command: "remove <id>",
3123
3673
  aliases: ["delete", "rm"],
3124
3674
  describe: "Delete an enrichment category and its values",
3125
- builder: (yargs23) => withConfiguration(
3675
+ builder: (yargs25) => withConfiguration(
3126
3676
  withApiOptions(
3127
3677
  withProjectOptions(
3128
- yargs23.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
3678
+ yargs25.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
3129
3679
  )
3130
3680
  )
3131
3681
  ),
@@ -3141,14 +3691,14 @@ var EnrichmentModule = {
3141
3691
  command: "enrichment <command>",
3142
3692
  aliases: ["enr"],
3143
3693
  describe: "Commands for Context enrichments",
3144
- builder: (yargs23) => yargs23.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
3694
+ builder: (yargs25) => yargs25.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
3145
3695
  handler: () => {
3146
- yargs8.help();
3696
+ yargs10.help();
3147
3697
  }
3148
3698
  };
3149
3699
 
3150
3700
  // src/commands/context/commands/manifest.ts
3151
- import yargs9 from "yargs";
3701
+ import yargs11 from "yargs";
3152
3702
 
3153
3703
  // src/commands/context/commands/manifest/get.ts
3154
3704
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -3159,10 +3709,10 @@ var ManifestGetModule = {
3159
3709
  command: "get [output]",
3160
3710
  aliases: ["dl", "download"],
3161
3711
  describe: "Download the Uniform Context manifest for a project",
3162
- builder: (yargs23) => withConfiguration(
3712
+ builder: (yargs25) => withConfiguration(
3163
3713
  withApiOptions(
3164
3714
  withProjectOptions(
3165
- yargs23.option("preview", {
3715
+ yargs25.option("preview", {
3166
3716
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
3167
3717
  default: false,
3168
3718
  type: "boolean",
@@ -3224,7 +3774,7 @@ import { exit as exit2 } from "process";
3224
3774
  var ManifestPublishModule = {
3225
3775
  command: "publish",
3226
3776
  describe: "Publish the Uniform Context manifest for a project",
3227
- builder: (yargs23) => withConfiguration(withApiOptions(withProjectOptions(yargs23))),
3777
+ builder: (yargs25) => withConfiguration(withApiOptions(withProjectOptions(yargs25))),
3228
3778
  handler: async ({ apiKey, apiHost, proxy, project }) => {
3229
3779
  const fetch3 = nodeFetchProxy(proxy);
3230
3780
  try {
@@ -3257,25 +3807,25 @@ var ManifestModule = {
3257
3807
  command: "manifest <command>",
3258
3808
  describe: "Commands for context manifests",
3259
3809
  aliases: ["man"],
3260
- builder: (yargs23) => yargs23.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
3810
+ builder: (yargs25) => yargs25.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
3261
3811
  handler: () => {
3262
- yargs9.help();
3812
+ yargs11.help();
3263
3813
  }
3264
3814
  };
3265
3815
 
3266
3816
  // src/commands/context/commands/quirk.ts
3267
- import yargs10 from "yargs";
3817
+ import yargs12 from "yargs";
3268
3818
 
3269
3819
  // src/commands/context/commands/quirk/get.ts
3270
3820
  import { UncachedQuirkClient } from "@uniformdev/context/api";
3271
3821
  var QuirkGetModule = {
3272
3822
  command: "get <id>",
3273
3823
  describe: "Fetch a quirk",
3274
- builder: (yargs23) => withConfiguration(
3824
+ builder: (yargs25) => withConfiguration(
3275
3825
  withFormatOptions(
3276
3826
  withApiOptions(
3277
3827
  withProjectOptions(
3278
- yargs23.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
3828
+ yargs25.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
3279
3829
  )
3280
3830
  )
3281
3831
  )
@@ -3299,11 +3849,11 @@ var QuirkListModule = {
3299
3849
  command: "list",
3300
3850
  describe: "List quirks",
3301
3851
  aliases: ["ls"],
3302
- builder: (yargs23) => withConfiguration(
3852
+ builder: (yargs25) => withConfiguration(
3303
3853
  withFormatOptions(
3304
3854
  withApiOptions(
3305
3855
  withProjectOptions(
3306
- yargs23.option("withIntegrations", {
3856
+ yargs25.option("withIntegrations", {
3307
3857
  alias: ["i"],
3308
3858
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
3309
3859
  type: "boolean"
@@ -3360,11 +3910,11 @@ function createQuirkEngineDataSource({
3360
3910
  var QuirkPullModule = {
3361
3911
  command: "pull <directory>",
3362
3912
  describe: "Pulls all quirks to local files in a directory",
3363
- builder: (yargs23) => withConfiguration(
3913
+ builder: (yargs25) => withConfiguration(
3364
3914
  withApiOptions(
3365
3915
  withProjectOptions(
3366
3916
  withDiffOptions(
3367
- yargs23.positional("directory", {
3917
+ yargs25.positional("directory", {
3368
3918
  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.",
3369
3919
  type: "string"
3370
3920
  }).option("format", {
@@ -3439,11 +3989,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
3439
3989
  var QuirkPushModule = {
3440
3990
  command: "push <directory>",
3441
3991
  describe: "Pushes all quirks from files in a directory or package to Uniform",
3442
- builder: (yargs23) => withConfiguration(
3992
+ builder: (yargs25) => withConfiguration(
3443
3993
  withApiOptions(
3444
3994
  withProjectOptions(
3445
3995
  withDiffOptions(
3446
- yargs23.positional("directory", {
3996
+ yargs25.positional("directory", {
3447
3997
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
3448
3998
  type: "string"
3449
3999
  }).option("what-if", {
@@ -3507,10 +4057,10 @@ var QuirkRemoveModule = {
3507
4057
  command: "remove <id>",
3508
4058
  aliases: ["delete", "rm"],
3509
4059
  describe: "Delete a quirk",
3510
- builder: (yargs23) => withConfiguration(
4060
+ builder: (yargs25) => withConfiguration(
3511
4061
  withApiOptions(
3512
4062
  withProjectOptions(
3513
- yargs23.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
4063
+ yargs25.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
3514
4064
  )
3515
4065
  )
3516
4066
  ),
@@ -3527,10 +4077,10 @@ var QuirkUpdateModule = {
3527
4077
  command: "update <filename>",
3528
4078
  aliases: ["put"],
3529
4079
  describe: "Insert or update a quirk",
3530
- builder: (yargs23) => withConfiguration(
4080
+ builder: (yargs25) => withConfiguration(
3531
4081
  withApiOptions(
3532
4082
  withProjectOptions(
3533
- yargs23.positional("filename", { demandOption: true, describe: "Quirk file to put" })
4083
+ yargs25.positional("filename", { demandOption: true, describe: "Quirk file to put" })
3534
4084
  )
3535
4085
  )
3536
4086
  ),
@@ -3547,25 +4097,25 @@ var QuirkModule = {
3547
4097
  command: "quirk <command>",
3548
4098
  aliases: ["qk"],
3549
4099
  describe: "Commands for Context quirks",
3550
- builder: (yargs23) => yargs23.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
4100
+ builder: (yargs25) => yargs25.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
3551
4101
  handler: () => {
3552
- yargs10.help();
4102
+ yargs12.help();
3553
4103
  }
3554
4104
  };
3555
4105
 
3556
4106
  // src/commands/context/commands/signal.ts
3557
- import yargs11 from "yargs";
4107
+ import yargs13 from "yargs";
3558
4108
 
3559
4109
  // src/commands/context/commands/signal/get.ts
3560
4110
  import { UncachedSignalClient } from "@uniformdev/context/api";
3561
4111
  var SignalGetModule = {
3562
4112
  command: "get <id>",
3563
4113
  describe: "Fetch a signal",
3564
- builder: (yargs23) => withConfiguration(
4114
+ builder: (yargs25) => withConfiguration(
3565
4115
  withFormatOptions(
3566
4116
  withApiOptions(
3567
4117
  withProjectOptions(
3568
- yargs23.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
4118
+ yargs25.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
3569
4119
  )
3570
4120
  )
3571
4121
  )
@@ -3589,7 +4139,7 @@ var SignalListModule = {
3589
4139
  command: "list",
3590
4140
  describe: "List signals",
3591
4141
  aliases: ["ls"],
3592
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
4142
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
3593
4143
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3594
4144
  const fetch3 = nodeFetchProxy(proxy);
3595
4145
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -3638,11 +4188,11 @@ function createSignalEngineDataSource({
3638
4188
  var SignalPullModule = {
3639
4189
  command: "pull <directory>",
3640
4190
  describe: "Pulls all signals to local files in a directory",
3641
- builder: (yargs23) => withConfiguration(
4191
+ builder: (yargs25) => withConfiguration(
3642
4192
  withApiOptions(
3643
4193
  withProjectOptions(
3644
4194
  withDiffOptions(
3645
- yargs23.positional("directory", {
4195
+ yargs25.positional("directory", {
3646
4196
  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.",
3647
4197
  type: "string"
3648
4198
  }).option("format", {
@@ -3717,11 +4267,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
3717
4267
  var SignalPushModule = {
3718
4268
  command: "push <directory>",
3719
4269
  describe: "Pushes all signals from files in a directory or package to Uniform",
3720
- builder: (yargs23) => withConfiguration(
4270
+ builder: (yargs25) => withConfiguration(
3721
4271
  withApiOptions(
3722
4272
  withProjectOptions(
3723
4273
  withDiffOptions(
3724
- yargs23.positional("directory", {
4274
+ yargs25.positional("directory", {
3725
4275
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
3726
4276
  type: "string"
3727
4277
  }).option("what-if", {
@@ -3785,10 +4335,10 @@ var SignalRemoveModule = {
3785
4335
  command: "remove <id>",
3786
4336
  aliases: ["delete", "rm"],
3787
4337
  describe: "Delete a signal",
3788
- builder: (yargs23) => withConfiguration(
4338
+ builder: (yargs25) => withConfiguration(
3789
4339
  withApiOptions(
3790
4340
  withProjectOptions(
3791
- yargs23.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
4341
+ yargs25.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
3792
4342
  )
3793
4343
  )
3794
4344
  ),
@@ -3805,10 +4355,10 @@ var SignalUpdateModule = {
3805
4355
  command: "update <filename>",
3806
4356
  aliases: ["put"],
3807
4357
  describe: "Insert or update a signal",
3808
- builder: (yargs23) => withConfiguration(
4358
+ builder: (yargs25) => withConfiguration(
3809
4359
  withApiOptions(
3810
4360
  withProjectOptions(
3811
- yargs23.positional("filename", { demandOption: true, describe: "Signal file to put" })
4361
+ yargs25.positional("filename", { demandOption: true, describe: "Signal file to put" })
3812
4362
  )
3813
4363
  )
3814
4364
  ),
@@ -3825,25 +4375,25 @@ var SignalModule = {
3825
4375
  command: "signal <command>",
3826
4376
  aliases: ["sig"],
3827
4377
  describe: "Commands for Context signals",
3828
- builder: (yargs23) => yargs23.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
4378
+ builder: (yargs25) => yargs25.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
3829
4379
  handler: () => {
3830
- yargs11.help();
4380
+ yargs13.help();
3831
4381
  }
3832
4382
  };
3833
4383
 
3834
4384
  // src/commands/context/commands/test.ts
3835
- import yargs12 from "yargs";
4385
+ import yargs14 from "yargs";
3836
4386
 
3837
4387
  // src/commands/context/commands/test/get.ts
3838
4388
  import { UncachedTestClient } from "@uniformdev/context/api";
3839
4389
  var TestGetModule = {
3840
4390
  command: "get <id>",
3841
4391
  describe: "Fetch a test",
3842
- builder: (yargs23) => withConfiguration(
4392
+ builder: (yargs25) => withConfiguration(
3843
4393
  withFormatOptions(
3844
4394
  withApiOptions(
3845
4395
  withProjectOptions(
3846
- yargs23.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
4396
+ yargs25.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
3847
4397
  )
3848
4398
  )
3849
4399
  )
@@ -3867,7 +4417,7 @@ var TestListModule = {
3867
4417
  command: "list",
3868
4418
  describe: "List tests",
3869
4419
  aliases: ["ls"],
3870
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
4420
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
3871
4421
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3872
4422
  const fetch3 = nodeFetchProxy(proxy);
3873
4423
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -3916,11 +4466,11 @@ function createTestEngineDataSource({
3916
4466
  var TestPullModule = {
3917
4467
  command: "pull <directory>",
3918
4468
  describe: "Pulls all tests to local files in a directory",
3919
- builder: (yargs23) => withConfiguration(
4469
+ builder: (yargs25) => withConfiguration(
3920
4470
  withApiOptions(
3921
4471
  withProjectOptions(
3922
4472
  withDiffOptions(
3923
- yargs23.positional("directory", {
4473
+ yargs25.positional("directory", {
3924
4474
  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.",
3925
4475
  type: "string"
3926
4476
  }).option("format", {
@@ -3995,11 +4545,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
3995
4545
  var TestPushModule = {
3996
4546
  command: "push <directory>",
3997
4547
  describe: "Pushes all tests from files in a directory or package to Uniform",
3998
- builder: (yargs23) => withConfiguration(
4548
+ builder: (yargs25) => withConfiguration(
3999
4549
  withApiOptions(
4000
4550
  withProjectOptions(
4001
4551
  withDiffOptions(
4002
- yargs23.positional("directory", {
4552
+ yargs25.positional("directory", {
4003
4553
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
4004
4554
  type: "string"
4005
4555
  }).option("what-if", {
@@ -4063,10 +4613,10 @@ var TestRemoveModule = {
4063
4613
  command: "remove <id>",
4064
4614
  aliases: ["delete", "rm"],
4065
4615
  describe: "Delete a test",
4066
- builder: (yargs23) => withConfiguration(
4616
+ builder: (yargs25) => withConfiguration(
4067
4617
  withApiOptions(
4068
4618
  withProjectOptions(
4069
- yargs23.positional("id", { demandOption: true, describe: "Test public ID to delete" })
4619
+ yargs25.positional("id", { demandOption: true, describe: "Test public ID to delete" })
4070
4620
  )
4071
4621
  )
4072
4622
  ),
@@ -4083,9 +4633,9 @@ var TestUpdateModule = {
4083
4633
  command: "update <filename>",
4084
4634
  aliases: ["put"],
4085
4635
  describe: "Insert or update a test",
4086
- builder: (yargs23) => withConfiguration(
4636
+ builder: (yargs25) => withConfiguration(
4087
4637
  withApiOptions(
4088
- withProjectOptions(yargs23.positional("filename", { demandOption: true, describe: "Test file to put" }))
4638
+ withProjectOptions(yargs25.positional("filename", { demandOption: true, describe: "Test file to put" }))
4089
4639
  )
4090
4640
  ),
4091
4641
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -4100,9 +4650,9 @@ var TestUpdateModule = {
4100
4650
  var TestModule = {
4101
4651
  command: "test <command>",
4102
4652
  describe: "Commands for Context A/B tests",
4103
- builder: (yargs23) => yargs23.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
4653
+ builder: (yargs25) => yargs25.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
4104
4654
  handler: () => {
4105
- yargs12.help();
4655
+ yargs14.help();
4106
4656
  }
4107
4657
  };
4108
4658
 
@@ -4111,9 +4661,9 @@ var ContextCommand = {
4111
4661
  command: "context <command>",
4112
4662
  aliases: ["ctx"],
4113
4663
  describe: "Uniform Context commands",
4114
- builder: (yargs23) => yargs23.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
4664
+ builder: (yargs25) => yargs25.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
4115
4665
  handler: () => {
4116
- yargs13.showHelp();
4666
+ yargs15.showHelp();
4117
4667
  }
4118
4668
  };
4119
4669
 
@@ -4160,7 +4710,7 @@ var package_default = {
4160
4710
  "@thi.ng/mime": "^2.2.23",
4161
4711
  "@uniformdev/canvas": "workspace:*",
4162
4712
  "@uniformdev/context": "workspace:*",
4163
- "@uniformdev/files-sdk": "workspace:*",
4713
+ "@uniformdev/files": "workspace:*",
4164
4714
  "@uniformdev/project-map": "workspace:*",
4165
4715
  "@uniformdev/redirect": "workspace:*",
4166
4716
  colorette: "2.0.20",
@@ -5183,10 +5733,10 @@ var NewMeshCmd = {
5183
5733
  };
5184
5734
 
5185
5735
  // src/commands/optimize/index.ts
5186
- import yargs15 from "yargs";
5736
+ import yargs17 from "yargs";
5187
5737
 
5188
5738
  // src/commands/optimize/manifest.ts
5189
- import yargs14 from "yargs";
5739
+ import yargs16 from "yargs";
5190
5740
 
5191
5741
  // src/commands/optimize/manifest/download.ts
5192
5742
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -5201,7 +5751,7 @@ var UniformBaseUrl = "https://uniform.app";
5201
5751
  var module = {
5202
5752
  command: "download [output]",
5203
5753
  describe: "Download intent manifest",
5204
- builder: (yargs23) => yargs23.option("apiKey", {
5754
+ builder: (yargs25) => yargs25.option("apiKey", {
5205
5755
  alias: "k",
5206
5756
  demandOption: true,
5207
5757
  string: true,
@@ -5302,10 +5852,10 @@ var module2 = {
5302
5852
  command: "manifest <command>",
5303
5853
  describe: "Intent manifest commands",
5304
5854
  builder: () => {
5305
- return yargs14.command(download_default);
5855
+ return yargs16.command(download_default);
5306
5856
  },
5307
5857
  handler: () => {
5308
- yargs14.showHelp();
5858
+ yargs16.showHelp();
5309
5859
  }
5310
5860
  };
5311
5861
  var manifest_default = module2;
@@ -5316,29 +5866,29 @@ var OptimizeCommand = {
5316
5866
  aliases: ["opt"],
5317
5867
  describe: "Uniform Optimize commands",
5318
5868
  builder: () => {
5319
- return yargs15.command(manifest_default);
5869
+ return yargs17.command(manifest_default);
5320
5870
  },
5321
5871
  handler: () => {
5322
- yargs15.showHelp();
5872
+ yargs17.showHelp();
5323
5873
  }
5324
5874
  };
5325
5875
 
5326
5876
  // src/commands/project-map/index.ts
5327
- import yargs18 from "yargs";
5877
+ import yargs20 from "yargs";
5328
5878
 
5329
5879
  // src/commands/project-map/commands/projectMapDefinition.ts
5330
- import yargs16 from "yargs";
5880
+ import yargs18 from "yargs";
5331
5881
 
5332
5882
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
5333
5883
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
5334
5884
  var ProjectMapDefinitionGetModule = {
5335
5885
  command: "get <id>",
5336
5886
  describe: "Fetch a project map",
5337
- builder: (yargs23) => withFormatOptions(
5887
+ builder: (yargs25) => withFormatOptions(
5338
5888
  withConfiguration(
5339
5889
  withApiOptions(
5340
5890
  withProjectOptions(
5341
- yargs23.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
5891
+ yargs25.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
5342
5892
  )
5343
5893
  )
5344
5894
  )
@@ -5362,7 +5912,7 @@ var ProjectMapDefinitionListModule = {
5362
5912
  command: "list",
5363
5913
  describe: "List of project maps",
5364
5914
  aliases: ["ls"],
5365
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
5915
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
5366
5916
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5367
5917
  const fetch3 = nodeFetchProxy(proxy);
5368
5918
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -5419,11 +5969,11 @@ function createProjectMapDefinitionEngineDataSource({
5419
5969
  var ProjectMapDefinitionPullModule = {
5420
5970
  command: "pull <directory>",
5421
5971
  describe: "Pulls all project maps to local files in a directory",
5422
- builder: (yargs23) => withConfiguration(
5972
+ builder: (yargs25) => withConfiguration(
5423
5973
  withApiOptions(
5424
5974
  withProjectOptions(
5425
5975
  withDiffOptions(
5426
- yargs23.positional("directory", {
5976
+ yargs25.positional("directory", {
5427
5977
  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.",
5428
5978
  type: "string"
5429
5979
  }).option("format", {
@@ -5498,11 +6048,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
5498
6048
  var ProjectMapDefinitionPushModule = {
5499
6049
  command: "push <directory>",
5500
6050
  describe: "Pushes all project maps from files in a directory or package to Uniform",
5501
- builder: (yargs23) => withConfiguration(
6051
+ builder: (yargs25) => withConfiguration(
5502
6052
  withApiOptions(
5503
6053
  withProjectOptions(
5504
6054
  withDiffOptions(
5505
- yargs23.positional("directory", {
6055
+ yargs25.positional("directory", {
5506
6056
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
5507
6057
  type: "string"
5508
6058
  }).option("what-if", {
@@ -5566,9 +6116,9 @@ var ProjectMapDefinitionRemoveModule = {
5566
6116
  command: "remove <id>",
5567
6117
  aliases: ["delete", "rm"],
5568
6118
  describe: "Delete a project map",
5569
- builder: (yargs23) => withConfiguration(
6119
+ builder: (yargs25) => withConfiguration(
5570
6120
  withApiOptions(
5571
- withProjectOptions(yargs23.positional("id", { demandOption: true, describe: " UUID to delete" }))
6121
+ withProjectOptions(yargs25.positional("id", { demandOption: true, describe: " UUID to delete" }))
5572
6122
  )
5573
6123
  ),
5574
6124
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -5584,10 +6134,10 @@ var ProjectMapDefinitionUpdateModule = {
5584
6134
  command: "update <filename>",
5585
6135
  aliases: ["put"],
5586
6136
  describe: "Insert or update a project map",
5587
- builder: (yargs23) => withConfiguration(
6137
+ builder: (yargs25) => withConfiguration(
5588
6138
  withApiOptions(
5589
6139
  withProjectOptions(
5590
- yargs23.positional("filename", { demandOption: true, describe: "Project map file to put" })
6140
+ yargs25.positional("filename", { demandOption: true, describe: "Project map file to put" })
5591
6141
  )
5592
6142
  )
5593
6143
  ),
@@ -5603,25 +6153,25 @@ var ProjectMapDefinitionUpdateModule = {
5603
6153
  var ProjectMapDefinitionModule = {
5604
6154
  command: "definition <command>",
5605
6155
  describe: "Commands for ProjectMap Definitions",
5606
- builder: (yargs23) => yargs23.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
6156
+ builder: (yargs25) => yargs25.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
5607
6157
  handler: () => {
5608
- yargs16.help();
6158
+ yargs18.help();
5609
6159
  }
5610
6160
  };
5611
6161
 
5612
6162
  // src/commands/project-map/commands/projectMapNode.ts
5613
- import yargs17 from "yargs";
6163
+ import yargs19 from "yargs";
5614
6164
 
5615
6165
  // src/commands/project-map/commands/ProjectMapNode/get.ts
5616
6166
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
5617
6167
  var ProjectMapNodeGetModule = {
5618
6168
  command: "get <id> <projectMapId>",
5619
6169
  describe: "Fetch a project map node",
5620
- builder: (yargs23) => withConfiguration(
6170
+ builder: (yargs25) => withConfiguration(
5621
6171
  withFormatOptions(
5622
6172
  withApiOptions(
5623
6173
  withProjectOptions(
5624
- yargs23.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
6174
+ yargs25.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
5625
6175
  )
5626
6176
  )
5627
6177
  )
@@ -5647,11 +6197,11 @@ var ProjectMapNodeListModule = {
5647
6197
  command: "list <projectMapId>",
5648
6198
  describe: "List project map nodes",
5649
6199
  aliases: ["ls"],
5650
- builder: (yargs23) => withConfiguration(
6200
+ builder: (yargs25) => withConfiguration(
5651
6201
  withFormatOptions(
5652
6202
  withApiOptions(
5653
6203
  withProjectOptions(
5654
- yargs23.positional("projectMapId", {
6204
+ yargs25.positional("projectMapId", {
5655
6205
  demandOption: true,
5656
6206
  describe: "ProjectMap UUID to fetch from"
5657
6207
  })
@@ -5722,11 +6272,11 @@ function createProjectMapNodeEngineDataSource({
5722
6272
  var ProjectMapNodePullModule = {
5723
6273
  command: "pull <directory>",
5724
6274
  describe: "Pulls all project maps nodes to local files in a directory",
5725
- builder: (yargs23) => withConfiguration(
6275
+ builder: (yargs25) => withConfiguration(
5726
6276
  withApiOptions(
5727
6277
  withProjectOptions(
5728
6278
  withDiffOptions(
5729
- yargs23.positional("directory", {
6279
+ yargs25.positional("directory", {
5730
6280
  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.",
5731
6281
  type: "string"
5732
6282
  }).option("format", {
@@ -5805,11 +6355,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
5805
6355
  var ProjectMapNodePushModule = {
5806
6356
  command: "push <directory>",
5807
6357
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
5808
- builder: (yargs23) => withConfiguration(
6358
+ builder: (yargs25) => withConfiguration(
5809
6359
  withApiOptions(
5810
6360
  withProjectOptions(
5811
6361
  withDiffOptions(
5812
- yargs23.positional("directory", {
6362
+ yargs25.positional("directory", {
5813
6363
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
5814
6364
  type: "string"
5815
6365
  }).option("what-if", {
@@ -5882,10 +6432,10 @@ var ProjectMapNodeRemoveModule = {
5882
6432
  command: "remove <id> <projectMapId>",
5883
6433
  aliases: ["delete", "rm"],
5884
6434
  describe: "Delete a project map node",
5885
- builder: (yargs23) => withConfiguration(
6435
+ builder: (yargs25) => withConfiguration(
5886
6436
  withApiOptions(
5887
6437
  withProjectOptions(
5888
- yargs23.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
6438
+ yargs25.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
5889
6439
  )
5890
6440
  )
5891
6441
  ),
@@ -5902,10 +6452,10 @@ var ProjectMapNodeUpdateModule = {
5902
6452
  command: "update <filename> <projectMapId>",
5903
6453
  aliases: ["put"],
5904
6454
  describe: "Insert or update a project map node",
5905
- builder: (yargs23) => withConfiguration(
6455
+ builder: (yargs25) => withConfiguration(
5906
6456
  withApiOptions(
5907
6457
  withProjectOptions(
5908
- yargs23.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
6458
+ yargs25.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
5909
6459
  )
5910
6460
  )
5911
6461
  ),
@@ -5921,9 +6471,9 @@ var ProjectMapNodeUpdateModule = {
5921
6471
  var ProjectMapNodeModule = {
5922
6472
  command: "node <command>",
5923
6473
  describe: "Commands for ProjectMap Nodes",
5924
- builder: (yargs23) => yargs23.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
6474
+ builder: (yargs25) => yargs25.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
5925
6475
  handler: () => {
5926
- yargs17.help();
6476
+ yargs19.help();
5927
6477
  }
5928
6478
  };
5929
6479
 
@@ -5932,28 +6482,28 @@ var ProjectMapCommand = {
5932
6482
  command: "project-map <command>",
5933
6483
  aliases: ["prm"],
5934
6484
  describe: "Uniform ProjectMap commands",
5935
- builder: (yargs23) => yargs23.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
6485
+ builder: (yargs25) => yargs25.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
5936
6486
  handler: () => {
5937
- yargs18.showHelp();
6487
+ yargs20.showHelp();
5938
6488
  }
5939
6489
  };
5940
6490
 
5941
6491
  // src/commands/redirect/index.ts
5942
- import yargs20 from "yargs";
6492
+ import yargs22 from "yargs";
5943
6493
 
5944
6494
  // src/commands/redirect/commands/redirect.ts
5945
- import yargs19 from "yargs";
6495
+ import yargs21 from "yargs";
5946
6496
 
5947
6497
  // src/commands/redirect/commands/RedirectDefinition/get.ts
5948
6498
  import { UncachedRedirectClient } from "@uniformdev/redirect";
5949
6499
  var RedirectDefinitionGetModule = {
5950
6500
  command: "get <id>",
5951
6501
  describe: "Fetch a redirect",
5952
- builder: (yargs23) => withConfiguration(
6502
+ builder: (yargs25) => withConfiguration(
5953
6503
  withFormatOptions(
5954
6504
  withApiOptions(
5955
6505
  withProjectOptions(
5956
- yargs23.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
6506
+ yargs25.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
5957
6507
  )
5958
6508
  )
5959
6509
  )
@@ -5977,7 +6527,7 @@ var RedirectDefinitionListModule = {
5977
6527
  command: "list",
5978
6528
  describe: "List of redirects",
5979
6529
  aliases: ["ls"],
5980
- builder: (yargs23) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs23)))),
6530
+ builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
5981
6531
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
5982
6532
  const fetch3 = nodeFetchProxy(proxy);
5983
6533
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6043,11 +6593,11 @@ function createRedirectDefinitionEngineDataSource({
6043
6593
  var RedirectDefinitionPullModule = {
6044
6594
  command: "pull <directory>",
6045
6595
  describe: "Pulls all redirects to local files in a directory",
6046
- builder: (yargs23) => withConfiguration(
6596
+ builder: (yargs25) => withConfiguration(
6047
6597
  withApiOptions(
6048
6598
  withProjectOptions(
6049
6599
  withDiffOptions(
6050
- yargs23.positional("directory", {
6600
+ yargs25.positional("directory", {
6051
6601
  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.",
6052
6602
  type: "string"
6053
6603
  }).option("format", {
@@ -6123,11 +6673,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
6123
6673
  var RedirectDefinitionPushModule = {
6124
6674
  command: "push <directory>",
6125
6675
  describe: "Pushes all redirects from files in a directory or package to Uniform",
6126
- builder: (yargs23) => withConfiguration(
6676
+ builder: (yargs25) => withConfiguration(
6127
6677
  withApiOptions(
6128
6678
  withProjectOptions(
6129
6679
  withDiffOptions(
6130
- yargs23.positional("directory", {
6680
+ yargs25.positional("directory", {
6131
6681
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
6132
6682
  type: "string"
6133
6683
  }).option("what-if", {
@@ -6191,9 +6741,9 @@ var RedirectDefinitionRemoveModule = {
6191
6741
  command: "remove <id>",
6192
6742
  aliases: ["delete", "rm"],
6193
6743
  describe: "Delete a redirect",
6194
- builder: (yargs23) => withConfiguration(
6744
+ builder: (yargs25) => withConfiguration(
6195
6745
  withApiOptions(
6196
- withProjectOptions(yargs23.positional("id", { demandOption: true, describe: " UUID to delete" }))
6746
+ withProjectOptions(yargs25.positional("id", { demandOption: true, describe: " UUID to delete" }))
6197
6747
  )
6198
6748
  ),
6199
6749
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -6209,10 +6759,10 @@ var RedirectDefinitionUpdateModule = {
6209
6759
  command: "update <filename>",
6210
6760
  aliases: ["put"],
6211
6761
  describe: "Insert or update a redirect",
6212
- builder: (yargs23) => withConfiguration(
6762
+ builder: (yargs25) => withConfiguration(
6213
6763
  withApiOptions(
6214
6764
  withProjectOptions(
6215
- yargs23.positional("filename", { demandOption: true, describe: "Redirect file to put" })
6765
+ yargs25.positional("filename", { demandOption: true, describe: "Redirect file to put" })
6216
6766
  )
6217
6767
  )
6218
6768
  ),
@@ -6228,9 +6778,9 @@ var RedirectDefinitionUpdateModule = {
6228
6778
  var RedirectDefinitionModule = {
6229
6779
  command: "definition <command>",
6230
6780
  describe: "Commands for Redirect Definitions",
6231
- builder: (yargs23) => yargs23.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
6781
+ builder: (yargs25) => yargs25.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
6232
6782
  handler: () => {
6233
- yargs19.help();
6783
+ yargs21.help();
6234
6784
  }
6235
6785
  };
6236
6786
 
@@ -6239,24 +6789,24 @@ var RedirectCommand = {
6239
6789
  command: "redirect <command>",
6240
6790
  aliases: ["red"],
6241
6791
  describe: "Uniform Redirect commands",
6242
- builder: (yargs23) => yargs23.command(RedirectDefinitionModule).demandCommand(),
6792
+ builder: (yargs25) => yargs25.command(RedirectDefinitionModule).demandCommand(),
6243
6793
  handler: () => {
6244
- yargs20.showHelp();
6794
+ yargs22.showHelp();
6245
6795
  }
6246
6796
  };
6247
6797
 
6248
6798
  // src/commands/sync/index.ts
6249
- import yargs21 from "yargs";
6799
+ import yargs23 from "yargs";
6250
6800
 
6251
6801
  // src/commands/sync/commands/pull.ts
6252
6802
  var SyncPullModule = {
6253
6803
  command: "pull",
6254
6804
  describe: "Pulls whole project to local files in a directory",
6255
- builder: (yargs23) => withConfiguration(
6805
+ builder: (yargs25) => withConfiguration(
6256
6806
  withApiOptions(
6257
6807
  withProjectOptions(
6258
6808
  withDiffOptions(
6259
- yargs23.option("what-if", {
6809
+ yargs25.option("what-if", {
6260
6810
  alias: ["w"],
6261
6811
  describe: "What-if mode reports what would be done but changes no files",
6262
6812
  default: false,
@@ -6327,11 +6877,11 @@ var getFormat = (entityType, config2) => {
6327
6877
  var SyncPushModule = {
6328
6878
  command: "push",
6329
6879
  describe: "Pushes whole project data from files in a directory or package to Uniform",
6330
- builder: (yargs23) => withConfiguration(
6880
+ builder: (yargs25) => withConfiguration(
6331
6881
  withApiOptions(
6332
6882
  withProjectOptions(
6333
6883
  withDiffOptions(
6334
- yargs23.option("what-if", {
6884
+ yargs25.option("what-if", {
6335
6885
  alias: ["w"],
6336
6886
  describe: "What-if mode reports what would be done but changes nothing",
6337
6887
  default: false,
@@ -6409,9 +6959,9 @@ var getFormat2 = (entityType, config2) => {
6409
6959
  var SyncCommand = {
6410
6960
  command: "sync <command>",
6411
6961
  describe: "Uniform Sync commands",
6412
- builder: (yargs23) => yargs23.command(SyncPullModule).command(SyncPushModule).demandCommand(),
6962
+ builder: (yargs25) => yargs25.command(SyncPullModule).command(SyncPushModule).demandCommand(),
6413
6963
  handler: () => {
6414
- yargs21.showHelp();
6964
+ yargs23.showHelp();
6415
6965
  }
6416
6966
  };
6417
6967
 
@@ -6527,7 +7077,7 @@ First found was: v${firstVersion}`;
6527
7077
 
6528
7078
  // src/index.ts
6529
7079
  dotenv.config();
6530
- var yarggery = yargs22(hideBin(process.argv));
7080
+ var yarggery = yargs24(hideBin(process.argv));
6531
7081
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
6532
7082
  var configuration = loadConfig(inlineConfigurationFilePath || null);
6533
7083
  yarggery.option("verbose", {