@uniformdev/cli 19.61.1 → 19.62.1-alpha.9

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 +540 -248
  2. package/package.json +8 -7
package/dist/index.mjs CHANGED
@@ -9,11 +9,11 @@ var __dirname = /* @__PURE__ */ getDirname();
9
9
 
10
10
  // src/index.ts
11
11
  import * as dotenv from "dotenv";
12
- import yargs24 from "yargs";
12
+ import yargs25 from "yargs";
13
13
  import { hideBin } from "yargs/helpers";
14
14
 
15
15
  // src/commands/canvas/index.ts
16
- import yargs8 from "yargs";
16
+ import yargs9 from "yargs";
17
17
 
18
18
  // src/commands/canvas/commands/category.ts
19
19
  import yargs from "yargs";
@@ -126,14 +126,14 @@ import httpsProxyAgent from "https-proxy-agent";
126
126
  import unfetch from "isomorphic-unfetch";
127
127
  import { dump, load } from "js-yaml";
128
128
  import { dirname, extname, isAbsolute, resolve, sep } from "path";
129
- function withConfiguration(yargs25) {
130
- return yargs25.option("serialization", {
129
+ function withConfiguration(yargs26) {
130
+ return yargs26.option("serialization", {
131
131
  skipValidation: true,
132
132
  hidden: true
133
133
  });
134
134
  }
135
- function withApiOptions(yargs25) {
136
- return yargs25.option("apiKey", {
135
+ function withApiOptions(yargs26) {
136
+ return yargs26.option("apiKey", {
137
137
  describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
138
138
  default: process.env.UNIFORM_CLI_API_KEY ?? // deprecated
139
139
  process.env.CANVAS_CLI_API_KEY ?? // deprecated
@@ -172,8 +172,8 @@ function nodeFetchProxy(proxy) {
172
172
  };
173
173
  return wrappedFetch;
174
174
  }
175
- function withProjectOptions(yargs25) {
176
- return yargs25.option("project", {
175
+ function withProjectOptions(yargs26) {
176
+ return yargs26.option("project", {
177
177
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
178
178
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? // deprecated
179
179
  process.env.CANVAS_CLI_PROJECT_ID ?? // deprecated
@@ -183,8 +183,8 @@ function withProjectOptions(yargs25) {
183
183
  alias: ["p"]
184
184
  });
185
185
  }
186
- function withFormatOptions(yargs25) {
187
- return yargs25.option("format", {
186
+ function withFormatOptions(yargs26) {
187
+ return yargs26.option("format", {
188
188
  alias: ["f"],
189
189
  describe: "Output format",
190
190
  default: "yaml",
@@ -196,8 +196,8 @@ function withFormatOptions(yargs25) {
196
196
  type: "string"
197
197
  });
198
198
  }
199
- function withDiffOptions(yargs25) {
200
- return yargs25.option("diff", {
199
+ function withDiffOptions(yargs26) {
200
+ return yargs26.option("diff", {
201
201
  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.",
202
202
  default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
203
203
  type: "string",
@@ -617,11 +617,11 @@ function createPublishStatusSyncEngineConsoleLogger(options) {
617
617
  var CategoryGetModule = {
618
618
  command: "get <id>",
619
619
  describe: "Fetch a category",
620
- builder: (yargs25) => withConfiguration(
620
+ builder: (yargs26) => withConfiguration(
621
621
  withFormatOptions(
622
622
  withApiOptions(
623
623
  withProjectOptions(
624
- yargs25.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
624
+ yargs26.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
625
625
  )
626
626
  )
627
627
  )
@@ -646,7 +646,7 @@ var CategoryListModule = {
646
646
  command: "list",
647
647
  describe: "List categories",
648
648
  aliases: ["ls"],
649
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25.options({}))))),
649
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26.options({}))))),
650
650
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
651
651
  const fetch3 = nodeFetchProxy(proxy);
652
652
  const client = new UncachedCategoryClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -703,11 +703,11 @@ function writeCanvasPackage(filename, packageContents) {
703
703
  var CategoryPullModule = {
704
704
  command: "pull <directory>",
705
705
  describe: "Pulls all categories to local files in a directory",
706
- builder: (yargs25) => withConfiguration(
706
+ builder: (yargs26) => withConfiguration(
707
707
  withApiOptions(
708
708
  withProjectOptions(
709
709
  withDiffOptions(
710
- yargs25.positional("directory", {
710
+ yargs26.positional("directory", {
711
711
  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.",
712
712
  type: "string"
713
713
  }).option("format", {
@@ -783,11 +783,11 @@ import { UncachedCategoryClient as UncachedCategoryClient4 } from "@uniformdev/c
783
783
  var CategoryPushModule = {
784
784
  command: "push <directory>",
785
785
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
786
- builder: (yargs25) => withConfiguration(
786
+ builder: (yargs26) => withConfiguration(
787
787
  withApiOptions(
788
788
  withProjectOptions(
789
789
  withDiffOptions(
790
- yargs25.positional("directory", {
790
+ yargs26.positional("directory", {
791
791
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
792
792
  type: "string"
793
793
  }).option("what-if", {
@@ -851,10 +851,10 @@ var CategoryRemoveModule = {
851
851
  command: "remove <id>",
852
852
  aliases: ["delete", "rm"],
853
853
  describe: "Delete a category",
854
- builder: (yargs25) => withConfiguration(
854
+ builder: (yargs26) => withConfiguration(
855
855
  withApiOptions(
856
856
  withProjectOptions(
857
- yargs25.positional("id", { demandOption: true, describe: "Category UUID to delete" })
857
+ yargs26.positional("id", { demandOption: true, describe: "Category UUID to delete" })
858
858
  )
859
859
  )
860
860
  ),
@@ -871,10 +871,10 @@ var CategoryUpdateModule = {
871
871
  command: "update <filename>",
872
872
  aliases: ["put"],
873
873
  describe: "Insert or update a category",
874
- builder: (yargs25) => withConfiguration(
874
+ builder: (yargs26) => withConfiguration(
875
875
  withApiOptions(
876
876
  withProjectOptions(
877
- yargs25.positional("filename", { demandOption: true, describe: "Category file to put" })
877
+ yargs26.positional("filename", { demandOption: true, describe: "Category file to put" })
878
878
  )
879
879
  )
880
880
  ),
@@ -891,7 +891,7 @@ var CategoryModule = {
891
891
  command: "category <command>",
892
892
  aliases: ["cat"],
893
893
  describe: "Commands for Canvas categories",
894
- builder: (yargs25) => yargs25.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
894
+ builder: (yargs26) => yargs26.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
895
895
  handler: () => {
896
896
  yargs.help();
897
897
  }
@@ -912,11 +912,11 @@ var selectSchemaUrl = () => "/schemas/json-schema/component-definition/v1.json";
912
912
  var ComponentGetModule = {
913
913
  command: "get <id>",
914
914
  describe: "Fetch a component definition",
915
- builder: (yargs25) => withConfiguration(
915
+ builder: (yargs26) => withConfiguration(
916
916
  withFormatOptions(
917
917
  withApiOptions(
918
918
  withProjectOptions(
919
- yargs25.positional("id", {
919
+ yargs26.positional("id", {
920
920
  demandOption: true,
921
921
  describe: "Component definition public ID to fetch"
922
922
  })
@@ -950,11 +950,11 @@ var ComponentListModule = {
950
950
  command: "list",
951
951
  describe: "List component definitions",
952
952
  aliases: ["ls"],
953
- builder: (yargs25) => withConfiguration(
953
+ builder: (yargs26) => withConfiguration(
954
954
  withFormatOptions(
955
955
  withApiOptions(
956
956
  withProjectOptions(
957
- yargs25.options({
957
+ yargs26.options({
958
958
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
959
959
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
960
960
  })
@@ -1009,11 +1009,11 @@ function createComponentDefinitionEngineDataSource({
1009
1009
  var ComponentPullModule = {
1010
1010
  command: "pull <directory>",
1011
1011
  describe: "Pulls all component definitions to local files in a directory",
1012
- builder: (yargs25) => withConfiguration(
1012
+ builder: (yargs26) => withConfiguration(
1013
1013
  withApiOptions(
1014
1014
  withProjectOptions(
1015
1015
  withDiffOptions(
1016
- yargs25.positional("directory", {
1016
+ yargs26.positional("directory", {
1017
1017
  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.",
1018
1018
  type: "string"
1019
1019
  }).option("format", {
@@ -1090,11 +1090,11 @@ import { UncachedCanvasClient as UncachedCanvasClient4 } from "@uniformdev/canva
1090
1090
  var ComponentPushModule = {
1091
1091
  command: "push <directory>",
1092
1092
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
1093
- builder: (yargs25) => withConfiguration(
1093
+ builder: (yargs26) => withConfiguration(
1094
1094
  withApiOptions(
1095
1095
  withProjectOptions(
1096
1096
  withDiffOptions(
1097
- yargs25.positional("directory", {
1097
+ yargs26.positional("directory", {
1098
1098
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
1099
1099
  type: "string"
1100
1100
  }).option("what-if", {
@@ -1159,10 +1159,10 @@ var ComponentRemoveModule = {
1159
1159
  command: "remove <id>",
1160
1160
  aliases: ["delete", "rm"],
1161
1161
  describe: "Delete a component definition",
1162
- builder: (yargs25) => withConfiguration(
1162
+ builder: (yargs26) => withConfiguration(
1163
1163
  withApiOptions(
1164
1164
  withProjectOptions(
1165
- yargs25.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1165
+ yargs26.positional("id", { demandOption: true, describe: "Component definition public ID to delete" })
1166
1166
  )
1167
1167
  )
1168
1168
  ),
@@ -1179,10 +1179,10 @@ var ComponentUpdateModule = {
1179
1179
  command: "update <filename>",
1180
1180
  aliases: ["put"],
1181
1181
  describe: "Insert or update a component definition",
1182
- builder: (yargs25) => withConfiguration(
1182
+ builder: (yargs26) => withConfiguration(
1183
1183
  withApiOptions(
1184
1184
  withProjectOptions(
1185
- yargs25.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1185
+ yargs26.positional("filename", { demandOption: true, describe: "Component definition file to put" })
1186
1186
  )
1187
1187
  )
1188
1188
  ),
@@ -1199,7 +1199,7 @@ var ComponentModule = {
1199
1199
  command: "component <command>",
1200
1200
  aliases: ["def"],
1201
1201
  describe: "Commands for Canvas component definitions",
1202
- builder: (yargs25) => yargs25.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1202
+ builder: (yargs26) => yargs26.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
1203
1203
  handler: () => {
1204
1204
  yargs2.help();
1205
1205
  }
@@ -1224,8 +1224,8 @@ function prepCompositionForDisk(composition) {
1224
1224
  delete prepped.state;
1225
1225
  return prepped;
1226
1226
  }
1227
- function withStateOptions(yargs25) {
1228
- return yargs25.option("state", {
1227
+ function withStateOptions(yargs26) {
1228
+ return yargs26.option("state", {
1229
1229
  type: "string",
1230
1230
  describe: `Composition state to fetch.`,
1231
1231
  choices: ["preview", "published"],
@@ -1250,12 +1250,12 @@ function convertCompositionState(state) {
1250
1250
  var CompositionGetModule = {
1251
1251
  command: "get <id>",
1252
1252
  describe: "Fetch a composition",
1253
- builder: (yargs25) => withFormatOptions(
1253
+ builder: (yargs26) => withFormatOptions(
1254
1254
  withConfiguration(
1255
1255
  withApiOptions(
1256
1256
  withProjectOptions(
1257
1257
  withStateOptions(
1258
- yargs25.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1258
+ yargs26.positional("id", { demandOption: true, describe: "Composition/pattern public ID to fetch" }).option({
1259
1259
  resolvePatterns: {
1260
1260
  type: "boolean",
1261
1261
  default: false,
@@ -1326,12 +1326,12 @@ var CompositionListModule = {
1326
1326
  command: "list",
1327
1327
  describe: "List compositions",
1328
1328
  aliases: ["ls"],
1329
- builder: (yargs25) => withFormatOptions(
1329
+ builder: (yargs26) => withFormatOptions(
1330
1330
  withConfiguration(
1331
1331
  withApiOptions(
1332
1332
  withProjectOptions(
1333
1333
  withStateOptions(
1334
- yargs25.options({
1334
+ yargs26.options({
1335
1335
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
1336
1336
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
1337
1337
  resolvePatterns: {
@@ -1452,11 +1452,11 @@ function createComponentInstanceEngineDataSource({
1452
1452
  var CompositionPublishModule = {
1453
1453
  command: "publish [ids]",
1454
1454
  describe: "Publishes composition(s)",
1455
- builder: (yargs25) => withConfiguration(
1455
+ builder: (yargs26) => withConfiguration(
1456
1456
  withApiOptions(
1457
1457
  withProjectOptions(
1458
1458
  withDiffOptions(
1459
- yargs25.positional("ids", {
1459
+ yargs26.positional("ids", {
1460
1460
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
1461
1461
  type: "string"
1462
1462
  }).option("all", {
@@ -1705,12 +1705,12 @@ var swapOutUniformFileUrlsForTargetProject = async (object, options) => {
1705
1705
  var CompositionPullModule = {
1706
1706
  command: "pull <directory>",
1707
1707
  describe: "Pulls all compositions to local files in a directory",
1708
- builder: (yargs25) => withConfiguration(
1708
+ builder: (yargs26) => withConfiguration(
1709
1709
  withApiOptions(
1710
1710
  withProjectOptions(
1711
1711
  withStateOptions(
1712
1712
  withDiffOptions(
1713
- yargs25.positional("directory", {
1713
+ yargs26.positional("directory", {
1714
1714
  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.",
1715
1715
  type: "string"
1716
1716
  }).option("format", {
@@ -1805,12 +1805,12 @@ import { FileClient as FileClient2 } from "@uniformdev/files";
1805
1805
  var CompositionPushModule = {
1806
1806
  command: "push <directory>",
1807
1807
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
1808
- builder: (yargs25) => withConfiguration(
1808
+ builder: (yargs26) => withConfiguration(
1809
1809
  withApiOptions(
1810
1810
  withProjectOptions(
1811
1811
  withStateOptions(
1812
1812
  withDiffOptions(
1813
- yargs25.positional("directory", {
1813
+ yargs26.positional("directory", {
1814
1814
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
1815
1815
  type: "string"
1816
1816
  }).option("what-if", {
@@ -1901,10 +1901,10 @@ var CompositionRemoveModule = {
1901
1901
  command: "remove <id>",
1902
1902
  aliases: ["delete", "rm"],
1903
1903
  describe: "Delete a composition",
1904
- builder: (yargs25) => withConfiguration(
1904
+ builder: (yargs26) => withConfiguration(
1905
1905
  withApiOptions(
1906
1906
  withProjectOptions(
1907
- yargs25.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
1907
+ yargs26.positional("id", { demandOption: true, describe: "Composition/pattern public ID to delete" })
1908
1908
  )
1909
1909
  )
1910
1910
  ),
@@ -1921,10 +1921,10 @@ import { diffJson as diffJson2 } from "diff";
1921
1921
  var CompositionUnpublishModule = {
1922
1922
  command: "unpublish [ids]",
1923
1923
  describe: "Unpublish a composition(s)",
1924
- builder: (yargs25) => withConfiguration(
1924
+ builder: (yargs26) => withConfiguration(
1925
1925
  withApiOptions(
1926
1926
  withProjectOptions(
1927
- yargs25.positional("ids", {
1927
+ yargs26.positional("ids", {
1928
1928
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
1929
1929
  type: "string"
1930
1930
  }).option("all", {
@@ -2018,11 +2018,11 @@ var CompositionUpdateModule = {
2018
2018
  command: "update <filename>",
2019
2019
  aliases: ["put"],
2020
2020
  describe: "Insert or update a composition",
2021
- builder: (yargs25) => withConfiguration(
2021
+ builder: (yargs26) => withConfiguration(
2022
2022
  withApiOptions(
2023
2023
  withProjectOptions(
2024
2024
  withStateOptions(
2025
- yargs25.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2025
+ yargs26.positional("filename", { demandOption: true, describe: "Composition/pattern file to put" })
2026
2026
  )
2027
2027
  )
2028
2028
  )
@@ -2040,7 +2040,7 @@ var CompositionModule = {
2040
2040
  command: "composition <command>",
2041
2041
  describe: "Commands for Canvas compositions",
2042
2042
  aliases: ["comp"],
2043
- builder: (yargs25) => yargs25.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2043
+ builder: (yargs26) => yargs26.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
2044
2044
  handler: () => {
2045
2045
  yargs3.help();
2046
2046
  }
@@ -2054,12 +2054,12 @@ import { ContentClient } from "@uniformdev/canvas";
2054
2054
  var ContentTypeGetModule = {
2055
2055
  command: "get <id>",
2056
2056
  describe: "Get a content type",
2057
- builder: (yargs25) => withConfiguration(
2057
+ builder: (yargs26) => withConfiguration(
2058
2058
  withFormatOptions(
2059
2059
  withApiOptions(
2060
2060
  withProjectOptions(
2061
2061
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2062
- yargs25.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2062
+ yargs26.positional("id", { demandOption: true, describe: "Content type public ID to fetch" })
2063
2063
  )
2064
2064
  )
2065
2065
  )
@@ -2081,7 +2081,7 @@ import { ContentClient as ContentClient2 } from "@uniformdev/canvas";
2081
2081
  var ContentTypeListModule = {
2082
2082
  command: "list",
2083
2083
  describe: "List content types",
2084
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2084
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
2085
2085
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2086
2086
  const fetch3 = nodeFetchProxy(proxy);
2087
2087
  const client = new ContentClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2128,11 +2128,11 @@ function createContentTypeEngineDataSource({
2128
2128
  var ContentTypePullModule = {
2129
2129
  command: "pull <directory>",
2130
2130
  describe: "Pulls all content types to local files in a directory",
2131
- builder: (yargs25) => withConfiguration(
2131
+ builder: (yargs26) => withConfiguration(
2132
2132
  withApiOptions(
2133
2133
  withProjectOptions(
2134
2134
  withDiffOptions(
2135
- yargs25.positional("directory", {
2135
+ yargs26.positional("directory", {
2136
2136
  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.",
2137
2137
  type: "string"
2138
2138
  }).option("format", {
@@ -2214,11 +2214,11 @@ import { ContentClient as ContentClient4 } from "@uniformdev/canvas";
2214
2214
  var ContentTypePushModule = {
2215
2215
  command: "push <directory>",
2216
2216
  describe: "Pushes all content types from files in a directory to Uniform",
2217
- builder: (yargs25) => withConfiguration(
2217
+ builder: (yargs26) => withConfiguration(
2218
2218
  withApiOptions(
2219
2219
  withProjectOptions(
2220
2220
  withDiffOptions(
2221
- yargs25.positional("directory", {
2221
+ yargs26.positional("directory", {
2222
2222
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
2223
2223
  type: "string"
2224
2224
  }).option("what-if", {
@@ -2288,10 +2288,10 @@ var ContentTypeRemoveModule = {
2288
2288
  command: "remove <id>",
2289
2289
  aliases: ["delete", "rm"],
2290
2290
  describe: "Delete a content type",
2291
- builder: (yargs25) => withConfiguration(
2291
+ builder: (yargs26) => withConfiguration(
2292
2292
  withApiOptions(
2293
2293
  withProjectOptions(
2294
- yargs25.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2294
+ yargs26.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
2295
2295
  )
2296
2296
  )
2297
2297
  ),
@@ -2308,10 +2308,10 @@ var ContentTypeUpdateModule = {
2308
2308
  command: "update <filename>",
2309
2309
  aliases: ["put"],
2310
2310
  describe: "Insert or update a content type",
2311
- builder: (yargs25) => withConfiguration(
2311
+ builder: (yargs26) => withConfiguration(
2312
2312
  withApiOptions(
2313
2313
  withProjectOptions(
2314
- yargs25.positional("filename", { demandOption: true, describe: "Content type file to put" })
2314
+ yargs26.positional("filename", { demandOption: true, describe: "Content type file to put" })
2315
2315
  )
2316
2316
  )
2317
2317
  ),
@@ -2328,7 +2328,7 @@ var ContentTypeModule = {
2328
2328
  command: "contenttype <command>",
2329
2329
  aliases: ["ct"],
2330
2330
  describe: "Commands for Content Types",
2331
- builder: (yargs25) => yargs25.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2331
+ builder: (yargs26) => yargs26.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
2332
2332
  handler: () => {
2333
2333
  yargs4.help();
2334
2334
  }
@@ -2343,12 +2343,12 @@ var DataTypeGetModule = {
2343
2343
  command: "get <id>",
2344
2344
  describe: "Get a data type",
2345
2345
  aliases: ["ls"],
2346
- builder: (yargs25) => withConfiguration(
2346
+ builder: (yargs26) => withConfiguration(
2347
2347
  withFormatOptions(
2348
2348
  withApiOptions(
2349
2349
  withProjectOptions(
2350
2350
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2351
- yargs25.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2351
+ yargs26.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
2352
2352
  )
2353
2353
  )
2354
2354
  )
@@ -2371,7 +2371,7 @@ var DataTypeListModule = {
2371
2371
  command: "list",
2372
2372
  describe: "List data types",
2373
2373
  aliases: ["ls"],
2374
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2374
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
2375
2375
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2376
2376
  const fetch3 = nodeFetchProxy(proxy);
2377
2377
  const client = new DataTypeClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2424,11 +2424,11 @@ function createDataTypeEngineDataSource({
2424
2424
  var DataTypePullModule = {
2425
2425
  command: "pull <directory>",
2426
2426
  describe: "Pulls all data types to local files in a directory",
2427
- builder: (yargs25) => withConfiguration(
2427
+ builder: (yargs26) => withConfiguration(
2428
2428
  withApiOptions(
2429
2429
  withProjectOptions(
2430
2430
  withDiffOptions(
2431
- yargs25.positional("directory", {
2431
+ yargs26.positional("directory", {
2432
2432
  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.",
2433
2433
  type: "string"
2434
2434
  }).option("format", {
@@ -2510,11 +2510,11 @@ import { DataTypeClient as DataTypeClient4 } from "@uniformdev/canvas";
2510
2510
  var DataTypePushModule = {
2511
2511
  command: "push <directory>",
2512
2512
  describe: "Pushes all data types from files in a directory to Uniform",
2513
- builder: (yargs25) => withConfiguration(
2513
+ builder: (yargs26) => withConfiguration(
2514
2514
  withApiOptions(
2515
2515
  withProjectOptions(
2516
2516
  withDiffOptions(
2517
- yargs25.positional("directory", {
2517
+ yargs26.positional("directory", {
2518
2518
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
2519
2519
  type: "string"
2520
2520
  }).option("what-if", {
@@ -2584,10 +2584,10 @@ var DataTypeRemoveModule = {
2584
2584
  command: "remove <id>",
2585
2585
  aliases: ["delete", "rm"],
2586
2586
  describe: "Delete a data type",
2587
- builder: (yargs25) => withConfiguration(
2587
+ builder: (yargs26) => withConfiguration(
2588
2588
  withApiOptions(
2589
2589
  withProjectOptions(
2590
- yargs25.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
2590
+ yargs26.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
2591
2591
  )
2592
2592
  )
2593
2593
  ),
@@ -2604,10 +2604,10 @@ var DataTypeUpdateModule = {
2604
2604
  command: "update <filename>",
2605
2605
  aliases: ["put"],
2606
2606
  describe: "Insert or update a data type",
2607
- builder: (yargs25) => withConfiguration(
2607
+ builder: (yargs26) => withConfiguration(
2608
2608
  withApiOptions(
2609
2609
  withProjectOptions(
2610
- yargs25.positional("filename", { demandOption: true, describe: "Data type file to put" })
2610
+ yargs26.positional("filename", { demandOption: true, describe: "Data type file to put" })
2611
2611
  )
2612
2612
  )
2613
2613
  ),
@@ -2624,7 +2624,7 @@ var DataTypeModule = {
2624
2624
  command: "datatype <command>",
2625
2625
  aliases: ["dt"],
2626
2626
  describe: "Commands for Data Type definitions",
2627
- builder: (yargs25) => yargs25.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
2627
+ builder: (yargs26) => yargs26.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
2628
2628
  handler: () => {
2629
2629
  yargs5.help();
2630
2630
  }
@@ -2638,12 +2638,12 @@ import { ContentClient as ContentClient7 } from "@uniformdev/canvas";
2638
2638
  var EntryGetModule = {
2639
2639
  command: "get <id>",
2640
2640
  describe: "Get an entry",
2641
- builder: (yargs25) => withConfiguration(
2641
+ builder: (yargs26) => withConfiguration(
2642
2642
  withFormatOptions(
2643
2643
  withApiOptions(
2644
2644
  withProjectOptions(
2645
2645
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2646
- yargs25.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
2646
+ yargs26.positional("id", { demandOption: true, describe: "Entry public ID to fetch" })
2647
2647
  )
2648
2648
  )
2649
2649
  )
@@ -2664,7 +2664,7 @@ import { ContentClient as ContentClient8 } from "@uniformdev/canvas";
2664
2664
  var EntryListModule = {
2665
2665
  command: "list",
2666
2666
  describe: "List entries",
2667
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
2667
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
2668
2668
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
2669
2669
  const fetch3 = nodeFetchProxy(proxy);
2670
2670
  const client = new ContentClient8({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
@@ -2722,12 +2722,12 @@ function createEntryEngineDataSource({
2722
2722
  var EntryPullModule = {
2723
2723
  command: "pull <directory>",
2724
2724
  describe: "Pulls all entries to local files in a directory",
2725
- builder: (yargs25) => withConfiguration(
2725
+ builder: (yargs26) => withConfiguration(
2726
2726
  withApiOptions(
2727
2727
  withProjectOptions(
2728
2728
  withStateOptions(
2729
2729
  withDiffOptions(
2730
- yargs25.positional("directory", {
2730
+ yargs26.positional("directory", {
2731
2731
  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.",
2732
2732
  type: "string"
2733
2733
  }).option("format", {
@@ -2811,12 +2811,12 @@ import { ContentClient as ContentClient11 } from "@uniformdev/canvas";
2811
2811
  var EntryPushModule = {
2812
2812
  command: "push <directory>",
2813
2813
  describe: "Pushes all entries from files in a directory to Uniform",
2814
- builder: (yargs25) => withConfiguration(
2814
+ builder: (yargs26) => withConfiguration(
2815
2815
  withApiOptions(
2816
2816
  withProjectOptions(
2817
2817
  withStateOptions(
2818
2818
  withDiffOptions(
2819
- yargs25.positional("directory", {
2819
+ yargs26.positional("directory", {
2820
2820
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
2821
2821
  type: "string"
2822
2822
  }).option("what-if", {
@@ -2888,10 +2888,10 @@ var EntryRemoveModule = {
2888
2888
  command: "remove <id>",
2889
2889
  aliases: ["delete", "rm"],
2890
2890
  describe: "Delete an entry",
2891
- builder: (yargs25) => withConfiguration(
2891
+ builder: (yargs26) => withConfiguration(
2892
2892
  withApiOptions(
2893
2893
  withProjectOptions(
2894
- yargs25.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
2894
+ yargs26.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
2895
2895
  )
2896
2896
  )
2897
2897
  ),
@@ -2908,10 +2908,10 @@ var EntryUpdateModule = {
2908
2908
  command: "update <filename>",
2909
2909
  aliases: ["put"],
2910
2910
  describe: "Insert or update an entry",
2911
- builder: (yargs25) => withConfiguration(
2911
+ builder: (yargs26) => withConfiguration(
2912
2912
  withApiOptions(
2913
2913
  withProjectOptions(
2914
- yargs25.positional("filename", { demandOption: true, describe: "Entry file to put" })
2914
+ yargs26.positional("filename", { demandOption: true, describe: "Entry file to put" })
2915
2915
  )
2916
2916
  )
2917
2917
  ),
@@ -2927,7 +2927,7 @@ var EntryUpdateModule = {
2927
2927
  var EntryModule = {
2928
2928
  command: "entry <command>",
2929
2929
  describe: "Commands for Entries",
2930
- builder: (yargs25) => yargs25.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).demandCommand(),
2930
+ builder: (yargs26) => yargs26.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).demandCommand(),
2931
2931
  handler: () => {
2932
2932
  yargs6.help();
2933
2933
  }
@@ -2946,12 +2946,12 @@ var PatternGetModule = {
2946
2946
  var PatternListModule = {
2947
2947
  ...CompositionListModule,
2948
2948
  describe: "List patterns",
2949
- builder: (yargs25) => withFormatOptions(
2949
+ builder: (yargs26) => withFormatOptions(
2950
2950
  withConfiguration(
2951
2951
  withApiOptions(
2952
2952
  withProjectOptions(
2953
2953
  withStateOptions(
2954
- yargs25.options({
2954
+ yargs26.options({
2955
2955
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
2956
2956
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
2957
2957
  resolvePatterns: {
@@ -2989,11 +2989,11 @@ var PatternListModule = {
2989
2989
  var PatternPublishModule = {
2990
2990
  ...CompositionPublishModule,
2991
2991
  describe: "Publishes pattern(s)",
2992
- builder: (yargs25) => withConfiguration(
2992
+ builder: (yargs26) => withConfiguration(
2993
2993
  withApiOptions(
2994
2994
  withProjectOptions(
2995
2995
  withDiffOptions(
2996
- yargs25.positional("ids", {
2996
+ yargs26.positional("ids", {
2997
2997
  describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
2998
2998
  type: "string"
2999
2999
  }).option("all", {
@@ -3031,12 +3031,12 @@ var PatternPublishModule = {
3031
3031
  var PatternPullModule = {
3032
3032
  ...CompositionPullModule,
3033
3033
  describe: "Pulls all patterns to local files in a directory",
3034
- builder: (yargs25) => withConfiguration(
3034
+ builder: (yargs26) => withConfiguration(
3035
3035
  withApiOptions(
3036
3036
  withProjectOptions(
3037
3037
  withStateOptions(
3038
3038
  withDiffOptions(
3039
- yargs25.positional("directory", {
3039
+ yargs26.positional("directory", {
3040
3040
  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.",
3041
3041
  type: "string"
3042
3042
  }).option("format", {
@@ -3074,12 +3074,12 @@ var PatternPullModule = {
3074
3074
  var PatternPushModule = {
3075
3075
  ...CompositionPushModule,
3076
3076
  describe: "Pushes all patterns from files in a directory to Uniform Canvas",
3077
- builder: (yargs25) => withConfiguration(
3077
+ builder: (yargs26) => withConfiguration(
3078
3078
  withApiOptions(
3079
3079
  withProjectOptions(
3080
3080
  withStateOptions(
3081
3081
  withDiffOptions(
3082
- yargs25.positional("directory", {
3082
+ yargs26.positional("directory", {
3083
3083
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
3084
3084
  type: "string"
3085
3085
  }).option("what-if", {
@@ -3117,10 +3117,10 @@ var PatternRemoveModule = {
3117
3117
  var PatternUnpublishModule = {
3118
3118
  command: "unpublish [ids]",
3119
3119
  describe: "Unpublish a pattern(s)",
3120
- builder: (yargs25) => withConfiguration(
3120
+ builder: (yargs26) => withConfiguration(
3121
3121
  withApiOptions(
3122
3122
  withProjectOptions(
3123
- yargs25.positional("ids", {
3123
+ yargs26.positional("ids", {
3124
3124
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
3125
3125
  type: "string"
3126
3126
  }).option("all", {
@@ -3159,39 +3159,328 @@ var PatternUpdateModule = {
3159
3159
  var PatternModule = {
3160
3160
  command: "pattern <command>",
3161
3161
  describe: "Commands for Canvas patterns",
3162
- builder: (yargs25) => yargs25.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
3162
+ builder: (yargs26) => yargs26.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
3163
3163
  handler: () => {
3164
3164
  yargs7.help();
3165
3165
  }
3166
3166
  };
3167
3167
 
3168
+ // src/commands/canvas/commands/prompts.ts
3169
+ import yargs8 from "yargs";
3170
+
3171
+ // src/commands/canvas/commands/prompts/get.ts
3172
+ import { PromptClient } from "@uniformdev/canvas";
3173
+ var PromptGetModule = {
3174
+ command: "get <id>",
3175
+ describe: "Get a prompt",
3176
+ builder: (yargs26) => withConfiguration(
3177
+ withFormatOptions(
3178
+ withApiOptions(
3179
+ withProjectOptions(
3180
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3181
+ yargs26.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
3182
+ )
3183
+ )
3184
+ )
3185
+ ),
3186
+ handler: async ({ apiHost, apiKey, proxy, id, format, filename, project: projectId }) => {
3187
+ const fetch3 = nodeFetchProxy(proxy);
3188
+ const client = new PromptClient({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3189
+ const res = await client.get({ promptId: id });
3190
+ if (!res.result) {
3191
+ throw new Error(`Prompt with ID ${id} not found`);
3192
+ }
3193
+ emitWithFormat(res.result, format, filename);
3194
+ }
3195
+ };
3196
+
3197
+ // src/commands/canvas/commands/prompts/list.ts
3198
+ import { PromptClient as PromptClient2 } from "@uniformdev/canvas";
3199
+ var PromptListModule = {
3200
+ command: "list",
3201
+ describe: "List prompts",
3202
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
3203
+ handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3204
+ const fetch3 = nodeFetchProxy(proxy);
3205
+ const client = new PromptClient2({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3206
+ const res = await client.getList();
3207
+ emitWithFormat(res.results, format, filename);
3208
+ }
3209
+ };
3210
+
3211
+ // src/commands/canvas/commands/prompts/pull.ts
3212
+ import { PromptClient as PromptClient3 } from "@uniformdev/canvas";
3213
+
3214
+ // src/commands/canvas/commands/prompts/_util.ts
3215
+ var selectPromptIdentifier = (e) => e.id;
3216
+ var selectPromptDisplayName = (e) => `${e.promptName ?? "Untitled"} (pid: ${e.id})`;
3217
+
3218
+ // src/commands/canvas/promptEngineDataSource.ts
3219
+ function createPromptEngineDataSource({
3220
+ client
3221
+ }) {
3222
+ async function* getObjects() {
3223
+ const { results: prompts } = await client.getList();
3224
+ for await (const prompt of prompts) {
3225
+ const result = {
3226
+ id: selectPromptIdentifier(prompt),
3227
+ displayName: selectPromptDisplayName(prompt),
3228
+ providerId: prompt.id,
3229
+ object: prompt
3230
+ };
3231
+ yield result;
3232
+ }
3233
+ }
3234
+ return {
3235
+ objects: getObjects(),
3236
+ deleteObject: async (providerId) => {
3237
+ await client.remove({ promptId: providerId });
3238
+ },
3239
+ writeObject: async ({ object }) => {
3240
+ await client.upsert({ data: object });
3241
+ }
3242
+ };
3243
+ }
3244
+
3245
+ // src/commands/canvas/commands/prompts/pull.ts
3246
+ var PromptPullModule = {
3247
+ command: "pull <directory>",
3248
+ describe: "Pulls all entries to local files in a directory",
3249
+ builder: (yargs26) => withConfiguration(
3250
+ withApiOptions(
3251
+ withProjectOptions(
3252
+ withStateOptions(
3253
+ withDiffOptions(
3254
+ yargs26.positional("directory", {
3255
+ 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.",
3256
+ type: "string"
3257
+ }).option("format", {
3258
+ alias: ["f"],
3259
+ describe: "Output format",
3260
+ default: "yaml",
3261
+ choices: ["yaml", "json"],
3262
+ type: "string"
3263
+ }).option("what-if", {
3264
+ alias: ["w"],
3265
+ describe: "What-if mode reports what would be done but changes no files",
3266
+ default: false,
3267
+ type: "boolean"
3268
+ }).option("mode", {
3269
+ alias: ["m"],
3270
+ 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',
3271
+ choices: ["create", "createOrUpdate", "mirror"],
3272
+ default: "mirror",
3273
+ type: "string"
3274
+ })
3275
+ )
3276
+ )
3277
+ )
3278
+ )
3279
+ ),
3280
+ handler: async ({
3281
+ apiHost,
3282
+ apiKey,
3283
+ proxy,
3284
+ directory,
3285
+ format,
3286
+ mode,
3287
+ whatIf,
3288
+ project: projectId,
3289
+ diff: diffMode
3290
+ }) => {
3291
+ const fetch3 = nodeFetchProxy(proxy);
3292
+ const client = new PromptClient3({
3293
+ apiKey,
3294
+ apiHost,
3295
+ fetch: fetch3,
3296
+ projectId,
3297
+ bypassCache: true
3298
+ });
3299
+ const source = createPromptEngineDataSource({ client });
3300
+ let target;
3301
+ const isPackage = isPathAPackageFile(directory);
3302
+ if (isPackage) {
3303
+ const packageContents = readCanvasPackage(directory, false);
3304
+ target = await createArraySyncEngineDataSource({
3305
+ objects: packageContents.prompts ?? [],
3306
+ selectIdentifier: selectPromptIdentifier,
3307
+ selectDisplayName: selectPromptDisplayName,
3308
+ onSyncComplete: async (_, synced) => {
3309
+ packageContents.prompts = synced;
3310
+ writeCanvasPackage(directory, packageContents);
3311
+ }
3312
+ });
3313
+ } else {
3314
+ target = await createFileSyncEngineDataSource({
3315
+ directory,
3316
+ selectIdentifier: selectPromptIdentifier,
3317
+ selectDisplayName: selectPromptDisplayName,
3318
+ format
3319
+ });
3320
+ }
3321
+ await syncEngine({
3322
+ source,
3323
+ target,
3324
+ mode,
3325
+ whatIf,
3326
+ allowEmptySource: true,
3327
+ log: createSyncEngineConsoleLogger({ diffMode })
3328
+ });
3329
+ }
3330
+ };
3331
+
3332
+ // src/commands/canvas/commands/prompts/push.ts
3333
+ import { PromptClient as PromptClient4 } from "@uniformdev/canvas";
3334
+ var PromptPushModule = {
3335
+ command: "push <directory>",
3336
+ describe: "Pushes all prompts from files in a directory to Uniform",
3337
+ builder: (yargs26) => withConfiguration(
3338
+ withApiOptions(
3339
+ withProjectOptions(
3340
+ withStateOptions(
3341
+ withDiffOptions(
3342
+ yargs26.positional("directory", {
3343
+ describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
3344
+ type: "string"
3345
+ }).option("what-if", {
3346
+ alias: ["w"],
3347
+ describe: "What-if mode reports what would be done but changes nothing",
3348
+ default: false,
3349
+ type: "boolean"
3350
+ }).option("mode", {
3351
+ alias: ["m"],
3352
+ 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',
3353
+ choices: ["create", "createOrUpdate", "mirror"],
3354
+ default: "mirror",
3355
+ type: "string"
3356
+ })
3357
+ )
3358
+ )
3359
+ )
3360
+ )
3361
+ ),
3362
+ handler: async ({
3363
+ apiHost,
3364
+ apiKey,
3365
+ proxy,
3366
+ directory,
3367
+ mode,
3368
+ whatIf,
3369
+ project: projectId,
3370
+ diff: diffMode
3371
+ }) => {
3372
+ const fetch3 = nodeFetchProxy(proxy);
3373
+ const client = new PromptClient4({
3374
+ apiKey,
3375
+ apiHost,
3376
+ fetch: fetch3,
3377
+ projectId,
3378
+ bypassCache: true
3379
+ });
3380
+ let source;
3381
+ const isPackage = isPathAPackageFile(directory);
3382
+ if (isPackage) {
3383
+ const packageContents = readCanvasPackage(directory, true);
3384
+ source = await createArraySyncEngineDataSource({
3385
+ objects: packageContents.prompts ?? [],
3386
+ selectIdentifier: selectPromptIdentifier,
3387
+ selectDisplayName: selectPromptDisplayName
3388
+ });
3389
+ } else {
3390
+ source = await createFileSyncEngineDataSource({
3391
+ directory,
3392
+ selectIdentifier: selectPromptIdentifier,
3393
+ selectDisplayName: selectPromptDisplayName
3394
+ });
3395
+ }
3396
+ const target = createPromptEngineDataSource({ client });
3397
+ await syncEngine({
3398
+ source,
3399
+ target,
3400
+ mode,
3401
+ whatIf,
3402
+ log: createSyncEngineConsoleLogger({ diffMode })
3403
+ });
3404
+ }
3405
+ };
3406
+
3407
+ // src/commands/canvas/commands/prompts/remove.ts
3408
+ import { PromptClient as PromptClient5 } from "@uniformdev/canvas";
3409
+ var PromptRemoveModule = {
3410
+ command: "remove <id>",
3411
+ aliases: ["delete", "rm"],
3412
+ describe: "Delete a prompt",
3413
+ builder: (yargs26) => withConfiguration(
3414
+ withApiOptions(
3415
+ withProjectOptions(yargs26.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
3416
+ )
3417
+ ),
3418
+ handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
3419
+ const fetch3 = nodeFetchProxy(proxy);
3420
+ const client = new PromptClient5({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3421
+ await client.remove({ promptId: id });
3422
+ }
3423
+ };
3424
+
3425
+ // src/commands/canvas/commands/prompts/update.ts
3426
+ import { PromptClient as PromptClient6 } from "@uniformdev/canvas";
3427
+ var PromptUpdateModule = {
3428
+ command: "update <filename>",
3429
+ aliases: ["put"],
3430
+ describe: "Insert or update a prompt",
3431
+ builder: (yargs26) => withConfiguration(
3432
+ withApiOptions(
3433
+ withProjectOptions(
3434
+ yargs26.positional("filename", { demandOption: true, describe: "Prompt file to put" })
3435
+ )
3436
+ )
3437
+ ),
3438
+ handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
3439
+ const fetch3 = nodeFetchProxy(proxy);
3440
+ const client = new PromptClient6({ apiKey, apiHost, fetch: fetch3, projectId, bypassCache: true });
3441
+ const file = readFileToObject(filename);
3442
+ await client.upsert({ data: file });
3443
+ }
3444
+ };
3445
+
3446
+ // src/commands/canvas/commands/prompts.ts
3447
+ var PromptModule = {
3448
+ command: "prompt <command>",
3449
+ aliases: ["dt"],
3450
+ describe: "Commands for AI Prompt definitions",
3451
+ builder: (yargs26) => yargs26.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
3452
+ handler: () => {
3453
+ yargs8.help();
3454
+ }
3455
+ };
3456
+
3168
3457
  // src/commands/canvas/index.ts
3169
3458
  var CanvasCommand = {
3170
3459
  command: "canvas <command>",
3171
3460
  aliases: ["cv", "pm", "presentation"],
3172
3461
  describe: "Uniform Canvas commands",
3173
- builder: (yargs25) => yargs25.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).demandCommand(),
3462
+ builder: (yargs26) => yargs26.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(CategoryModule).command(PatternModule).command(ContentTypeModule).command(EntryModule).command(PromptModule).demandCommand(),
3174
3463
  handler: () => {
3175
- yargs8.showHelp();
3464
+ yargs9.showHelp();
3176
3465
  }
3177
3466
  };
3178
3467
 
3179
3468
  // src/commands/context/index.ts
3180
- import yargs15 from "yargs";
3469
+ import yargs16 from "yargs";
3181
3470
 
3182
3471
  // src/commands/context/commands/aggregate.ts
3183
- import yargs9 from "yargs";
3472
+ import yargs10 from "yargs";
3184
3473
 
3185
3474
  // src/commands/context/commands/aggregate/get.ts
3186
3475
  import { UncachedAggregateClient } from "@uniformdev/context/api";
3187
3476
  var AggregateGetModule = {
3188
3477
  command: "get <id>",
3189
3478
  describe: "Fetch an aggregate",
3190
- builder: (yargs25) => withConfiguration(
3479
+ builder: (yargs26) => withConfiguration(
3191
3480
  withFormatOptions(
3192
3481
  withApiOptions(
3193
3482
  withProjectOptions(
3194
- yargs25.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
3483
+ yargs26.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
3195
3484
  )
3196
3485
  )
3197
3486
  )
@@ -3215,7 +3504,7 @@ var AggregateListModule = {
3215
3504
  command: "list",
3216
3505
  describe: "List aggregates",
3217
3506
  aliases: ["ls"],
3218
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
3507
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
3219
3508
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3220
3509
  const fetch3 = nodeFetchProxy(proxy);
3221
3510
  const client = new UncachedAggregateClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -3281,11 +3570,11 @@ function writeContextPackage(filename, packageContents) {
3281
3570
  var AggregatePullModule = {
3282
3571
  command: "pull <directory>",
3283
3572
  describe: "Pulls all aggregates to local files in a directory",
3284
- builder: (yargs25) => withConfiguration(
3573
+ builder: (yargs26) => withConfiguration(
3285
3574
  withApiOptions(
3286
3575
  withProjectOptions(
3287
3576
  withDiffOptions(
3288
- yargs25.positional("directory", {
3577
+ yargs26.positional("directory", {
3289
3578
  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.",
3290
3579
  type: "string"
3291
3580
  }).option("format", {
@@ -3360,11 +3649,11 @@ import { UncachedAggregateClient as UncachedAggregateClient4 } from "@uniformdev
3360
3649
  var AggregatePushModule = {
3361
3650
  command: "push <directory>",
3362
3651
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
3363
- builder: (yargs25) => withConfiguration(
3652
+ builder: (yargs26) => withConfiguration(
3364
3653
  withApiOptions(
3365
3654
  withProjectOptions(
3366
3655
  withDiffOptions(
3367
- yargs25.positional("directory", {
3656
+ yargs26.positional("directory", {
3368
3657
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
3369
3658
  type: "string"
3370
3659
  }).option("what-if", {
@@ -3429,10 +3718,10 @@ var AggregateRemoveModule = {
3429
3718
  command: "remove <id>",
3430
3719
  aliases: ["delete", "rm"],
3431
3720
  describe: "Delete an aggregate",
3432
- builder: (yargs25) => withConfiguration(
3721
+ builder: (yargs26) => withConfiguration(
3433
3722
  withApiOptions(
3434
3723
  withProjectOptions(
3435
- yargs25.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
3724
+ yargs26.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
3436
3725
  )
3437
3726
  )
3438
3727
  ),
@@ -3449,10 +3738,10 @@ var AggregateUpdateModule = {
3449
3738
  command: "update <filename>",
3450
3739
  aliases: ["put"],
3451
3740
  describe: "Insert or update an aggregate",
3452
- builder: (yargs25) => withConfiguration(
3741
+ builder: (yargs26) => withConfiguration(
3453
3742
  withApiOptions(
3454
3743
  withProjectOptions(
3455
- yargs25.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
3744
+ yargs26.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
3456
3745
  )
3457
3746
  )
3458
3747
  ),
@@ -3469,25 +3758,25 @@ var AggregateModule = {
3469
3758
  command: "aggregate <command>",
3470
3759
  aliases: ["agg", "intent", "audience"],
3471
3760
  describe: "Commands for Context aggregates (intents, audiences)",
3472
- builder: (yargs25) => yargs25.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
3761
+ builder: (yargs26) => yargs26.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
3473
3762
  handler: () => {
3474
- yargs9.help();
3763
+ yargs10.help();
3475
3764
  }
3476
3765
  };
3477
3766
 
3478
3767
  // src/commands/context/commands/enrichment.ts
3479
- import yargs10 from "yargs";
3768
+ import yargs11 from "yargs";
3480
3769
 
3481
3770
  // src/commands/context/commands/enrichment/get.ts
3482
3771
  import { UncachedEnrichmentClient } from "@uniformdev/context/api";
3483
3772
  var EnrichmentGetModule = {
3484
3773
  command: "get <id>",
3485
3774
  describe: "Fetch an enrichment category and its values",
3486
- builder: (yargs25) => withFormatOptions(
3775
+ builder: (yargs26) => withFormatOptions(
3487
3776
  withConfiguration(
3488
3777
  withApiOptions(
3489
3778
  withProjectOptions(
3490
- yargs25.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
3779
+ yargs26.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
3491
3780
  )
3492
3781
  )
3493
3782
  )
@@ -3512,7 +3801,7 @@ var EnrichmentListModule = {
3512
3801
  command: "list",
3513
3802
  describe: "List enrichments",
3514
3803
  aliases: ["ls"],
3515
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
3804
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
3516
3805
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
3517
3806
  const fetch3 = nodeFetchProxy(proxy);
3518
3807
  const client = new UncachedEnrichmentClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -3613,11 +3902,11 @@ var createEnrichmentValueEngineDataSource = ({
3613
3902
  var EnrichmentPullModule = {
3614
3903
  command: "pull <directory>",
3615
3904
  describe: "Pulls all enrichments to local files in a directory",
3616
- builder: (yargs25) => withConfiguration(
3905
+ builder: (yargs26) => withConfiguration(
3617
3906
  withApiOptions(
3618
3907
  withProjectOptions(
3619
3908
  withDiffOptions(
3620
- yargs25.positional("directory", {
3909
+ yargs26.positional("directory", {
3621
3910
  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.",
3622
3911
  type: "string"
3623
3912
  }).option("format", {
@@ -3692,11 +3981,11 @@ import { UncachedEnrichmentClient as UncachedEnrichmentClient4 } from "@uniformd
3692
3981
  var EnrichmentPushModule = {
3693
3982
  command: "push <directory>",
3694
3983
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
3695
- builder: (yargs25) => withConfiguration(
3984
+ builder: (yargs26) => withConfiguration(
3696
3985
  withApiOptions(
3697
3986
  withProjectOptions(
3698
3987
  withDiffOptions(
3699
- yargs25.positional("directory", {
3988
+ yargs26.positional("directory", {
3700
3989
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
3701
3990
  type: "string"
3702
3991
  }).option("what-if", {
@@ -3760,10 +4049,10 @@ var EnrichmentRemoveModule = {
3760
4049
  command: "remove <id>",
3761
4050
  aliases: ["delete", "rm"],
3762
4051
  describe: "Delete an enrichment category and its values",
3763
- builder: (yargs25) => withConfiguration(
4052
+ builder: (yargs26) => withConfiguration(
3764
4053
  withApiOptions(
3765
4054
  withProjectOptions(
3766
- yargs25.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
4055
+ yargs26.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
3767
4056
  )
3768
4057
  )
3769
4058
  ),
@@ -3779,14 +4068,14 @@ var EnrichmentModule = {
3779
4068
  command: "enrichment <command>",
3780
4069
  aliases: ["enr"],
3781
4070
  describe: "Commands for Context enrichments",
3782
- builder: (yargs25) => yargs25.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
4071
+ builder: (yargs26) => yargs26.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
3783
4072
  handler: () => {
3784
- yargs10.help();
4073
+ yargs11.help();
3785
4074
  }
3786
4075
  };
3787
4076
 
3788
4077
  // src/commands/context/commands/manifest.ts
3789
- import yargs11 from "yargs";
4078
+ import yargs12 from "yargs";
3790
4079
 
3791
4080
  // src/commands/context/commands/manifest/get.ts
3792
4081
  import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
@@ -3797,10 +4086,10 @@ var ManifestGetModule = {
3797
4086
  command: "get [output]",
3798
4087
  aliases: ["dl", "download"],
3799
4088
  describe: "Download the Uniform Context manifest for a project",
3800
- builder: (yargs25) => withConfiguration(
4089
+ builder: (yargs26) => withConfiguration(
3801
4090
  withApiOptions(
3802
4091
  withProjectOptions(
3803
- yargs25.option("preview", {
4092
+ yargs26.option("preview", {
3804
4093
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
3805
4094
  default: false,
3806
4095
  type: "boolean",
@@ -3862,7 +4151,7 @@ import { exit as exit2 } from "process";
3862
4151
  var ManifestPublishModule = {
3863
4152
  command: "publish",
3864
4153
  describe: "Publish the Uniform Context manifest for a project",
3865
- builder: (yargs25) => withConfiguration(withApiOptions(withProjectOptions(yargs25))),
4154
+ builder: (yargs26) => withConfiguration(withApiOptions(withProjectOptions(yargs26))),
3866
4155
  handler: async ({ apiKey, apiHost, proxy, project }) => {
3867
4156
  const fetch3 = nodeFetchProxy(proxy);
3868
4157
  try {
@@ -3895,25 +4184,25 @@ var ManifestModule = {
3895
4184
  command: "manifest <command>",
3896
4185
  describe: "Commands for context manifests",
3897
4186
  aliases: ["man"],
3898
- builder: (yargs25) => yargs25.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
4187
+ builder: (yargs26) => yargs26.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
3899
4188
  handler: () => {
3900
- yargs11.help();
4189
+ yargs12.help();
3901
4190
  }
3902
4191
  };
3903
4192
 
3904
4193
  // src/commands/context/commands/quirk.ts
3905
- import yargs12 from "yargs";
4194
+ import yargs13 from "yargs";
3906
4195
 
3907
4196
  // src/commands/context/commands/quirk/get.ts
3908
4197
  import { UncachedQuirkClient } from "@uniformdev/context/api";
3909
4198
  var QuirkGetModule = {
3910
4199
  command: "get <id>",
3911
4200
  describe: "Fetch a quirk",
3912
- builder: (yargs25) => withConfiguration(
4201
+ builder: (yargs26) => withConfiguration(
3913
4202
  withFormatOptions(
3914
4203
  withApiOptions(
3915
4204
  withProjectOptions(
3916
- yargs25.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
4205
+ yargs26.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
3917
4206
  )
3918
4207
  )
3919
4208
  )
@@ -3937,11 +4226,11 @@ var QuirkListModule = {
3937
4226
  command: "list",
3938
4227
  describe: "List quirks",
3939
4228
  aliases: ["ls"],
3940
- builder: (yargs25) => withConfiguration(
4229
+ builder: (yargs26) => withConfiguration(
3941
4230
  withFormatOptions(
3942
4231
  withApiOptions(
3943
4232
  withProjectOptions(
3944
- yargs25.option("withIntegrations", {
4233
+ yargs26.option("withIntegrations", {
3945
4234
  alias: ["i"],
3946
4235
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
3947
4236
  type: "boolean"
@@ -3998,11 +4287,11 @@ function createQuirkEngineDataSource({
3998
4287
  var QuirkPullModule = {
3999
4288
  command: "pull <directory>",
4000
4289
  describe: "Pulls all quirks to local files in a directory",
4001
- builder: (yargs25) => withConfiguration(
4290
+ builder: (yargs26) => withConfiguration(
4002
4291
  withApiOptions(
4003
4292
  withProjectOptions(
4004
4293
  withDiffOptions(
4005
- yargs25.positional("directory", {
4294
+ yargs26.positional("directory", {
4006
4295
  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.",
4007
4296
  type: "string"
4008
4297
  }).option("format", {
@@ -4077,11 +4366,11 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
4077
4366
  var QuirkPushModule = {
4078
4367
  command: "push <directory>",
4079
4368
  describe: "Pushes all quirks from files in a directory or package to Uniform",
4080
- builder: (yargs25) => withConfiguration(
4369
+ builder: (yargs26) => withConfiguration(
4081
4370
  withApiOptions(
4082
4371
  withProjectOptions(
4083
4372
  withDiffOptions(
4084
- yargs25.positional("directory", {
4373
+ yargs26.positional("directory", {
4085
4374
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
4086
4375
  type: "string"
4087
4376
  }).option("what-if", {
@@ -4145,10 +4434,10 @@ var QuirkRemoveModule = {
4145
4434
  command: "remove <id>",
4146
4435
  aliases: ["delete", "rm"],
4147
4436
  describe: "Delete a quirk",
4148
- builder: (yargs25) => withConfiguration(
4437
+ builder: (yargs26) => withConfiguration(
4149
4438
  withApiOptions(
4150
4439
  withProjectOptions(
4151
- yargs25.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
4440
+ yargs26.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
4152
4441
  )
4153
4442
  )
4154
4443
  ),
@@ -4165,10 +4454,10 @@ var QuirkUpdateModule = {
4165
4454
  command: "update <filename>",
4166
4455
  aliases: ["put"],
4167
4456
  describe: "Insert or update a quirk",
4168
- builder: (yargs25) => withConfiguration(
4457
+ builder: (yargs26) => withConfiguration(
4169
4458
  withApiOptions(
4170
4459
  withProjectOptions(
4171
- yargs25.positional("filename", { demandOption: true, describe: "Quirk file to put" })
4460
+ yargs26.positional("filename", { demandOption: true, describe: "Quirk file to put" })
4172
4461
  )
4173
4462
  )
4174
4463
  ),
@@ -4185,25 +4474,25 @@ var QuirkModule = {
4185
4474
  command: "quirk <command>",
4186
4475
  aliases: ["qk"],
4187
4476
  describe: "Commands for Context quirks",
4188
- builder: (yargs25) => yargs25.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
4477
+ builder: (yargs26) => yargs26.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
4189
4478
  handler: () => {
4190
- yargs12.help();
4479
+ yargs13.help();
4191
4480
  }
4192
4481
  };
4193
4482
 
4194
4483
  // src/commands/context/commands/signal.ts
4195
- import yargs13 from "yargs";
4484
+ import yargs14 from "yargs";
4196
4485
 
4197
4486
  // src/commands/context/commands/signal/get.ts
4198
4487
  import { UncachedSignalClient } from "@uniformdev/context/api";
4199
4488
  var SignalGetModule = {
4200
4489
  command: "get <id>",
4201
4490
  describe: "Fetch a signal",
4202
- builder: (yargs25) => withConfiguration(
4491
+ builder: (yargs26) => withConfiguration(
4203
4492
  withFormatOptions(
4204
4493
  withApiOptions(
4205
4494
  withProjectOptions(
4206
- yargs25.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
4495
+ yargs26.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
4207
4496
  )
4208
4497
  )
4209
4498
  )
@@ -4227,7 +4516,7 @@ var SignalListModule = {
4227
4516
  command: "list",
4228
4517
  describe: "List signals",
4229
4518
  aliases: ["ls"],
4230
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
4519
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
4231
4520
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4232
4521
  const fetch3 = nodeFetchProxy(proxy);
4233
4522
  const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4276,11 +4565,11 @@ function createSignalEngineDataSource({
4276
4565
  var SignalPullModule = {
4277
4566
  command: "pull <directory>",
4278
4567
  describe: "Pulls all signals to local files in a directory",
4279
- builder: (yargs25) => withConfiguration(
4568
+ builder: (yargs26) => withConfiguration(
4280
4569
  withApiOptions(
4281
4570
  withProjectOptions(
4282
4571
  withDiffOptions(
4283
- yargs25.positional("directory", {
4572
+ yargs26.positional("directory", {
4284
4573
  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.",
4285
4574
  type: "string"
4286
4575
  }).option("format", {
@@ -4355,11 +4644,11 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
4355
4644
  var SignalPushModule = {
4356
4645
  command: "push <directory>",
4357
4646
  describe: "Pushes all signals from files in a directory or package to Uniform",
4358
- builder: (yargs25) => withConfiguration(
4647
+ builder: (yargs26) => withConfiguration(
4359
4648
  withApiOptions(
4360
4649
  withProjectOptions(
4361
4650
  withDiffOptions(
4362
- yargs25.positional("directory", {
4651
+ yargs26.positional("directory", {
4363
4652
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
4364
4653
  type: "string"
4365
4654
  }).option("what-if", {
@@ -4423,10 +4712,10 @@ var SignalRemoveModule = {
4423
4712
  command: "remove <id>",
4424
4713
  aliases: ["delete", "rm"],
4425
4714
  describe: "Delete a signal",
4426
- builder: (yargs25) => withConfiguration(
4715
+ builder: (yargs26) => withConfiguration(
4427
4716
  withApiOptions(
4428
4717
  withProjectOptions(
4429
- yargs25.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
4718
+ yargs26.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
4430
4719
  )
4431
4720
  )
4432
4721
  ),
@@ -4443,10 +4732,10 @@ var SignalUpdateModule = {
4443
4732
  command: "update <filename>",
4444
4733
  aliases: ["put"],
4445
4734
  describe: "Insert or update a signal",
4446
- builder: (yargs25) => withConfiguration(
4735
+ builder: (yargs26) => withConfiguration(
4447
4736
  withApiOptions(
4448
4737
  withProjectOptions(
4449
- yargs25.positional("filename", { demandOption: true, describe: "Signal file to put" })
4738
+ yargs26.positional("filename", { demandOption: true, describe: "Signal file to put" })
4450
4739
  )
4451
4740
  )
4452
4741
  ),
@@ -4463,25 +4752,25 @@ var SignalModule = {
4463
4752
  command: "signal <command>",
4464
4753
  aliases: ["sig"],
4465
4754
  describe: "Commands for Context signals",
4466
- builder: (yargs25) => yargs25.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
4755
+ builder: (yargs26) => yargs26.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
4467
4756
  handler: () => {
4468
- yargs13.help();
4757
+ yargs14.help();
4469
4758
  }
4470
4759
  };
4471
4760
 
4472
4761
  // src/commands/context/commands/test.ts
4473
- import yargs14 from "yargs";
4762
+ import yargs15 from "yargs";
4474
4763
 
4475
4764
  // src/commands/context/commands/test/get.ts
4476
4765
  import { UncachedTestClient } from "@uniformdev/context/api";
4477
4766
  var TestGetModule = {
4478
4767
  command: "get <id>",
4479
4768
  describe: "Fetch a test",
4480
- builder: (yargs25) => withConfiguration(
4769
+ builder: (yargs26) => withConfiguration(
4481
4770
  withFormatOptions(
4482
4771
  withApiOptions(
4483
4772
  withProjectOptions(
4484
- yargs25.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
4773
+ yargs26.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
4485
4774
  )
4486
4775
  )
4487
4776
  )
@@ -4505,7 +4794,7 @@ var TestListModule = {
4505
4794
  command: "list",
4506
4795
  describe: "List tests",
4507
4796
  aliases: ["ls"],
4508
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
4797
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
4509
4798
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
4510
4799
  const fetch3 = nodeFetchProxy(proxy);
4511
4800
  const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -4554,11 +4843,11 @@ function createTestEngineDataSource({
4554
4843
  var TestPullModule = {
4555
4844
  command: "pull <directory>",
4556
4845
  describe: "Pulls all tests to local files in a directory",
4557
- builder: (yargs25) => withConfiguration(
4846
+ builder: (yargs26) => withConfiguration(
4558
4847
  withApiOptions(
4559
4848
  withProjectOptions(
4560
4849
  withDiffOptions(
4561
- yargs25.positional("directory", {
4850
+ yargs26.positional("directory", {
4562
4851
  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.",
4563
4852
  type: "string"
4564
4853
  }).option("format", {
@@ -4633,11 +4922,11 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
4633
4922
  var TestPushModule = {
4634
4923
  command: "push <directory>",
4635
4924
  describe: "Pushes all tests from files in a directory or package to Uniform",
4636
- builder: (yargs25) => withConfiguration(
4925
+ builder: (yargs26) => withConfiguration(
4637
4926
  withApiOptions(
4638
4927
  withProjectOptions(
4639
4928
  withDiffOptions(
4640
- yargs25.positional("directory", {
4929
+ yargs26.positional("directory", {
4641
4930
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
4642
4931
  type: "string"
4643
4932
  }).option("what-if", {
@@ -4701,10 +4990,10 @@ var TestRemoveModule = {
4701
4990
  command: "remove <id>",
4702
4991
  aliases: ["delete", "rm"],
4703
4992
  describe: "Delete a test",
4704
- builder: (yargs25) => withConfiguration(
4993
+ builder: (yargs26) => withConfiguration(
4705
4994
  withApiOptions(
4706
4995
  withProjectOptions(
4707
- yargs25.positional("id", { demandOption: true, describe: "Test public ID to delete" })
4996
+ yargs26.positional("id", { demandOption: true, describe: "Test public ID to delete" })
4708
4997
  )
4709
4998
  )
4710
4999
  ),
@@ -4721,9 +5010,9 @@ var TestUpdateModule = {
4721
5010
  command: "update <filename>",
4722
5011
  aliases: ["put"],
4723
5012
  describe: "Insert or update a test",
4724
- builder: (yargs25) => withConfiguration(
5013
+ builder: (yargs26) => withConfiguration(
4725
5014
  withApiOptions(
4726
- withProjectOptions(yargs25.positional("filename", { demandOption: true, describe: "Test file to put" }))
5015
+ withProjectOptions(yargs26.positional("filename", { demandOption: true, describe: "Test file to put" }))
4727
5016
  )
4728
5017
  ),
4729
5018
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -4738,9 +5027,9 @@ var TestUpdateModule = {
4738
5027
  var TestModule = {
4739
5028
  command: "test <command>",
4740
5029
  describe: "Commands for Context A/B tests",
4741
- builder: (yargs25) => yargs25.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
5030
+ builder: (yargs26) => yargs26.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
4742
5031
  handler: () => {
4743
- yargs14.help();
5032
+ yargs15.help();
4744
5033
  }
4745
5034
  };
4746
5035
 
@@ -4749,9 +5038,9 @@ var ContextCommand = {
4749
5038
  command: "context <command>",
4750
5039
  aliases: ["ctx"],
4751
5040
  describe: "Uniform Context commands",
4752
- builder: (yargs25) => yargs25.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
5041
+ builder: (yargs26) => yargs26.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
4753
5042
  handler: () => {
4754
- yargs15.showHelp();
5043
+ yargs16.showHelp();
4755
5044
  }
4756
5045
  };
4757
5046
 
@@ -4779,7 +5068,7 @@ import { PostHog } from "posthog-node";
4779
5068
  // package.json
4780
5069
  var package_default = {
4781
5070
  name: "@uniformdev/cli",
4782
- version: "19.61.1",
5071
+ version: "19.62.0",
4783
5072
  description: "Uniform command line interface tool",
4784
5073
  license: "SEE LICENSE IN LICENSE.txt",
4785
5074
  main: "./cli.js",
@@ -4801,6 +5090,7 @@ var package_default = {
4801
5090
  "@uniformdev/files": "workspace:*",
4802
5091
  "@uniformdev/project-map": "workspace:*",
4803
5092
  "@uniformdev/redirect": "workspace:*",
5093
+ "call-bind": "^1.0.2",
4804
5094
  colorette: "2.0.20",
4805
5095
  cosmiconfig: "8.3.6",
4806
5096
  "cosmiconfig-typescript-loader": "5.0.0",
@@ -5823,10 +6113,10 @@ var NewMeshCmd = {
5823
6113
  };
5824
6114
 
5825
6115
  // src/commands/optimize/index.ts
5826
- import yargs17 from "yargs";
6116
+ import yargs18 from "yargs";
5827
6117
 
5828
6118
  // src/commands/optimize/manifest.ts
5829
- import yargs16 from "yargs";
6119
+ import yargs17 from "yargs";
5830
6120
 
5831
6121
  // src/commands/optimize/manifest/download.ts
5832
6122
  import { gray as gray4, green as green3, red as red5, yellow as yellow2 } from "colorette";
@@ -5841,7 +6131,7 @@ var UniformBaseUrl = "https://uniform.app";
5841
6131
  var module = {
5842
6132
  command: "download [output]",
5843
6133
  describe: "Download intent manifest",
5844
- builder: (yargs25) => yargs25.option("apiKey", {
6134
+ builder: (yargs26) => yargs26.option("apiKey", {
5845
6135
  alias: "k",
5846
6136
  demandOption: true,
5847
6137
  string: true,
@@ -5942,10 +6232,10 @@ var module2 = {
5942
6232
  command: "manifest <command>",
5943
6233
  describe: "Intent manifest commands",
5944
6234
  builder: () => {
5945
- return yargs16.command(download_default);
6235
+ return yargs17.command(download_default);
5946
6236
  },
5947
6237
  handler: () => {
5948
- yargs16.showHelp();
6238
+ yargs17.showHelp();
5949
6239
  }
5950
6240
  };
5951
6241
  var manifest_default = module2;
@@ -5956,29 +6246,29 @@ var OptimizeCommand = {
5956
6246
  aliases: ["opt"],
5957
6247
  describe: "Uniform Optimize commands",
5958
6248
  builder: () => {
5959
- return yargs17.command(manifest_default);
6249
+ return yargs18.command(manifest_default);
5960
6250
  },
5961
6251
  handler: () => {
5962
- yargs17.showHelp();
6252
+ yargs18.showHelp();
5963
6253
  }
5964
6254
  };
5965
6255
 
5966
6256
  // src/commands/project-map/index.ts
5967
- import yargs20 from "yargs";
6257
+ import yargs21 from "yargs";
5968
6258
 
5969
6259
  // src/commands/project-map/commands/projectMapDefinition.ts
5970
- import yargs18 from "yargs";
6260
+ import yargs19 from "yargs";
5971
6261
 
5972
6262
  // src/commands/project-map/commands/ProjectMapDefinition/get.ts
5973
6263
  import { UncachedProjectMapClient } from "@uniformdev/project-map";
5974
6264
  var ProjectMapDefinitionGetModule = {
5975
6265
  command: "get <id>",
5976
6266
  describe: "Fetch a project map",
5977
- builder: (yargs25) => withFormatOptions(
6267
+ builder: (yargs26) => withFormatOptions(
5978
6268
  withConfiguration(
5979
6269
  withApiOptions(
5980
6270
  withProjectOptions(
5981
- yargs25.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
6271
+ yargs26.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
5982
6272
  )
5983
6273
  )
5984
6274
  )
@@ -6002,7 +6292,7 @@ var ProjectMapDefinitionListModule = {
6002
6292
  command: "list",
6003
6293
  describe: "List of project maps",
6004
6294
  aliases: ["ls"],
6005
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
6295
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
6006
6296
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6007
6297
  const fetch3 = nodeFetchProxy(proxy);
6008
6298
  const client = new UncachedProjectMapClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6059,11 +6349,11 @@ function createProjectMapDefinitionEngineDataSource({
6059
6349
  var ProjectMapDefinitionPullModule = {
6060
6350
  command: "pull <directory>",
6061
6351
  describe: "Pulls all project maps to local files in a directory",
6062
- builder: (yargs25) => withConfiguration(
6352
+ builder: (yargs26) => withConfiguration(
6063
6353
  withApiOptions(
6064
6354
  withProjectOptions(
6065
6355
  withDiffOptions(
6066
- yargs25.positional("directory", {
6356
+ yargs26.positional("directory", {
6067
6357
  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.",
6068
6358
  type: "string"
6069
6359
  }).option("format", {
@@ -6138,11 +6428,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient4 } from "@uniformd
6138
6428
  var ProjectMapDefinitionPushModule = {
6139
6429
  command: "push <directory>",
6140
6430
  describe: "Pushes all project maps from files in a directory or package to Uniform",
6141
- builder: (yargs25) => withConfiguration(
6431
+ builder: (yargs26) => withConfiguration(
6142
6432
  withApiOptions(
6143
6433
  withProjectOptions(
6144
6434
  withDiffOptions(
6145
- yargs25.positional("directory", {
6435
+ yargs26.positional("directory", {
6146
6436
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
6147
6437
  type: "string"
6148
6438
  }).option("what-if", {
@@ -6206,9 +6496,9 @@ var ProjectMapDefinitionRemoveModule = {
6206
6496
  command: "remove <id>",
6207
6497
  aliases: ["delete", "rm"],
6208
6498
  describe: "Delete a project map",
6209
- builder: (yargs25) => withConfiguration(
6499
+ builder: (yargs26) => withConfiguration(
6210
6500
  withApiOptions(
6211
- withProjectOptions(yargs25.positional("id", { demandOption: true, describe: " UUID to delete" }))
6501
+ withProjectOptions(yargs26.positional("id", { demandOption: true, describe: " UUID to delete" }))
6212
6502
  )
6213
6503
  ),
6214
6504
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -6224,10 +6514,10 @@ var ProjectMapDefinitionUpdateModule = {
6224
6514
  command: "update <filename>",
6225
6515
  aliases: ["put"],
6226
6516
  describe: "Insert or update a project map",
6227
- builder: (yargs25) => withConfiguration(
6517
+ builder: (yargs26) => withConfiguration(
6228
6518
  withApiOptions(
6229
6519
  withProjectOptions(
6230
- yargs25.positional("filename", { demandOption: true, describe: "Project map file to put" })
6520
+ yargs26.positional("filename", { demandOption: true, describe: "Project map file to put" })
6231
6521
  )
6232
6522
  )
6233
6523
  ),
@@ -6243,25 +6533,25 @@ var ProjectMapDefinitionUpdateModule = {
6243
6533
  var ProjectMapDefinitionModule = {
6244
6534
  command: "definition <command>",
6245
6535
  describe: "Commands for ProjectMap Definitions",
6246
- builder: (yargs25) => yargs25.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
6536
+ builder: (yargs26) => yargs26.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
6247
6537
  handler: () => {
6248
- yargs18.help();
6538
+ yargs19.help();
6249
6539
  }
6250
6540
  };
6251
6541
 
6252
6542
  // src/commands/project-map/commands/projectMapNode.ts
6253
- import yargs19 from "yargs";
6543
+ import yargs20 from "yargs";
6254
6544
 
6255
6545
  // src/commands/project-map/commands/ProjectMapNode/get.ts
6256
6546
  import { UncachedProjectMapClient as UncachedProjectMapClient7 } from "@uniformdev/project-map";
6257
6547
  var ProjectMapNodeGetModule = {
6258
6548
  command: "get <id> <projectMapId>",
6259
6549
  describe: "Fetch a project map node",
6260
- builder: (yargs25) => withConfiguration(
6550
+ builder: (yargs26) => withConfiguration(
6261
6551
  withFormatOptions(
6262
6552
  withApiOptions(
6263
6553
  withProjectOptions(
6264
- yargs25.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
6554
+ yargs26.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
6265
6555
  )
6266
6556
  )
6267
6557
  )
@@ -6287,11 +6577,11 @@ var ProjectMapNodeListModule = {
6287
6577
  command: "list <projectMapId>",
6288
6578
  describe: "List project map nodes",
6289
6579
  aliases: ["ls"],
6290
- builder: (yargs25) => withConfiguration(
6580
+ builder: (yargs26) => withConfiguration(
6291
6581
  withFormatOptions(
6292
6582
  withApiOptions(
6293
6583
  withProjectOptions(
6294
- yargs25.positional("projectMapId", {
6584
+ yargs26.positional("projectMapId", {
6295
6585
  demandOption: true,
6296
6586
  describe: "ProjectMap UUID to fetch from"
6297
6587
  })
@@ -6362,11 +6652,11 @@ function createProjectMapNodeEngineDataSource({
6362
6652
  var ProjectMapNodePullModule = {
6363
6653
  command: "pull <directory>",
6364
6654
  describe: "Pulls all project maps nodes to local files in a directory",
6365
- builder: (yargs25) => withConfiguration(
6655
+ builder: (yargs26) => withConfiguration(
6366
6656
  withApiOptions(
6367
6657
  withProjectOptions(
6368
6658
  withDiffOptions(
6369
- yargs25.positional("directory", {
6659
+ yargs26.positional("directory", {
6370
6660
  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.",
6371
6661
  type: "string"
6372
6662
  }).option("format", {
@@ -6445,11 +6735,11 @@ import { UncachedProjectMapClient as UncachedProjectMapClient10 } from "@uniform
6445
6735
  var ProjectMapNodePushModule = {
6446
6736
  command: "push <directory>",
6447
6737
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
6448
- builder: (yargs25) => withConfiguration(
6738
+ builder: (yargs26) => withConfiguration(
6449
6739
  withApiOptions(
6450
6740
  withProjectOptions(
6451
6741
  withDiffOptions(
6452
- yargs25.positional("directory", {
6742
+ yargs26.positional("directory", {
6453
6743
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
6454
6744
  type: "string"
6455
6745
  }).option("what-if", {
@@ -6522,10 +6812,10 @@ var ProjectMapNodeRemoveModule = {
6522
6812
  command: "remove <id> <projectMapId>",
6523
6813
  aliases: ["delete", "rm"],
6524
6814
  describe: "Delete a project map node",
6525
- builder: (yargs25) => withConfiguration(
6815
+ builder: (yargs26) => withConfiguration(
6526
6816
  withApiOptions(
6527
6817
  withProjectOptions(
6528
- yargs25.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
6818
+ yargs26.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
6529
6819
  )
6530
6820
  )
6531
6821
  ),
@@ -6542,10 +6832,10 @@ var ProjectMapNodeUpdateModule = {
6542
6832
  command: "update <filename> <projectMapId>",
6543
6833
  aliases: ["put"],
6544
6834
  describe: "Insert or update a project map node",
6545
- builder: (yargs25) => withConfiguration(
6835
+ builder: (yargs26) => withConfiguration(
6546
6836
  withApiOptions(
6547
6837
  withProjectOptions(
6548
- yargs25.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
6838
+ yargs26.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
6549
6839
  )
6550
6840
  )
6551
6841
  ),
@@ -6561,9 +6851,9 @@ var ProjectMapNodeUpdateModule = {
6561
6851
  var ProjectMapNodeModule = {
6562
6852
  command: "node <command>",
6563
6853
  describe: "Commands for ProjectMap Nodes",
6564
- builder: (yargs25) => yargs25.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
6854
+ builder: (yargs26) => yargs26.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
6565
6855
  handler: () => {
6566
- yargs19.help();
6856
+ yargs20.help();
6567
6857
  }
6568
6858
  };
6569
6859
 
@@ -6572,28 +6862,28 @@ var ProjectMapCommand = {
6572
6862
  command: "project-map <command>",
6573
6863
  aliases: ["prm"],
6574
6864
  describe: "Uniform ProjectMap commands",
6575
- builder: (yargs25) => yargs25.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
6865
+ builder: (yargs26) => yargs26.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
6576
6866
  handler: () => {
6577
- yargs20.showHelp();
6867
+ yargs21.showHelp();
6578
6868
  }
6579
6869
  };
6580
6870
 
6581
6871
  // src/commands/redirect/index.ts
6582
- import yargs22 from "yargs";
6872
+ import yargs23 from "yargs";
6583
6873
 
6584
6874
  // src/commands/redirect/commands/redirect.ts
6585
- import yargs21 from "yargs";
6875
+ import yargs22 from "yargs";
6586
6876
 
6587
6877
  // src/commands/redirect/commands/RedirectDefinition/get.ts
6588
6878
  import { UncachedRedirectClient } from "@uniformdev/redirect";
6589
6879
  var RedirectDefinitionGetModule = {
6590
6880
  command: "get <id>",
6591
6881
  describe: "Fetch a redirect",
6592
- builder: (yargs25) => withConfiguration(
6882
+ builder: (yargs26) => withConfiguration(
6593
6883
  withFormatOptions(
6594
6884
  withApiOptions(
6595
6885
  withProjectOptions(
6596
- yargs25.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
6886
+ yargs26.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
6597
6887
  )
6598
6888
  )
6599
6889
  )
@@ -6617,7 +6907,7 @@ var RedirectDefinitionListModule = {
6617
6907
  command: "list",
6618
6908
  describe: "List of redirects",
6619
6909
  aliases: ["ls"],
6620
- builder: (yargs25) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs25)))),
6910
+ builder: (yargs26) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs26)))),
6621
6911
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
6622
6912
  const fetch3 = nodeFetchProxy(proxy);
6623
6913
  const client = new UncachedRedirectClient2({ apiKey, apiHost, fetch: fetch3, projectId });
@@ -6683,11 +6973,11 @@ function createRedirectDefinitionEngineDataSource({
6683
6973
  var RedirectDefinitionPullModule = {
6684
6974
  command: "pull <directory>",
6685
6975
  describe: "Pulls all redirects to local files in a directory",
6686
- builder: (yargs25) => withConfiguration(
6976
+ builder: (yargs26) => withConfiguration(
6687
6977
  withApiOptions(
6688
6978
  withProjectOptions(
6689
6979
  withDiffOptions(
6690
- yargs25.positional("directory", {
6980
+ yargs26.positional("directory", {
6691
6981
  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.",
6692
6982
  type: "string"
6693
6983
  }).option("format", {
@@ -6763,11 +7053,11 @@ import { UncachedRedirectClient as UncachedRedirectClient4 } from "@uniformdev/r
6763
7053
  var RedirectDefinitionPushModule = {
6764
7054
  command: "push <directory>",
6765
7055
  describe: "Pushes all redirects from files in a directory or package to Uniform",
6766
- builder: (yargs25) => withConfiguration(
7056
+ builder: (yargs26) => withConfiguration(
6767
7057
  withApiOptions(
6768
7058
  withProjectOptions(
6769
7059
  withDiffOptions(
6770
- yargs25.positional("directory", {
7060
+ yargs26.positional("directory", {
6771
7061
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
6772
7062
  type: "string"
6773
7063
  }).option("what-if", {
@@ -6831,9 +7121,9 @@ var RedirectDefinitionRemoveModule = {
6831
7121
  command: "remove <id>",
6832
7122
  aliases: ["delete", "rm"],
6833
7123
  describe: "Delete a redirect",
6834
- builder: (yargs25) => withConfiguration(
7124
+ builder: (yargs26) => withConfiguration(
6835
7125
  withApiOptions(
6836
- withProjectOptions(yargs25.positional("id", { demandOption: true, describe: " UUID to delete" }))
7126
+ withProjectOptions(yargs26.positional("id", { demandOption: true, describe: " UUID to delete" }))
6837
7127
  )
6838
7128
  ),
6839
7129
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -6849,10 +7139,10 @@ var RedirectDefinitionUpdateModule = {
6849
7139
  command: "update <filename>",
6850
7140
  aliases: ["put"],
6851
7141
  describe: "Insert or update a redirect",
6852
- builder: (yargs25) => withConfiguration(
7142
+ builder: (yargs26) => withConfiguration(
6853
7143
  withApiOptions(
6854
7144
  withProjectOptions(
6855
- yargs25.positional("filename", { demandOption: true, describe: "Redirect file to put" })
7145
+ yargs26.positional("filename", { demandOption: true, describe: "Redirect file to put" })
6856
7146
  )
6857
7147
  )
6858
7148
  ),
@@ -6868,9 +7158,9 @@ var RedirectDefinitionUpdateModule = {
6868
7158
  var RedirectDefinitionModule = {
6869
7159
  command: "definition <command>",
6870
7160
  describe: "Commands for Redirect Definitions",
6871
- builder: (yargs25) => yargs25.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
7161
+ builder: (yargs26) => yargs26.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
6872
7162
  handler: () => {
6873
- yargs21.help();
7163
+ yargs22.help();
6874
7164
  }
6875
7165
  };
6876
7166
 
@@ -6879,14 +7169,14 @@ var RedirectCommand = {
6879
7169
  command: "redirect <command>",
6880
7170
  aliases: ["red"],
6881
7171
  describe: "Uniform Redirect commands",
6882
- builder: (yargs25) => yargs25.command(RedirectDefinitionModule).demandCommand(),
7172
+ builder: (yargs26) => yargs26.command(RedirectDefinitionModule).demandCommand(),
6883
7173
  handler: () => {
6884
- yargs22.showHelp();
7174
+ yargs23.showHelp();
6885
7175
  }
6886
7176
  };
6887
7177
 
6888
7178
  // src/commands/sync/index.ts
6889
- import yargs23 from "yargs";
7179
+ import yargs24 from "yargs";
6890
7180
 
6891
7181
  // src/commands/sync/commands/util.ts
6892
7182
  import ora2 from "ora";
@@ -6917,11 +7207,11 @@ function spin(entityType) {
6917
7207
  var SyncPullModule = {
6918
7208
  command: "pull",
6919
7209
  describe: "Pulls whole project to local files in a directory",
6920
- builder: (yargs25) => withConfiguration(
7210
+ builder: (yargs26) => withConfiguration(
6921
7211
  withApiOptions(
6922
7212
  withProjectOptions(
6923
7213
  withDiffOptions(
6924
- yargs25.option("what-if", {
7214
+ yargs26.option("what-if", {
6925
7215
  alias: ["w"],
6926
7216
  describe: "What-if mode reports what would be done but changes no files",
6927
7217
  default: false,
@@ -6936,6 +7226,7 @@ var SyncPullModule = {
6936
7226
  const enabledEntities = Object.entries({
6937
7227
  category: CategoryPullModule,
6938
7228
  dataType: DataTypePullModule,
7229
+ prompt: PromptPullModule,
6939
7230
  quirk: QuirkPullModule,
6940
7231
  test: TestPullModule,
6941
7232
  signal: SignalPullModule,
@@ -7006,11 +7297,11 @@ var getFormat = (entityType, config2) => {
7006
7297
  var SyncPushModule = {
7007
7298
  command: "push",
7008
7299
  describe: "Pushes whole project data from files in a directory or package to Uniform",
7009
- builder: (yargs25) => withConfiguration(
7300
+ builder: (yargs26) => withConfiguration(
7010
7301
  withApiOptions(
7011
7302
  withProjectOptions(
7012
7303
  withDiffOptions(
7013
- yargs25.option("what-if", {
7304
+ yargs26.option("what-if", {
7014
7305
  alias: ["w"],
7015
7306
  describe: "What-if mode reports what would be done but changes nothing",
7016
7307
  default: false,
@@ -7026,6 +7317,7 @@ var SyncPushModule = {
7026
7317
  const enabledEntities = Object.entries({
7027
7318
  category: CategoryPushModule,
7028
7319
  dataType: DataTypePushModule,
7320
+ prompt: PromptPushModule,
7029
7321
  quirk: QuirkPushModule,
7030
7322
  test: TestPushModule,
7031
7323
  signal: SignalPushModule,
@@ -7102,9 +7394,9 @@ var getFormat2 = (entityType, config2) => {
7102
7394
  var SyncCommand = {
7103
7395
  command: "sync <command>",
7104
7396
  describe: "Uniform Sync commands",
7105
- builder: (yargs25) => yargs25.command(SyncPullModule).command(SyncPushModule).demandCommand(),
7397
+ builder: (yargs26) => yargs26.command(SyncPullModule).command(SyncPushModule).demandCommand(),
7106
7398
  handler: () => {
7107
- yargs23.showHelp();
7399
+ yargs24.showHelp();
7108
7400
  }
7109
7401
  };
7110
7402
 
@@ -7220,7 +7512,7 @@ First found was: v${firstVersion}`;
7220
7512
 
7221
7513
  // src/index.ts
7222
7514
  dotenv.config();
7223
- var yarggery = yargs24(hideBin(process.argv));
7515
+ var yarggery = yargs25(hideBin(process.argv));
7224
7516
  var inlineConfigurationFilePath = "config" in yarggery.argv && yarggery.argv.config;
7225
7517
  var configuration = loadConfig(inlineConfigurationFilePath || null);
7226
7518
  yarggery.option("verbose", {