@uniformdev/cli 20.77.2-alpha.3.sha-e9420d8e77 → 20.78.1-alpha.20.sha-fc102eb30c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -23,11 +23,11 @@ import {
23
23
  withFormatOptions,
24
24
  withProjectOptions,
25
25
  withTeamOptions
26
- } from "./chunk-3XFJVWPJ.mjs";
26
+ } from "./chunk-V636VN6I.mjs";
27
27
 
28
28
  // src/index.ts
29
29
  import * as dotenv from "dotenv";
30
- import yargs43 from "yargs";
30
+ import yargs44 from "yargs";
31
31
  import { hideBin } from "yargs/helpers";
32
32
 
33
33
  // src/commands/ai/index.ts
@@ -519,20 +519,20 @@ var makeSpinner = () => {
519
519
  async function createArraySyncEngineDataSource({
520
520
  name,
521
521
  objects,
522
- selectIdentifier: selectIdentifier18,
523
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
522
+ selectIdentifier: selectIdentifier19,
523
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
524
524
  onSyncComplete,
525
525
  onBeforeDeleteObject
526
526
  }) {
527
527
  const objectIndex = objects.reduce(
528
528
  (result, current) => {
529
- const rawIdentifiers = selectIdentifier18(current);
529
+ const rawIdentifiers = selectIdentifier19(current);
530
530
  const identifiers = Array.isArray(rawIdentifiers) ? rawIdentifiers : [rawIdentifiers];
531
531
  const existingResult = identifiers.find((id) => result[id]);
532
532
  if (existingResult) {
533
533
  throw new Error(`Identifier(s) ${identifiers} was not unique.`);
534
534
  }
535
- const displayName = selectDisplayName18(current);
535
+ const displayName = selectDisplayName19(current);
536
536
  result[identifiers[0]] = {
537
537
  id: identifiers,
538
538
  object: current,
@@ -562,7 +562,7 @@ async function createArraySyncEngineDataSource({
562
562
  delete objectIndex[providerId];
563
563
  },
564
564
  writeObject: async (objectToWrite) => {
565
- const id = selectIdentifier18(objectToWrite.object);
565
+ const id = selectIdentifier19(objectToWrite.object);
566
566
  if (Array.isArray(id)) {
567
567
  objectIndex[id[0]] = objectToWrite;
568
568
  } else {
@@ -645,8 +645,8 @@ function isErrorWithCode(error, code) {
645
645
  async function createFileSyncEngineDataSource({
646
646
  directory,
647
647
  format = "yaml",
648
- selectIdentifier: selectIdentifier18,
649
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
648
+ selectIdentifier: selectIdentifier19,
649
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
650
650
  selectFilename: selectFilename3,
651
651
  selectSchemaUrl: selectSchemaUrl2,
652
652
  onBeforeDeleteObject,
@@ -675,9 +675,9 @@ async function createFileSyncEngineDataSource({
675
675
  const fullFilename = join(directory, filename);
676
676
  try {
677
677
  const contents = readFileToObject(fullFilename);
678
- const displayName = selectDisplayName18(contents);
678
+ const displayName = selectDisplayName19(contents);
679
679
  const object4 = {
680
- id: selectIdentifier18(contents),
680
+ id: selectIdentifier19(contents),
681
681
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
682
682
  providerId: fullFilename,
683
683
  object: omit(contents, ["$schema"])
@@ -1205,13 +1205,13 @@ async function fetchUserAndEnsureFirstTeamExists({
1205
1205
  }
1206
1206
 
1207
1207
  // src/telemetry/telemetry.ts
1208
- import crypto from "crypto";
1208
+ import crypto2 from "crypto";
1209
1209
  import { PostHog } from "posthog-node";
1210
1210
  var POSTHOG_WRITE_ONLY_KEY = "phc_c8YoKI9984KOHBfNrCRfIKvL56aYd5OpYxOdYexRzH7";
1211
1211
  var Telemetry = class {
1212
1212
  constructor(prefix, disable = false) {
1213
1213
  this.prefix = prefix;
1214
- this.distinctId = crypto.randomBytes(20).toString("hex");
1214
+ this.distinctId = crypto2.randomBytes(20).toString("hex");
1215
1215
  if (!disable) {
1216
1216
  this.posthog = new PostHog(POSTHOG_WRITE_ONLY_KEY, {
1217
1217
  flushAt: 1,
@@ -1402,8 +1402,8 @@ function getExistingServers(config2) {
1402
1402
  var InstallMcpCommand = {
1403
1403
  command: "install",
1404
1404
  describe: "Install Uniform MCP server configuration (use --team, --project, and --apiKey for non-interactive mode)",
1405
- builder: (yargs44) => withConfiguration(
1406
- yargs44.option("agent", {
1405
+ builder: (yargs45) => withConfiguration(
1406
+ yargs45.option("agent", {
1407
1407
  alias: "a",
1408
1408
  describe: "Specify agent type (cursor, claude, copilot, other)",
1409
1409
  type: "string",
@@ -1603,7 +1603,7 @@ Selected agent: ${agentType}`));
1603
1603
  var McpCommand = {
1604
1604
  command: "mcp <command>",
1605
1605
  describe: "Uniform MCP server management commands",
1606
- builder: (yargs44) => yargs44.command(InstallMcpCommand).demandCommand(),
1606
+ builder: (yargs45) => yargs45.command(InstallMcpCommand).demandCommand(),
1607
1607
  handler: () => {
1608
1608
  yargs.showHelp();
1609
1609
  }
@@ -2078,8 +2078,8 @@ ${gray2("Rules source:")} https://github.com/uniformdev/ai-rules`);
2078
2078
  var InstallRulesCommand = {
2079
2079
  command: "install",
2080
2080
  describe: "Install Uniform AI rules for your development assistant",
2081
- builder: (yargs44) => withConfiguration(
2082
- yargs44.option("agent", {
2081
+ builder: (yargs45) => withConfiguration(
2082
+ yargs45.option("agent", {
2083
2083
  alias: "a",
2084
2084
  describe: "Specify agent type (cursor, claude, copilot, other)",
2085
2085
  type: "string",
@@ -2117,7 +2117,7 @@ import { blue as blue4, bold as bold2, gray as gray3, green as green5, red as re
2117
2117
  var ListRulesCommand = {
2118
2118
  command: "list",
2119
2119
  describe: "List available Uniform AI rules",
2120
- builder: (yargs44) => withConfiguration(yargs44),
2120
+ builder: (yargs45) => withConfiguration(yargs45),
2121
2121
  handler: async function() {
2122
2122
  const { stopAllSpinners, spin } = makeSpinner();
2123
2123
  try {
@@ -2146,7 +2146,7 @@ var ListRulesCommand = {
2146
2146
  var RulesCommand = {
2147
2147
  command: "rules <command>",
2148
2148
  describe: "Uniform AI rules management commands",
2149
- builder: (yargs44) => yargs44.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2149
+ builder: (yargs45) => yargs45.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2150
2150
  handler: () => {
2151
2151
  yargs2.showHelp();
2152
2152
  }
@@ -2156,7 +2156,7 @@ var RulesCommand = {
2156
2156
  var AiCommand = {
2157
2157
  command: "ai <command>",
2158
2158
  describe: "Uniform AI development assistant commands",
2159
- builder: (yargs44) => yargs44.command(RulesCommand).command(McpCommand).demandCommand(),
2159
+ builder: (yargs45) => yargs45.command(RulesCommand).command(McpCommand).demandCommand(),
2160
2160
  handler: () => {
2161
2161
  yargs3.showHelp();
2162
2162
  }
@@ -2241,10 +2241,10 @@ function resolveDeleteTargets(identifiers) {
2241
2241
  var AutomationDeleteModule = {
2242
2242
  command: "delete <identifiers..>",
2243
2243
  describe: "Deletes one or more automations from a project.",
2244
- builder: (yargs44) => withConfiguration(
2244
+ builder: (yargs45) => withConfiguration(
2245
2245
  withApiOptions(
2246
2246
  withProjectOptions(
2247
- yargs44.positional("identifiers", {
2247
+ yargs45.positional("identifiers", {
2248
2248
  array: true,
2249
2249
  type: "string",
2250
2250
  demandOption: true,
@@ -2468,10 +2468,10 @@ function assertUniquePublicIds(files) {
2468
2468
  var AutomationDeployModule = {
2469
2469
  command: "deploy <paths..>",
2470
2470
  describe: "Deploys one or more automations to a project.",
2471
- builder: (yargs44) => withConfiguration(
2471
+ builder: (yargs45) => withConfiguration(
2472
2472
  withApiOptions(
2473
2473
  withProjectOptions(
2474
- yargs44.positional("paths", {
2474
+ yargs45.positional("paths", {
2475
2475
  array: true,
2476
2476
  type: "string",
2477
2477
  demandOption: true,
@@ -2539,7 +2539,7 @@ var AutomationListModule = {
2539
2539
  command: "list",
2540
2540
  aliases: ["ls"],
2541
2541
  describe: "Lists the automations in a project.",
2542
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
2542
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
2543
2543
  handler: async ({ apiHost, apiKey, proxy, project: projectId }) => {
2544
2544
  const fetch2 = nodeFetchProxy(proxy);
2545
2545
  const client = new AutomationsClient3({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2570,14 +2570,14 @@ var AutomationCommand = {
2570
2570
  command: "automation <command>",
2571
2571
  aliases: ["automations"],
2572
2572
  describe: "Commands for managing Uniform Automations",
2573
- builder: (yargs44) => yargs44.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2573
+ builder: (yargs45) => yargs45.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2574
2574
  handler: () => {
2575
2575
  yargs4.showHelp();
2576
2576
  }
2577
2577
  };
2578
2578
 
2579
2579
  // src/commands/canvas/index.ts
2580
- import yargs22 from "yargs";
2580
+ import yargs23 from "yargs";
2581
2581
 
2582
2582
  // src/commands/canvas/commands/asset.ts
2583
2583
  import yargs5 from "yargs";
@@ -2598,12 +2598,12 @@ function getFileClient(options) {
2598
2598
  var AssetGetModule = {
2599
2599
  command: "get <id>",
2600
2600
  describe: "Get an asset",
2601
- builder: (yargs44) => withConfiguration(
2601
+ builder: (yargs45) => withConfiguration(
2602
2602
  withDebugOptions(
2603
2603
  withFormatOptions(
2604
2604
  withApiOptions(
2605
2605
  withProjectOptions(
2606
- yargs44.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2606
+ yargs45.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2607
2607
  )
2608
2608
  )
2609
2609
  )
@@ -2624,7 +2624,7 @@ var AssetGetModule = {
2624
2624
  var AssetListModule = {
2625
2625
  command: "list",
2626
2626
  describe: "List assets",
2627
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
2627
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
2628
2628
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
2629
2629
  const fetch2 = nodeFetchProxy(proxy, verbose);
2630
2630
  const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2692,7 +2692,6 @@ var deleteDownloadedFileByUrl = async (url, options) => {
2692
2692
  };
2693
2693
 
2694
2694
  // src/files/files.ts
2695
- import { selectWritableAssetFields } from "@uniformdev/assets";
2696
2695
  import {
2697
2696
  ASSETS_SOURCE_UNIFORM,
2698
2697
  getPropertiesValue as getPropertiesValue2,
@@ -3149,15 +3148,17 @@ var compareCompositionsOrEntriesWithoutAssetUrlsForPublishing = (source, target)
3149
3148
  }
3150
3149
  return compareCompositionsOrEntriesWithoutAssetUrls(source, target);
3151
3150
  };
3152
- var selectComparableAsset = ({ asset }) => ({
3153
- _id: asset._id,
3154
- _name: asset._name,
3155
- _dataResources: asset._dataResources,
3156
- labels: asset.labels,
3157
- fields: selectWritableAssetFields(asset.fields)
3158
- });
3151
+ var removeUrlFromAsset = (asset) => {
3152
+ if (asset.asset.fields?.url?.value) {
3153
+ asset.asset.fields.url.value = "";
3154
+ }
3155
+ return asset;
3156
+ };
3159
3157
  var compareAssetsWithoutUrls = (source, target) => {
3160
- return serializedDequal(selectComparableAsset(source.object), selectComparableAsset(target.object));
3158
+ return serializedDequal(
3159
+ removeUrlFromAsset(structuredClone(source.object)),
3160
+ removeUrlFromAsset(structuredClone(target.object))
3161
+ );
3161
3162
  };
3162
3163
  var downloadFilesForCompositionOrEntry = async ({
3163
3164
  entity,
@@ -3301,8 +3302,8 @@ function prepCompositionForDisk(composition) {
3301
3302
  delete prepped.state;
3302
3303
  return prepped;
3303
3304
  }
3304
- function withStateOptions(yargs44, defaultState = "preview") {
3305
- return yargs44.option("state", {
3305
+ function withStateOptions(yargs45, defaultState = "preview") {
3306
+ return yargs45.option("state", {
3306
3307
  type: "string",
3307
3308
  describe: `State to fetch.`,
3308
3309
  choices: ["preview", "published"],
@@ -3400,13 +3401,13 @@ var prepareAssetForPull = async ({
3400
3401
  var AssetPullModule = {
3401
3402
  command: "pull <directory>",
3402
3403
  describe: "Pulls all assets to local files in a directory",
3403
- builder: (yargs44) => withConfiguration(
3404
+ builder: (yargs45) => withConfiguration(
3404
3405
  withApiOptions(
3405
3406
  withDebugOptions(
3406
3407
  withProjectOptions(
3407
3408
  withDiffOptions(
3408
3409
  withBatchSizeOptions(
3409
- yargs44.positional("directory", {
3410
+ yargs45.positional("directory", {
3410
3411
  describe: "Directory to save the assets to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3411
3412
  type: "string"
3412
3413
  }).option("format", {
@@ -3570,13 +3571,13 @@ var prepareAssetForPush = async ({
3570
3571
  var AssetPushModule = {
3571
3572
  command: "push <directory>",
3572
3573
  describe: "Pushes all assets from files in a directory to Uniform",
3573
- builder: (yargs44) => withConfiguration(
3574
+ builder: (yargs45) => withConfiguration(
3574
3575
  withApiOptions(
3575
3576
  withDebugOptions(
3576
3577
  withProjectOptions(
3577
3578
  withDiffOptions(
3578
3579
  withBatchSizeOptions(
3579
- yargs44.positional("directory", {
3580
+ yargs45.positional("directory", {
3580
3581
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
3581
3582
  type: "string"
3582
3583
  }).option("mode", {
@@ -3693,10 +3694,10 @@ var AssetRemoveModule = {
3693
3694
  command: "remove <id>",
3694
3695
  aliases: ["delete", "rm"],
3695
3696
  describe: "Delete an asset",
3696
- builder: (yargs44) => withConfiguration(
3697
+ builder: (yargs45) => withConfiguration(
3697
3698
  withDebugOptions(
3698
3699
  withApiOptions(
3699
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3700
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3700
3701
  )
3701
3702
  )
3702
3703
  ),
@@ -3717,11 +3718,11 @@ var AssetUpdateModule = {
3717
3718
  command: "update <filename>",
3718
3719
  aliases: ["put"],
3719
3720
  describe: "Insert or update an asset",
3720
- builder: (yargs44) => withConfiguration(
3721
+ builder: (yargs45) => withConfiguration(
3721
3722
  withDebugOptions(
3722
3723
  withApiOptions(
3723
3724
  withProjectOptions(
3724
- yargs44.positional("filename", { demandOption: true, describe: "Asset file to put" })
3725
+ yargs45.positional("filename", { demandOption: true, describe: "Asset file to put" })
3725
3726
  )
3726
3727
  )
3727
3728
  )
@@ -3747,7 +3748,7 @@ var AssetUpdateModule = {
3747
3748
  var AssetModule = {
3748
3749
  command: "asset <command>",
3749
3750
  describe: "Commands for Assets",
3750
- builder: (yargs44) => yargs44.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3751
+ builder: (yargs45) => yargs45.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3751
3752
  handler: () => {
3752
3753
  yargs5.help();
3753
3754
  }
@@ -3768,12 +3769,12 @@ function getCategoryClient(options) {
3768
3769
  var CategoryGetModule = {
3769
3770
  command: "get <id>",
3770
3771
  describe: "Fetch a category",
3771
- builder: (yargs44) => withConfiguration(
3772
+ builder: (yargs45) => withConfiguration(
3772
3773
  withFormatOptions(
3773
3774
  withDebugOptions(
3774
3775
  withApiOptions(
3775
3776
  withProjectOptions(
3776
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3777
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3777
3778
  )
3778
3779
  )
3779
3780
  )
@@ -3798,8 +3799,8 @@ var CategoryListModule = {
3798
3799
  command: "list",
3799
3800
  describe: "List categories",
3800
3801
  aliases: ["ls"],
3801
- builder: (yargs44) => withConfiguration(
3802
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
3802
+ builder: (yargs45) => withConfiguration(
3803
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
3803
3804
  ),
3804
3805
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3805
3806
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3841,12 +3842,12 @@ function createCategoriesEngineDataSource({
3841
3842
  var CategoryPullModule = {
3842
3843
  command: "pull <directory>",
3843
3844
  describe: "Pulls all categories to local files in a directory",
3844
- builder: (yargs44) => withConfiguration(
3845
+ builder: (yargs45) => withConfiguration(
3845
3846
  withApiOptions(
3846
3847
  withProjectOptions(
3847
3848
  withDiffOptions(
3848
3849
  withDebugOptions(
3849
- yargs44.positional("directory", {
3850
+ yargs45.positional("directory", {
3850
3851
  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.",
3851
3852
  type: "string"
3852
3853
  }).option("format", {
@@ -3921,12 +3922,12 @@ var CategoryPullModule = {
3921
3922
  var CategoryPushModule = {
3922
3923
  command: "push <directory>",
3923
3924
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
3924
- builder: (yargs44) => withConfiguration(
3925
+ builder: (yargs45) => withConfiguration(
3925
3926
  withApiOptions(
3926
3927
  withDebugOptions(
3927
3928
  withProjectOptions(
3928
3929
  withDiffOptions(
3929
- yargs44.positional("directory", {
3930
+ yargs45.positional("directory", {
3930
3931
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
3931
3932
  type: "string"
3932
3933
  }).option("mode", {
@@ -3990,11 +3991,11 @@ var CategoryRemoveModule = {
3990
3991
  command: "remove <id>",
3991
3992
  aliases: ["delete", "rm"],
3992
3993
  describe: "Delete a category",
3993
- builder: (yargs44) => withConfiguration(
3994
+ builder: (yargs45) => withConfiguration(
3994
3995
  withApiOptions(
3995
3996
  withDebugOptions(
3996
3997
  withProjectOptions(
3997
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to delete" })
3998
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to delete" })
3998
3999
  )
3999
4000
  )
4000
4001
  )
@@ -4015,11 +4016,11 @@ var CategoryUpdateModule = {
4015
4016
  command: "update <filename>",
4016
4017
  aliases: ["put"],
4017
4018
  describe: "Insert or update a category",
4018
- builder: (yargs44) => withConfiguration(
4019
+ builder: (yargs45) => withConfiguration(
4019
4020
  withApiOptions(
4020
4021
  withDebugOptions(
4021
4022
  withProjectOptions(
4022
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
4023
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
4023
4024
  )
4024
4025
  )
4025
4026
  )
@@ -4041,7 +4042,7 @@ var CategoryModule = {
4041
4042
  command: "category <command>",
4042
4043
  aliases: ["cat"],
4043
4044
  describe: "Commands for Canvas categories",
4044
- builder: (yargs44) => yargs44.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4045
+ builder: (yargs45) => yargs45.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4045
4046
  handler: () => {
4046
4047
  yargs6.help();
4047
4048
  }
@@ -4073,12 +4074,12 @@ function getCompositionDeliveryClient(options) {
4073
4074
  var ComponentGetModule = {
4074
4075
  command: "get <id>",
4075
4076
  describe: "Fetch a component definition",
4076
- builder: (yargs44) => withConfiguration(
4077
+ builder: (yargs45) => withConfiguration(
4077
4078
  withFormatOptions(
4078
4079
  withDebugOptions(
4079
4080
  withApiOptions(
4080
4081
  withProjectOptions(
4081
- yargs44.positional("id", {
4082
+ yargs45.positional("id", {
4082
4083
  demandOption: true,
4083
4084
  describe: "Component definition public ID to fetch"
4084
4085
  })
@@ -4112,12 +4113,12 @@ var ComponentListModule = {
4112
4113
  command: "list",
4113
4114
  describe: "List component definitions",
4114
4115
  aliases: ["ls"],
4115
- builder: (yargs44) => withConfiguration(
4116
+ builder: (yargs45) => withConfiguration(
4116
4117
  withFormatOptions(
4117
4118
  withDebugOptions(
4118
4119
  withApiOptions(
4119
4120
  withProjectOptions(
4120
- yargs44.options({
4121
+ yargs45.options({
4121
4122
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4122
4123
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
4123
4124
  })
@@ -4188,13 +4189,13 @@ function createComponentDefinitionEngineDataSource({
4188
4189
  var ComponentPullModule = {
4189
4190
  command: "pull <directory>",
4190
4191
  describe: "Pulls all component definitions to local files in a directory",
4191
- builder: (yargs44) => withConfiguration(
4192
+ builder: (yargs45) => withConfiguration(
4192
4193
  withApiOptions(
4193
4194
  withDebugOptions(
4194
4195
  withProjectOptions(
4195
4196
  withDiffOptions(
4196
4197
  withBatchSizeOptions(
4197
- yargs44.positional("directory", {
4198
+ yargs45.positional("directory", {
4198
4199
  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.",
4199
4200
  type: "string"
4200
4201
  }).option("format", {
@@ -4277,13 +4278,13 @@ var ComponentPullModule = {
4277
4278
  var ComponentPushModule = {
4278
4279
  command: "push <directory>",
4279
4280
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
4280
- builder: (yargs44) => withConfiguration(
4281
+ builder: (yargs45) => withConfiguration(
4281
4282
  withApiOptions(
4282
4283
  withDebugOptions(
4283
4284
  withProjectOptions(
4284
4285
  withDiffOptions(
4285
4286
  withBatchSizeOptions(
4286
- yargs44.positional("directory", {
4287
+ yargs45.positional("directory", {
4287
4288
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
4288
4289
  type: "string"
4289
4290
  }).option("mode", {
@@ -4355,11 +4356,11 @@ var ComponentRemoveModule = {
4355
4356
  command: "remove <id>",
4356
4357
  aliases: ["delete", "rm"],
4357
4358
  describe: "Delete a component definition",
4358
- builder: (yargs44) => withConfiguration(
4359
+ builder: (yargs45) => withConfiguration(
4359
4360
  withDebugOptions(
4360
4361
  withApiOptions(
4361
4362
  withProjectOptions(
4362
- yargs44.positional("id", {
4363
+ yargs45.positional("id", {
4363
4364
  demandOption: true,
4364
4365
  describe: "Component definition public ID to delete"
4365
4366
  })
@@ -4383,11 +4384,11 @@ var ComponentUpdateModule = {
4383
4384
  command: "update <filename>",
4384
4385
  aliases: ["put"],
4385
4386
  describe: "Insert or update a component definition",
4386
- builder: (yargs44) => withConfiguration(
4387
+ builder: (yargs45) => withConfiguration(
4387
4388
  withApiOptions(
4388
4389
  withDebugOptions(
4389
4390
  withProjectOptions(
4390
- yargs44.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4391
+ yargs45.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4391
4392
  )
4392
4393
  )
4393
4394
  )
@@ -4409,7 +4410,7 @@ var ComponentModule = {
4409
4410
  command: "component <command>",
4410
4411
  aliases: ["def"],
4411
4412
  describe: "Commands for Canvas component definitions",
4412
- builder: (yargs44) => yargs44.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4413
+ builder: (yargs45) => yargs45.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4413
4414
  handler: () => {
4414
4415
  yargs7.help();
4415
4416
  }
@@ -4572,13 +4573,13 @@ function createCompositionGetHandler(expectedType) {
4572
4573
  var CompositionGetModule = {
4573
4574
  command: "get <id>",
4574
4575
  describe: "Fetch a composition",
4575
- builder: (yargs44) => withFormatOptions(
4576
+ builder: (yargs45) => withFormatOptions(
4576
4577
  withConfiguration(
4577
4578
  withApiOptions(
4578
4579
  withProjectOptions(
4579
4580
  withStateOptions(
4580
4581
  withDebugOptions(
4581
- yargs44.positional("id", {
4582
+ yargs45.positional("id", {
4582
4583
  demandOption: true,
4583
4584
  describe: "Composition public ID to fetch"
4584
4585
  }).option({
@@ -4630,13 +4631,13 @@ var CompositionListModule = {
4630
4631
  command: "list",
4631
4632
  describe: "List compositions",
4632
4633
  aliases: ["ls"],
4633
- builder: (yargs44) => withFormatOptions(
4634
+ builder: (yargs45) => withFormatOptions(
4634
4635
  withConfiguration(
4635
4636
  withApiOptions(
4636
4637
  withProjectOptions(
4637
4638
  withDebugOptions(
4638
4639
  withStateOptions(
4639
- yargs44.options({
4640
+ yargs45.options({
4640
4641
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4641
4642
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4642
4643
  search: { describe: "Search query", type: "string", default: "" },
@@ -4710,13 +4711,13 @@ var CompositionListModule = {
4710
4711
  var ComponentPatternListModule = {
4711
4712
  ...CompositionListModule,
4712
4713
  describe: "List component patterns",
4713
- builder: (yargs44) => withFormatOptions(
4714
+ builder: (yargs45) => withFormatOptions(
4714
4715
  withConfiguration(
4715
4716
  withApiOptions(
4716
4717
  withDebugOptions(
4717
4718
  withProjectOptions(
4718
4719
  withStateOptions(
4719
- yargs44.options({
4720
+ yargs45.options({
4720
4721
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4721
4722
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4722
4723
  resolvePatterns: {
@@ -4831,13 +4832,13 @@ function createComponentInstanceEngineDataSource({
4831
4832
  var CompositionPublishModule = {
4832
4833
  command: "publish [ids]",
4833
4834
  describe: "Publishes composition(s)",
4834
- builder: (yargs44) => withConfiguration(
4835
+ builder: (yargs45) => withConfiguration(
4835
4836
  withApiOptions(
4836
4837
  withProjectOptions(
4837
4838
  withDebugOptions(
4838
4839
  withDiffOptions(
4839
4840
  withBatchSizeOptions(
4840
- yargs44.positional("ids", {
4841
+ yargs45.positional("ids", {
4841
4842
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4842
4843
  type: "string"
4843
4844
  }).option("all", {
@@ -4935,13 +4936,13 @@ var CompositionPublishModule = {
4935
4936
  var ComponentPatternPublishModule = {
4936
4937
  ...CompositionPublishModule,
4937
4938
  describe: "Publishes component pattern(s)",
4938
- builder: (yargs44) => withConfiguration(
4939
+ builder: (yargs45) => withConfiguration(
4939
4940
  withApiOptions(
4940
4941
  withDebugOptions(
4941
4942
  withProjectOptions(
4942
4943
  withDiffOptions(
4943
4944
  withBatchSizeOptions(
4944
- yargs44.positional("ids", {
4945
+ yargs45.positional("ids", {
4945
4946
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4946
4947
  type: "string"
4947
4948
  }).option("all", {
@@ -4983,14 +4984,14 @@ function componentInstancePullModuleFactory(type, entityType) {
4983
4984
  return {
4984
4985
  command: "pull <directory>",
4985
4986
  describe: "Pulls all compositions to local files in a directory",
4986
- builder: (yargs44) => withConfiguration(
4987
+ builder: (yargs45) => withConfiguration(
4987
4988
  withApiOptions(
4988
4989
  withProjectOptions(
4989
4990
  withStateOptions(
4990
4991
  withDebugOptions(
4991
4992
  withDiffOptions(
4992
4993
  withBatchSizeOptions(
4993
- yargs44.positional("directory", {
4994
+ yargs45.positional("directory", {
4994
4995
  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.",
4995
4996
  type: "string"
4996
4997
  }).option("format", {
@@ -5109,13 +5110,13 @@ function componentInstancePullModuleFactory(type, entityType) {
5109
5110
  var ComponentPatternPullModule = {
5110
5111
  ...componentInstancePullModuleFactory("componentPatterns", "componentPattern"),
5111
5112
  describe: "Pulls all component patterns to local files in a directory",
5112
- builder: (yargs44) => withConfiguration(
5113
+ builder: (yargs45) => withConfiguration(
5113
5114
  withApiOptions(
5114
5115
  withProjectOptions(
5115
5116
  withDebugOptions(
5116
5117
  withStateOptions(
5117
5118
  withDiffOptions(
5118
- yargs44.positional("directory", {
5119
+ yargs45.positional("directory", {
5119
5120
  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.",
5120
5121
  type: "string"
5121
5122
  }).option("format", {
@@ -5189,14 +5190,14 @@ function componentInstancePushModuleFactory(type, entityType) {
5189
5190
  return {
5190
5191
  command: "push <directory>",
5191
5192
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
5192
- builder: (yargs44) => withConfiguration(
5193
+ builder: (yargs45) => withConfiguration(
5193
5194
  withApiOptions(
5194
5195
  withProjectOptions(
5195
5196
  withStateOptions(
5196
5197
  withDebugOptions(
5197
5198
  withDiffOptions(
5198
5199
  withBatchSizeOptions(
5199
- yargs44.positional("directory", {
5200
+ yargs45.positional("directory", {
5200
5201
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
5201
5202
  type: "string"
5202
5203
  }).option("mode", {
@@ -5314,13 +5315,13 @@ function componentInstancePushModuleFactory(type, entityType) {
5314
5315
  var ComponentPatternPushModule = {
5315
5316
  ...componentInstancePushModuleFactory("componentPatterns", "componentPattern"),
5316
5317
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
5317
- builder: (yargs44) => withConfiguration(
5318
+ builder: (yargs45) => withConfiguration(
5318
5319
  withApiOptions(
5319
5320
  withProjectOptions(
5320
5321
  withStateOptions(
5321
5322
  withDiffOptions(
5322
5323
  withDebugOptions(
5323
- yargs44.positional("directory", {
5324
+ yargs45.positional("directory", {
5324
5325
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
5325
5326
  type: "string"
5326
5327
  }).option("mode", {
@@ -5385,11 +5386,11 @@ var CompositionRemoveModule = {
5385
5386
  command: "remove <id>",
5386
5387
  aliases: ["delete", "rm"],
5387
5388
  describe: "Delete a composition",
5388
- builder: (yargs44) => withConfiguration(
5389
+ builder: (yargs45) => withConfiguration(
5389
5390
  withApiOptions(
5390
5391
  withDebugOptions(
5391
5392
  withProjectOptions(
5392
- yargs44.positional("id", {
5393
+ yargs45.positional("id", {
5393
5394
  demandOption: true,
5394
5395
  describe: "Composition public ID to delete"
5395
5396
  })
@@ -5413,12 +5414,12 @@ import { diffJson as diffJson2 } from "diff";
5413
5414
  var CompositionUnpublishModule = {
5414
5415
  command: "unpublish [ids]",
5415
5416
  describe: "Unpublish a composition(s)",
5416
- builder: (yargs44) => withConfiguration(
5417
+ builder: (yargs45) => withConfiguration(
5417
5418
  withApiOptions(
5418
5419
  withDebugOptions(
5419
5420
  withProjectOptions(
5420
5421
  withBatchSizeOptions(
5421
- yargs44.positional("ids", {
5422
+ yargs45.positional("ids", {
5422
5423
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5423
5424
  type: "string"
5424
5425
  }).option("all", {
@@ -5534,11 +5535,11 @@ var CompositionUnpublishModule = {
5534
5535
  var ComponentPatternUnpublishModule = {
5535
5536
  command: "unpublish [ids]",
5536
5537
  describe: "Unpublish a component pattern(s)",
5537
- builder: (yargs44) => withConfiguration(
5538
+ builder: (yargs45) => withConfiguration(
5538
5539
  withApiOptions(
5539
5540
  withDebugOptions(
5540
5541
  withProjectOptions(
5541
- yargs44.positional("ids", {
5542
+ yargs45.positional("ids", {
5542
5543
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5543
5544
  type: "string"
5544
5545
  }).option("all", {
@@ -5606,12 +5607,12 @@ var CompositionUpdateModule = {
5606
5607
  command: "update <filename>",
5607
5608
  aliases: ["put"],
5608
5609
  describe: "Insert or update a composition",
5609
- builder: (yargs44) => withConfiguration(
5610
+ builder: (yargs45) => withConfiguration(
5610
5611
  withApiOptions(
5611
5612
  withProjectOptions(
5612
5613
  withDebugOptions(
5613
5614
  withStateOptions(
5614
- yargs44.positional("filename", {
5615
+ yargs45.positional("filename", {
5615
5616
  demandOption: true,
5616
5617
  describe: "Composition/pattern file to put"
5617
5618
  })
@@ -5634,7 +5635,7 @@ var ComponentPatternUpdateModule = {
5634
5635
  var ComponentPatternModule = {
5635
5636
  command: "component-pattern <command>",
5636
5637
  describe: "Commands for Canvas component patterns",
5637
- builder: (yargs44) => yargs44.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5638
+ builder: (yargs45) => yargs45.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5638
5639
  handler: () => {
5639
5640
  yargs8.help();
5640
5641
  }
@@ -5646,7 +5647,7 @@ var CompositionModule = {
5646
5647
  command: "composition <command>",
5647
5648
  describe: "Commands for Canvas compositions",
5648
5649
  aliases: ["comp"],
5649
- builder: (yargs44) => yargs44.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5650
+ builder: (yargs45) => yargs45.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5650
5651
  handler: () => {
5651
5652
  yargs9.help();
5652
5653
  }
@@ -5666,13 +5667,13 @@ var CompositionPatternGetModule = {
5666
5667
  var CompositionPatternListModule = {
5667
5668
  ...CompositionListModule,
5668
5669
  describe: "List composition patterns",
5669
- builder: (yargs44) => withFormatOptions(
5670
+ builder: (yargs45) => withFormatOptions(
5670
5671
  withConfiguration(
5671
5672
  withApiOptions(
5672
5673
  withDebugOptions(
5673
5674
  withProjectOptions(
5674
5675
  withStateOptions(
5675
- yargs44.options({
5676
+ yargs45.options({
5676
5677
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
5677
5678
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
5678
5679
  resolvePatterns: {
@@ -5710,13 +5711,13 @@ var CompositionPatternListModule = {
5710
5711
  var CompositionPatternPublishModule = {
5711
5712
  ...CompositionPublishModule,
5712
5713
  describe: "Publishes composition pattern(s)",
5713
- builder: (yargs44) => withConfiguration(
5714
+ builder: (yargs45) => withConfiguration(
5714
5715
  withApiOptions(
5715
5716
  withDebugOptions(
5716
5717
  withProjectOptions(
5717
5718
  withDiffOptions(
5718
5719
  withBatchSizeOptions(
5719
- yargs44.positional("ids", {
5720
+ yargs45.positional("ids", {
5720
5721
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5721
5722
  type: "string"
5722
5723
  }).option("all", {
@@ -5757,13 +5758,13 @@ var CompositionPatternPublishModule = {
5757
5758
  var CompositionPatternPullModule = {
5758
5759
  ...componentInstancePullModuleFactory("compositionPatterns", "compositionPattern"),
5759
5760
  describe: "Pulls all composition patterns to local files in a directory",
5760
- builder: (yargs44) => withConfiguration(
5761
+ builder: (yargs45) => withConfiguration(
5761
5762
  withApiOptions(
5762
5763
  withDebugOptions(
5763
5764
  withProjectOptions(
5764
5765
  withStateOptions(
5765
5766
  withDiffOptions(
5766
- yargs44.positional("directory", {
5767
+ yargs45.positional("directory", {
5767
5768
  describe: "Directory to save the composition patterns to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5768
5769
  type: "string"
5769
5770
  }).option("format", {
@@ -5801,13 +5802,13 @@ var CompositionPatternPullModule = {
5801
5802
  var CompositionPatternPushModule = {
5802
5803
  ...componentInstancePushModuleFactory("compositionPatterns", "compositionPattern"),
5803
5804
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
5804
- builder: (yargs44) => withConfiguration(
5805
+ builder: (yargs45) => withConfiguration(
5805
5806
  withApiOptions(
5806
5807
  withDebugOptions(
5807
5808
  withProjectOptions(
5808
5809
  withStateOptions(
5809
5810
  withDiffOptions(
5810
- yargs44.positional("directory", {
5811
+ yargs45.positional("directory", {
5811
5812
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
5812
5813
  type: "string"
5813
5814
  }).option("mode", {
@@ -5847,11 +5848,11 @@ var CompositionPatternRemoveModule = {
5847
5848
  var CompositionPatternUnpublishModule = {
5848
5849
  command: "unpublish [ids]",
5849
5850
  describe: "Unpublish a composition pattern(s)",
5850
- builder: (yargs44) => withConfiguration(
5851
+ builder: (yargs45) => withConfiguration(
5851
5852
  withApiOptions(
5852
5853
  withDebugOptions(
5853
5854
  withProjectOptions(
5854
- yargs44.positional("ids", {
5855
+ yargs45.positional("ids", {
5855
5856
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5856
5857
  type: "string"
5857
5858
  }).option("all", {
@@ -5888,7 +5889,7 @@ var CompositionPatternUpdateModule = {
5888
5889
  var CompositionPatternModule = {
5889
5890
  command: "composition-pattern <command>",
5890
5891
  describe: "Commands for Canvas composition patterns",
5891
- builder: (yargs44) => yargs44.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5892
+ builder: (yargs45) => yargs45.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5892
5893
  handler: () => {
5893
5894
  yargs10.help();
5894
5895
  }
@@ -5919,12 +5920,12 @@ function getEntryDeliveryClient(options) {
5919
5920
  var ContentTypeGetModule = {
5920
5921
  command: "get <id>",
5921
5922
  describe: "Get a content type",
5922
- builder: (yargs44) => withConfiguration(
5923
+ builder: (yargs45) => withConfiguration(
5923
5924
  withDebugOptions(
5924
5925
  withFormatOptions(
5925
5926
  withApiOptions(
5926
5927
  withProjectOptions(
5927
- yargs44.positional("id", {
5928
+ yargs45.positional("id", {
5928
5929
  demandOption: true,
5929
5930
  describe: "Content type public ID to fetch"
5930
5931
  })
@@ -5945,7 +5946,7 @@ var ContentTypeGetModule = {
5945
5946
  var ContentTypeListModule = {
5946
5947
  command: "list",
5947
5948
  describe: "List content types",
5948
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
5949
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
5949
5950
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
5950
5951
  const fetch2 = nodeFetchProxy(proxy, verbose);
5951
5952
  const client = getContentTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -5991,13 +5992,13 @@ function createContentTypeEngineDataSource({
5991
5992
  var ContentTypePullModule = {
5992
5993
  command: "pull <directory>",
5993
5994
  describe: "Pulls all content types to local files in a directory",
5994
- builder: (yargs44) => withConfiguration(
5995
+ builder: (yargs45) => withConfiguration(
5995
5996
  withApiOptions(
5996
5997
  withDebugOptions(
5997
5998
  withProjectOptions(
5998
5999
  withDiffOptions(
5999
6000
  withBatchSizeOptions(
6000
- yargs44.positional("directory", {
6001
+ yargs45.positional("directory", {
6001
6002
  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.",
6002
6003
  type: "string"
6003
6004
  }).option("format", {
@@ -6084,13 +6085,13 @@ var ContentTypePullModule = {
6084
6085
  var ContentTypePushModule = {
6085
6086
  command: "push <directory>",
6086
6087
  describe: "Pushes all content types from files in a directory to Uniform",
6087
- builder: (yargs44) => withConfiguration(
6088
+ builder: (yargs45) => withConfiguration(
6088
6089
  withApiOptions(
6089
6090
  withDebugOptions(
6090
6091
  withProjectOptions(
6091
6092
  withDiffOptions(
6092
6093
  withBatchSizeOptions(
6093
- yargs44.positional("directory", {
6094
+ yargs45.positional("directory", {
6094
6095
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
6095
6096
  type: "string"
6096
6097
  }).option("what-if", {
@@ -6171,11 +6172,11 @@ var ContentTypeRemoveModule = {
6171
6172
  command: "remove <id>",
6172
6173
  aliases: ["delete", "rm"],
6173
6174
  describe: "Delete a content type",
6174
- builder: (yargs44) => withConfiguration(
6175
+ builder: (yargs45) => withConfiguration(
6175
6176
  withDebugOptions(
6176
6177
  withApiOptions(
6177
6178
  withProjectOptions(
6178
- yargs44.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6179
+ yargs45.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6179
6180
  )
6180
6181
  )
6181
6182
  )
@@ -6196,11 +6197,11 @@ var ContentTypeUpdateModule = {
6196
6197
  command: "update <filename>",
6197
6198
  aliases: ["put"],
6198
6199
  describe: "Insert or update a content type",
6199
- builder: (yargs44) => withConfiguration(
6200
+ builder: (yargs45) => withConfiguration(
6200
6201
  withDebugOptions(
6201
6202
  withApiOptions(
6202
6203
  withProjectOptions(
6203
- yargs44.positional("filename", { demandOption: true, describe: "Content type file to put" })
6204
+ yargs45.positional("filename", { demandOption: true, describe: "Content type file to put" })
6204
6205
  )
6205
6206
  )
6206
6207
  )
@@ -6222,15 +6223,307 @@ var ContentTypeModule = {
6222
6223
  command: "contenttype <command>",
6223
6224
  aliases: ["ct"],
6224
6225
  describe: "Commands for Content Types",
6225
- builder: (yargs44) => yargs44.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6226
+ builder: (yargs45) => yargs45.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6226
6227
  handler: () => {
6227
6228
  yargs11.help();
6228
6229
  }
6229
6230
  };
6230
6231
 
6231
- // src/commands/canvas/commands/dataSource.ts
6232
+ // src/commands/canvas/commands/customView.ts
6232
6233
  import yargs12 from "yargs";
6233
6234
 
6235
+ // src/commands/canvas/commands/customView/customViewClient.ts
6236
+ import { ApiClient } from "@uniformdev/context/api";
6237
+ var VIEWS_URL = "/api/v1/views";
6238
+ var CANVAS_RESOURCE_TYPES = [
6239
+ "composition",
6240
+ "compositionPattern",
6241
+ "component",
6242
+ "componentPattern",
6243
+ "entry",
6244
+ "entryPattern",
6245
+ "contentType",
6246
+ "blockType",
6247
+ "release",
6248
+ "signal",
6249
+ "intent",
6250
+ "audience",
6251
+ "asset"
6252
+ ];
6253
+ var CustomViewClient = class extends ApiClient {
6254
+ /** Lists saved views visible to the current caller (shared + own private). */
6255
+ async list(options) {
6256
+ const { projectId } = this.options;
6257
+ const fetchUri = this.createUrl(VIEWS_URL, { ...options, projectId });
6258
+ return await this.apiClient(fetchUri);
6259
+ }
6260
+ /**
6261
+ * Create-or-replace a saved view (`PUT`). When `id` is omitted a UUID is minted.
6262
+ */
6263
+ async put(body) {
6264
+ const { projectId } = this.options;
6265
+ const fetchUri = this.createUrl(VIEWS_URL);
6266
+ const id = body.id ?? crypto.randomUUID();
6267
+ return await this.apiClient(fetchUri, {
6268
+ method: "PUT",
6269
+ body: JSON.stringify({ ...body, id, projectId })
6270
+ });
6271
+ }
6272
+ /** Deletes a saved view by id (`DELETE`). */
6273
+ async remove(id) {
6274
+ const { projectId } = this.options;
6275
+ const fetchUri = this.createUrl(VIEWS_URL);
6276
+ await this.apiClient(fetchUri, {
6277
+ method: "DELETE",
6278
+ body: JSON.stringify({ id, projectId }),
6279
+ expectNoContent: true
6280
+ });
6281
+ }
6282
+ };
6283
+
6284
+ // src/commands/canvas/commands/customView/_util.ts
6285
+ var selectIdentifier4 = (view) => view.id;
6286
+ var selectDisplayName4 = (view) => `${view.name} (${view.resourceType})`;
6287
+ function getCustomViewClient(options) {
6288
+ return new CustomViewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6289
+ }
6290
+
6291
+ // src/commands/canvas/customViewEngineDataSource.ts
6292
+ function normalizeCustomViewForSync(view) {
6293
+ const {
6294
+ projectId: _projectId,
6295
+ createdBy: _createdBy,
6296
+ created: _created,
6297
+ modified: _modified,
6298
+ ...rest
6299
+ } = view;
6300
+ return rest;
6301
+ }
6302
+ function createCustomViewEngineDataSource({
6303
+ client,
6304
+ batchSize,
6305
+ verbose
6306
+ }) {
6307
+ async function* getObjects() {
6308
+ const pageSize = batchSize ?? 100;
6309
+ for (const resourceType of CANVAS_RESOURCE_TYPES) {
6310
+ const views = paginateAsync(
6311
+ async (offset, limit2) => (await client.list({ resourceType, offset, limit: limit2 })).views,
6312
+ {
6313
+ pageSize,
6314
+ verbose,
6315
+ entityName: `custom views (${resourceType})`
6316
+ }
6317
+ );
6318
+ for await (const view of views) {
6319
+ if (!view.shared) {
6320
+ continue;
6321
+ }
6322
+ const object4 = normalizeCustomViewForSync(view);
6323
+ const result = {
6324
+ id: selectIdentifier4(object4),
6325
+ displayName: selectDisplayName4(object4),
6326
+ providerId: object4.id,
6327
+ object: object4
6328
+ };
6329
+ yield result;
6330
+ }
6331
+ }
6332
+ }
6333
+ return {
6334
+ name: "Uniform API",
6335
+ objects: getObjects(),
6336
+ deleteObject: async (providerId) => {
6337
+ await client.remove(providerId);
6338
+ },
6339
+ writeObject: async ({ object: object4 }) => {
6340
+ if (!object4.shared) {
6341
+ throw new Error(
6342
+ `Custom view "${object4.name}" (${object4.id}) is personal and cannot be pushed. Only shared views are supported.`
6343
+ );
6344
+ }
6345
+ await client.put(object4);
6346
+ }
6347
+ };
6348
+ }
6349
+
6350
+ // src/commands/canvas/commands/customView/pull.ts
6351
+ var CustomViewPullModule = {
6352
+ command: "pull <directory>",
6353
+ describe: "Pulls all shared custom views to local files in a directory",
6354
+ builder: (yargs45) => withConfiguration(
6355
+ withApiOptions(
6356
+ withDebugOptions(
6357
+ withProjectOptions(
6358
+ withDiffOptions(
6359
+ withBatchSizeOptions(
6360
+ yargs45.positional("directory", {
6361
+ describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6362
+ type: "string"
6363
+ }).option("format", {
6364
+ alias: ["f"],
6365
+ describe: "Output format",
6366
+ default: "yaml",
6367
+ choices: ["yaml", "json"],
6368
+ type: "string"
6369
+ }).option("mode", {
6370
+ alias: ["m"],
6371
+ 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',
6372
+ choices: ["create", "createOrUpdate", "mirror"],
6373
+ default: "mirror",
6374
+ type: "string"
6375
+ }),
6376
+ "customView"
6377
+ )
6378
+ )
6379
+ )
6380
+ )
6381
+ )
6382
+ ),
6383
+ handler: async ({
6384
+ apiHost,
6385
+ apiKey,
6386
+ proxy,
6387
+ directory,
6388
+ format,
6389
+ mode,
6390
+ whatIf,
6391
+ project: projectId,
6392
+ diff: diffMode,
6393
+ allowEmptySource,
6394
+ verbose,
6395
+ resolvedBatchSize
6396
+ }) => {
6397
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6398
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6399
+ const source = createCustomViewEngineDataSource({
6400
+ client,
6401
+ verbose,
6402
+ batchSize: resolvedBatchSize
6403
+ });
6404
+ let target;
6405
+ const isPackage = isPathAPackageFile(directory);
6406
+ if (isPackage) {
6407
+ const packageContents = readCanvasPackage(directory, false, verbose);
6408
+ target = await createArraySyncEngineDataSource({
6409
+ name: `Package file ${directory}`,
6410
+ objects: packageContents.customViews ?? [],
6411
+ selectIdentifier: selectIdentifier4,
6412
+ selectDisplayName: selectDisplayName4,
6413
+ onSyncComplete: async (_, synced) => {
6414
+ packageContents.customViews = synced;
6415
+ writeCanvasPackage(directory, packageContents);
6416
+ }
6417
+ });
6418
+ } else {
6419
+ target = await createFileSyncEngineDataSource({
6420
+ directory,
6421
+ selectIdentifier: selectIdentifier4,
6422
+ selectDisplayName: selectDisplayName4,
6423
+ format,
6424
+ verbose
6425
+ });
6426
+ }
6427
+ await syncEngine({
6428
+ source,
6429
+ target,
6430
+ mode,
6431
+ whatIf,
6432
+ allowEmptySource: allowEmptySource ?? true,
6433
+ log: createSyncEngineConsoleLogger({ diffMode })
6434
+ });
6435
+ }
6436
+ };
6437
+
6438
+ // src/commands/canvas/commands/customView/push.ts
6439
+ var CustomViewPushModule = {
6440
+ command: "push <directory>",
6441
+ describe: "Pushes all shared custom views from files in a directory to Uniform",
6442
+ builder: (yargs45) => withConfiguration(
6443
+ withDebugOptions(
6444
+ withApiOptions(
6445
+ withProjectOptions(
6446
+ withDiffOptions(
6447
+ withBatchSizeOptions(
6448
+ yargs45.positional("directory", {
6449
+ describe: "Directory to read from. If a filename is used, a package will be read instead.",
6450
+ type: "string"
6451
+ }).option("mode", {
6452
+ alias: ["m"],
6453
+ 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',
6454
+ choices: ["create", "createOrUpdate", "mirror"],
6455
+ default: "mirror",
6456
+ type: "string"
6457
+ }),
6458
+ "customView"
6459
+ )
6460
+ )
6461
+ )
6462
+ )
6463
+ )
6464
+ ),
6465
+ handler: async ({
6466
+ apiHost,
6467
+ apiKey,
6468
+ proxy,
6469
+ directory,
6470
+ mode,
6471
+ whatIf,
6472
+ project: projectId,
6473
+ diff: diffMode,
6474
+ allowEmptySource,
6475
+ verbose,
6476
+ resolvedBatchSize
6477
+ }) => {
6478
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6479
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6480
+ let source;
6481
+ const isPackage = isPathAPackageFile(directory);
6482
+ if (isPackage) {
6483
+ const packageContents = readCanvasPackage(directory, true, verbose);
6484
+ source = await createArraySyncEngineDataSource({
6485
+ name: `Package file ${directory}`,
6486
+ objects: packageContents.customViews ?? [],
6487
+ selectIdentifier: selectIdentifier4,
6488
+ selectDisplayName: selectDisplayName4
6489
+ });
6490
+ } else {
6491
+ source = await createFileSyncEngineDataSource({
6492
+ directory,
6493
+ selectIdentifier: selectIdentifier4,
6494
+ selectDisplayName: selectDisplayName4,
6495
+ verbose
6496
+ });
6497
+ }
6498
+ const target = createCustomViewEngineDataSource({
6499
+ client,
6500
+ verbose,
6501
+ batchSize: resolvedBatchSize
6502
+ });
6503
+ await syncEngine({
6504
+ source,
6505
+ target,
6506
+ mode,
6507
+ whatIf,
6508
+ allowEmptySource,
6509
+ log: createSyncEngineConsoleLogger({ diffMode })
6510
+ });
6511
+ }
6512
+ };
6513
+
6514
+ // src/commands/canvas/commands/customView.ts
6515
+ var CustomViewModule = {
6516
+ command: "custom-view <command>",
6517
+ describe: "Commands for shared custom views",
6518
+ builder: (yargs45) => yargs45.command(CustomViewPullModule).command(CustomViewPushModule).demandCommand(),
6519
+ handler: () => {
6520
+ yargs12.help();
6521
+ }
6522
+ };
6523
+
6524
+ // src/commands/canvas/commands/dataSource.ts
6525
+ import yargs13 from "yargs";
6526
+
6234
6527
  // src/commands/canvas/commands/dataSource/_util.ts
6235
6528
  import { DataSourceClient } from "@uniformdev/canvas";
6236
6529
  function getDataSourceClient(options) {
@@ -6241,11 +6534,11 @@ function getDataSourceClient(options) {
6241
6534
  var DataSourceGetModule = {
6242
6535
  command: "get <id>",
6243
6536
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
6244
- builder: (yargs44) => withConfiguration(
6537
+ builder: (yargs45) => withConfiguration(
6245
6538
  withApiOptions(
6246
6539
  withDebugOptions(
6247
6540
  withProjectOptions(
6248
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6541
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6249
6542
  )
6250
6543
  )
6251
6544
  )
@@ -6263,11 +6556,11 @@ var DataSourceRemoveModule = {
6263
6556
  command: "remove <id>",
6264
6557
  aliases: ["delete", "rm"],
6265
6558
  describe: "Delete a data source",
6266
- builder: (yargs44) => withConfiguration(
6559
+ builder: (yargs45) => withConfiguration(
6267
6560
  withDebugOptions(
6268
6561
  withApiOptions(
6269
6562
  withProjectOptions(
6270
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6563
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6271
6564
  )
6272
6565
  )
6273
6566
  )
@@ -6288,11 +6581,11 @@ var DataSourceUpdateModule = {
6288
6581
  command: "update <dataSource>",
6289
6582
  aliases: ["put"],
6290
6583
  describe: "Insert or update a data source",
6291
- builder: (yargs44) => withConfiguration(
6584
+ builder: (yargs45) => withConfiguration(
6292
6585
  withApiOptions(
6293
6586
  withDebugOptions(
6294
6587
  withProjectOptions(
6295
- yargs44.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6588
+ yargs45.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6296
6589
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
6297
6590
  type: "string",
6298
6591
  demandOption: true
@@ -6327,19 +6620,19 @@ var DataSourceModule = {
6327
6620
  command: "datasource <command>",
6328
6621
  aliases: ["ds"],
6329
6622
  describe: "Commands for Data Source definitions",
6330
- builder: (yargs44) => yargs44.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6623
+ builder: (yargs45) => yargs45.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6331
6624
  handler: () => {
6332
- yargs12.help();
6625
+ yargs13.help();
6333
6626
  }
6334
6627
  };
6335
6628
 
6336
6629
  // src/commands/canvas/commands/dataType.ts
6337
- import yargs13 from "yargs";
6630
+ import yargs14 from "yargs";
6338
6631
 
6339
6632
  // src/commands/canvas/commands/dataType/_util.ts
6340
6633
  import { DataTypeClient } from "@uniformdev/canvas";
6341
- var selectIdentifier4 = (dataType) => dataType.id;
6342
- var selectDisplayName4 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6634
+ var selectIdentifier5 = (dataType) => dataType.id;
6635
+ var selectDisplayName5 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6343
6636
  function getDataTypeClient(options) {
6344
6637
  return new DataTypeClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
6345
6638
  }
@@ -6349,12 +6642,12 @@ var DataTypeGetModule = {
6349
6642
  command: "get <id>",
6350
6643
  describe: "Get a data type",
6351
6644
  aliases: ["ls"],
6352
- builder: (yargs44) => withConfiguration(
6645
+ builder: (yargs45) => withConfiguration(
6353
6646
  withFormatOptions(
6354
6647
  withDebugOptions(
6355
6648
  withApiOptions(
6356
6649
  withProjectOptions(
6357
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6650
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6358
6651
  )
6359
6652
  )
6360
6653
  )
@@ -6377,7 +6670,7 @@ var DataTypeListModule = {
6377
6670
  command: "list",
6378
6671
  describe: "List data types",
6379
6672
  aliases: ["ls"],
6380
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6673
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6381
6674
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6382
6675
  const fetch2 = nodeFetchProxy(proxy, verbose);
6383
6676
  const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6394,8 +6687,8 @@ function createDataTypeEngineDataSource({
6394
6687
  const dataTypes = (await client.list()).results;
6395
6688
  for await (const dataType of dataTypes) {
6396
6689
  const result = {
6397
- id: selectIdentifier4(dataType),
6398
- displayName: selectDisplayName4(dataType),
6690
+ id: selectIdentifier5(dataType),
6691
+ displayName: selectDisplayName5(dataType),
6399
6692
  providerId: dataType.id,
6400
6693
  object: dataType
6401
6694
  };
@@ -6420,12 +6713,12 @@ function createDataTypeEngineDataSource({
6420
6713
  var DataTypePullModule = {
6421
6714
  command: "pull <directory>",
6422
6715
  describe: "Pulls all data types to local files in a directory",
6423
- builder: (yargs44) => withConfiguration(
6716
+ builder: (yargs45) => withConfiguration(
6424
6717
  withApiOptions(
6425
6718
  withDebugOptions(
6426
6719
  withProjectOptions(
6427
6720
  withDiffOptions(
6428
- yargs44.positional("directory", {
6721
+ yargs45.positional("directory", {
6429
6722
  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.",
6430
6723
  type: "string"
6431
6724
  }).option("format", {
@@ -6474,8 +6767,8 @@ var DataTypePullModule = {
6474
6767
  target = await createArraySyncEngineDataSource({
6475
6768
  name: `Package file ${directory}`,
6476
6769
  objects: packageContents.dataTypes ?? [],
6477
- selectIdentifier: selectIdentifier4,
6478
- selectDisplayName: selectDisplayName4,
6770
+ selectIdentifier: selectIdentifier5,
6771
+ selectDisplayName: selectDisplayName5,
6479
6772
  onSyncComplete: async (_, synced) => {
6480
6773
  packageContents.dataTypes = synced;
6481
6774
  writeCanvasPackage(directory, packageContents);
@@ -6484,8 +6777,8 @@ var DataTypePullModule = {
6484
6777
  } else {
6485
6778
  target = await createFileSyncEngineDataSource({
6486
6779
  directory,
6487
- selectIdentifier: selectIdentifier4,
6488
- selectDisplayName: selectDisplayName4,
6780
+ selectIdentifier: selectIdentifier5,
6781
+ selectDisplayName: selectDisplayName5,
6489
6782
  format,
6490
6783
  verbose
6491
6784
  });
@@ -6505,12 +6798,12 @@ var DataTypePullModule = {
6505
6798
  var DataTypePushModule = {
6506
6799
  command: "push <directory>",
6507
6800
  describe: "Pushes all data types from files in a directory to Uniform",
6508
- builder: (yargs44) => withConfiguration(
6801
+ builder: (yargs45) => withConfiguration(
6509
6802
  withApiOptions(
6510
6803
  withDebugOptions(
6511
6804
  withProjectOptions(
6512
6805
  withDiffOptions(
6513
- yargs44.positional("directory", {
6806
+ yargs45.positional("directory", {
6514
6807
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
6515
6808
  type: "string"
6516
6809
  }).option("mode", {
@@ -6551,14 +6844,14 @@ var DataTypePushModule = {
6551
6844
  source = await createArraySyncEngineDataSource({
6552
6845
  name: `Package file ${directory}`,
6553
6846
  objects: packageContents.dataTypes ?? [],
6554
- selectIdentifier: selectIdentifier4,
6555
- selectDisplayName: selectDisplayName4
6847
+ selectIdentifier: selectIdentifier5,
6848
+ selectDisplayName: selectDisplayName5
6556
6849
  });
6557
6850
  } else {
6558
6851
  source = await createFileSyncEngineDataSource({
6559
6852
  directory,
6560
- selectIdentifier: selectIdentifier4,
6561
- selectDisplayName: selectDisplayName4,
6853
+ selectIdentifier: selectIdentifier5,
6854
+ selectDisplayName: selectDisplayName5,
6562
6855
  verbose
6563
6856
  });
6564
6857
  }
@@ -6579,11 +6872,11 @@ var DataTypeRemoveModule = {
6579
6872
  command: "remove <id>",
6580
6873
  aliases: ["delete", "rm"],
6581
6874
  describe: "Delete a data type",
6582
- builder: (yargs44) => withConfiguration(
6875
+ builder: (yargs45) => withConfiguration(
6583
6876
  withDebugOptions(
6584
6877
  withApiOptions(
6585
6878
  withProjectOptions(
6586
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6879
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6587
6880
  )
6588
6881
  )
6589
6882
  )
@@ -6604,11 +6897,11 @@ var DataTypeUpdateModule = {
6604
6897
  command: "update <filename>",
6605
6898
  aliases: ["put"],
6606
6899
  describe: "Insert or update a data type",
6607
- builder: (yargs44) => withConfiguration(
6900
+ builder: (yargs45) => withConfiguration(
6608
6901
  withDebugOptions(
6609
6902
  withApiOptions(
6610
6903
  withProjectOptions(
6611
- yargs44.positional("filename", { demandOption: true, describe: "Data type file to put" })
6904
+ yargs45.positional("filename", { demandOption: true, describe: "Data type file to put" })
6612
6905
  )
6613
6906
  )
6614
6907
  )
@@ -6630,14 +6923,14 @@ var DataTypeModule = {
6630
6923
  command: "datatype <command>",
6631
6924
  aliases: ["dt"],
6632
6925
  describe: "Commands for Data Type definitions",
6633
- builder: (yargs44) => yargs44.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6926
+ builder: (yargs45) => yargs45.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6634
6927
  handler: () => {
6635
- yargs13.help();
6928
+ yargs14.help();
6636
6929
  }
6637
6930
  };
6638
6931
 
6639
6932
  // src/commands/canvas/commands/entry.ts
6640
- import yargs14 from "yargs";
6933
+ import yargs15 from "yargs";
6641
6934
 
6642
6935
  // src/commands/canvas/commands/entry/get.ts
6643
6936
  function createEntryGetHandler(expectedType) {
@@ -6686,13 +6979,13 @@ function createEntryGetHandler(expectedType) {
6686
6979
  var EntryGetModule = {
6687
6980
  command: "get <id>",
6688
6981
  describe: "Get an entry",
6689
- builder: (yargs44) => withConfiguration(
6982
+ builder: (yargs45) => withConfiguration(
6690
6983
  withDebugOptions(
6691
6984
  withFormatOptions(
6692
6985
  withApiOptions(
6693
6986
  withProjectOptions(
6694
6987
  withStateOptions(
6695
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
6988
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
6696
6989
  resolveData: {
6697
6990
  type: "boolean",
6698
6991
  default: false,
@@ -6726,13 +7019,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
6726
7019
  var EntryListModule = {
6727
7020
  command: "list",
6728
7021
  describe: "List entries",
6729
- builder: (yargs44) => withConfiguration(
7022
+ builder: (yargs45) => withConfiguration(
6730
7023
  withDebugOptions(
6731
7024
  withFormatOptions(
6732
7025
  withApiOptions(
6733
7026
  withProjectOptions(
6734
7027
  withStateOptions(
6735
- yargs44.options({
7028
+ yargs45.options({
6736
7029
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
6737
7030
  limit: {
6738
7031
  describe: "Number of rows to fetch",
@@ -6854,13 +7147,13 @@ function createEntryEngineDataSource({
6854
7147
  var EntryPublishModule = {
6855
7148
  command: "publish [ids]",
6856
7149
  describe: "Publishes entry(ies)",
6857
- builder: (yargs44) => withConfiguration(
7150
+ builder: (yargs45) => withConfiguration(
6858
7151
  withDebugOptions(
6859
7152
  withDiffOptions(
6860
7153
  withApiOptions(
6861
7154
  withProjectOptions(
6862
7155
  withBatchSizeOptions(
6863
- yargs44.positional("ids", {
7156
+ yargs45.positional("ids", {
6864
7157
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
6865
7158
  type: "string"
6866
7159
  }).option("all", {
@@ -6939,14 +7232,14 @@ var EntryPublishModule = {
6939
7232
  var EntryPullModule = {
6940
7233
  command: "pull <directory>",
6941
7234
  describe: "Pulls all entries to local files in a directory",
6942
- builder: (yargs44) => withConfiguration(
7235
+ builder: (yargs45) => withConfiguration(
6943
7236
  withDebugOptions(
6944
7237
  withApiOptions(
6945
7238
  withProjectOptions(
6946
7239
  withStateOptions(
6947
7240
  withDiffOptions(
6948
7241
  withBatchSizeOptions(
6949
- yargs44.positional("directory", {
7242
+ yargs45.positional("directory", {
6950
7243
  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.",
6951
7244
  type: "string"
6952
7245
  }).option("format", {
@@ -7055,14 +7348,14 @@ var EntryPullModule = {
7055
7348
  var EntryPushModule = {
7056
7349
  command: "push <directory>",
7057
7350
  describe: "Pushes all entries from files in a directory to Uniform",
7058
- builder: (yargs44) => withConfiguration(
7351
+ builder: (yargs45) => withConfiguration(
7059
7352
  withDebugOptions(
7060
7353
  withApiOptions(
7061
7354
  withProjectOptions(
7062
7355
  withStateOptions(
7063
7356
  withDiffOptions(
7064
7357
  withBatchSizeOptions(
7065
- yargs44.positional("directory", {
7358
+ yargs45.positional("directory", {
7066
7359
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
7067
7360
  type: "string"
7068
7361
  }).option("mode", {
@@ -7201,11 +7494,11 @@ var EntryRemoveModule = {
7201
7494
  command: "remove <id>",
7202
7495
  aliases: ["delete", "rm"],
7203
7496
  describe: "Delete an entry",
7204
- builder: (yargs44) => withConfiguration(
7497
+ builder: (yargs45) => withConfiguration(
7205
7498
  withDebugOptions(
7206
7499
  withApiOptions(
7207
7500
  withProjectOptions(
7208
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7501
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7209
7502
  )
7210
7503
  )
7211
7504
  )
@@ -7219,12 +7512,12 @@ import { diffJson as diffJson3 } from "diff";
7219
7512
  var EntryUnpublishModule = {
7220
7513
  command: "unpublish [ids]",
7221
7514
  describe: "Unpublish an entry(ies)",
7222
- builder: (yargs44) => withConfiguration(
7515
+ builder: (yargs45) => withConfiguration(
7223
7516
  withDebugOptions(
7224
7517
  withApiOptions(
7225
7518
  withProjectOptions(
7226
7519
  withBatchSizeOptions(
7227
- yargs44.positional("ids", {
7520
+ yargs45.positional("ids", {
7228
7521
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7229
7522
  type: "string"
7230
7523
  }).option("all", {
@@ -7357,12 +7650,12 @@ var EntryUpdateModule = {
7357
7650
  command: "update <filename>",
7358
7651
  aliases: ["put"],
7359
7652
  describe: "Insert or update an entry",
7360
- builder: (yargs44) => withConfiguration(
7653
+ builder: (yargs45) => withConfiguration(
7361
7654
  withDebugOptions(
7362
7655
  withApiOptions(
7363
7656
  withProjectOptions(
7364
7657
  withStateOptions(
7365
- yargs44.positional("filename", { demandOption: true, describe: "Entry file to put" })
7658
+ yargs45.positional("filename", { demandOption: true, describe: "Entry file to put" })
7366
7659
  )
7367
7660
  )
7368
7661
  )
@@ -7375,26 +7668,26 @@ var EntryUpdateModule = {
7375
7668
  var EntryModule = {
7376
7669
  command: "entry <command>",
7377
7670
  describe: "Commands for Entries",
7378
- builder: (yargs44) => yargs44.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7671
+ builder: (yargs45) => yargs45.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7379
7672
  handler: () => {
7380
- yargs14.help();
7673
+ yargs15.help();
7381
7674
  }
7382
7675
  };
7383
7676
 
7384
7677
  // src/commands/canvas/commands/entryPattern.ts
7385
- import yargs15 from "yargs";
7678
+ import yargs16 from "yargs";
7386
7679
 
7387
7680
  // src/commands/canvas/commands/entryPattern/get.ts
7388
7681
  var EntryPatternGetModule = {
7389
7682
  command: "get <id>",
7390
7683
  describe: "Get an entry pattern",
7391
- builder: (yargs44) => withConfiguration(
7684
+ builder: (yargs45) => withConfiguration(
7392
7685
  withDebugOptions(
7393
7686
  withFormatOptions(
7394
7687
  withApiOptions(
7395
7688
  withProjectOptions(
7396
7689
  withStateOptions(
7397
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7690
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7398
7691
  resolveData: {
7399
7692
  type: "boolean",
7400
7693
  default: false,
@@ -7426,9 +7719,9 @@ var EntryPatternGetModule = {
7426
7719
  var EntryPatternListModule = {
7427
7720
  command: "list",
7428
7721
  describe: "List entry patterns",
7429
- builder: (yargs44) => withConfiguration(
7722
+ builder: (yargs45) => withConfiguration(
7430
7723
  withDebugOptions(
7431
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs44, "published"))))
7724
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs45, "published"))))
7432
7725
  )
7433
7726
  ),
7434
7727
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, state, verbose }) => {
@@ -7448,13 +7741,13 @@ var EntryPatternListModule = {
7448
7741
  var EntryPatternPublishModule = {
7449
7742
  command: "publish [ids]",
7450
7743
  describe: "Publishes entry pattern(s)",
7451
- builder: (yargs44) => withConfiguration(
7744
+ builder: (yargs45) => withConfiguration(
7452
7745
  withDebugOptions(
7453
7746
  withApiOptions(
7454
7747
  withProjectOptions(
7455
7748
  withDiffOptions(
7456
7749
  withBatchSizeOptions(
7457
- yargs44.positional("ids", {
7750
+ yargs45.positional("ids", {
7458
7751
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
7459
7752
  type: "string"
7460
7753
  }).option("all", {
@@ -7533,14 +7826,14 @@ var EntryPatternPublishModule = {
7533
7826
  var EntryPatternPullModule = {
7534
7827
  command: "pull <directory>",
7535
7828
  describe: "Pulls all entry patterns to local files in a directory",
7536
- builder: (yargs44) => withConfiguration(
7829
+ builder: (yargs45) => withConfiguration(
7537
7830
  withApiOptions(
7538
7831
  withDebugOptions(
7539
7832
  withProjectOptions(
7540
7833
  withStateOptions(
7541
7834
  withDiffOptions(
7542
7835
  withBatchSizeOptions(
7543
- yargs44.positional("directory", {
7836
+ yargs45.positional("directory", {
7544
7837
  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.",
7545
7838
  type: "string"
7546
7839
  }).option("format", {
@@ -7649,14 +7942,14 @@ var EntryPatternPullModule = {
7649
7942
  var EntryPatternPushModule = {
7650
7943
  command: "push <directory>",
7651
7944
  describe: "Pushes all entry patterns from files in a directory to Uniform",
7652
- builder: (yargs44) => withConfiguration(
7945
+ builder: (yargs45) => withConfiguration(
7653
7946
  withDebugOptions(
7654
7947
  withApiOptions(
7655
7948
  withProjectOptions(
7656
7949
  withStateOptions(
7657
7950
  withDiffOptions(
7658
7951
  withBatchSizeOptions(
7659
- yargs44.positional("directory", {
7952
+ yargs45.positional("directory", {
7660
7953
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
7661
7954
  type: "string"
7662
7955
  }).option("what-if", {
@@ -7769,11 +8062,11 @@ var EntryPatternRemoveModule = {
7769
8062
  command: "remove <id>",
7770
8063
  aliases: ["delete", "rm"],
7771
8064
  describe: "Delete an entry pattern",
7772
- builder: (yargs44) => withConfiguration(
8065
+ builder: (yargs45) => withConfiguration(
7773
8066
  withDebugOptions(
7774
8067
  withApiOptions(
7775
8068
  withProjectOptions(
7776
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
8069
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
7777
8070
  )
7778
8071
  )
7779
8072
  )
@@ -7787,12 +8080,12 @@ import { diffJson as diffJson4 } from "diff";
7787
8080
  var EntryPatternUnpublishModule = {
7788
8081
  command: "unpublish [ids]",
7789
8082
  describe: "Unpublish entry pattern(s)",
7790
- builder: (yargs44) => withConfiguration(
8083
+ builder: (yargs45) => withConfiguration(
7791
8084
  withDebugOptions(
7792
8085
  withApiOptions(
7793
8086
  withProjectOptions(
7794
8087
  withBatchSizeOptions(
7795
- yargs44.positional("ids", {
8088
+ yargs45.positional("ids", {
7796
8089
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7797
8090
  type: "string"
7798
8091
  }).option("all", {
@@ -7891,12 +8184,12 @@ var EntryPatternUpdateModule = {
7891
8184
  command: "update <filename>",
7892
8185
  aliases: ["put"],
7893
8186
  describe: "Insert or update an entry pattern",
7894
- builder: (yargs44) => withConfiguration(
8187
+ builder: (yargs45) => withConfiguration(
7895
8188
  withDebugOptions(
7896
8189
  withApiOptions(
7897
8190
  withProjectOptions(
7898
8191
  withStateOptions(
7899
- yargs44.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
8192
+ yargs45.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
7900
8193
  )
7901
8194
  )
7902
8195
  )
@@ -7909,14 +8202,14 @@ var EntryPatternUpdateModule = {
7909
8202
  var EntryPatternModule = {
7910
8203
  command: "entry-pattern <command>",
7911
8204
  describe: "Commands for Entry patterns",
7912
- builder: (yargs44) => yargs44.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
8205
+ builder: (yargs45) => yargs45.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
7913
8206
  handler: () => {
7914
- yargs15.help();
8207
+ yargs16.help();
7915
8208
  }
7916
8209
  };
7917
8210
 
7918
8211
  // src/commands/canvas/commands/label.ts
7919
- import yargs16 from "yargs";
8212
+ import yargs17 from "yargs";
7920
8213
 
7921
8214
  // src/commands/canvas/labelsEngineDataSource.ts
7922
8215
  function normalizeLabelForSync(label) {
@@ -7968,13 +8261,13 @@ function getLabelClient(options) {
7968
8261
  var LabelPullModule = {
7969
8262
  command: "pull <directory>",
7970
8263
  describe: "Pulls all labels to local files in a directory",
7971
- builder: (yargs44) => withConfiguration(
8264
+ builder: (yargs45) => withConfiguration(
7972
8265
  withDebugOptions(
7973
8266
  withApiOptions(
7974
8267
  withProjectOptions(
7975
8268
  withDiffOptions(
7976
8269
  withBatchSizeOptions(
7977
- yargs44.positional("directory", {
8270
+ yargs45.positional("directory", {
7978
8271
  describe: "Directory to save the labels to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7979
8272
  type: "string"
7980
8273
  }).option("format", {
@@ -8063,13 +8356,13 @@ var __INTERNAL_MISSING_PARENT_LABEL_ERROR = "Parent label with public ID";
8063
8356
  var LabelPushModule = {
8064
8357
  command: "push <directory>",
8065
8358
  describe: "Pushes all labels from files in a directory to Uniform",
8066
- builder: (yargs44) => withConfiguration(
8359
+ builder: (yargs45) => withConfiguration(
8067
8360
  withDebugOptions(
8068
8361
  withApiOptions(
8069
8362
  withProjectOptions(
8070
8363
  withDiffOptions(
8071
8364
  withBatchSizeOptions(
8072
- yargs44.positional("directory", {
8365
+ yargs45.positional("directory", {
8073
8366
  describe: "Directory to read the labels from. If a filename is used, a package will be read instead.",
8074
8367
  type: "string"
8075
8368
  }).option("mode", {
@@ -8167,14 +8460,14 @@ var LabelPushModule = {
8167
8460
  var LabelModule = {
8168
8461
  command: "label <command>",
8169
8462
  describe: "Commands for label definitions",
8170
- builder: (yargs44) => yargs44.command(LabelPullModule).command(LabelPushModule),
8463
+ builder: (yargs45) => yargs45.command(LabelPullModule).command(LabelPushModule),
8171
8464
  handler: () => {
8172
- yargs16.help();
8465
+ yargs17.help();
8173
8466
  }
8174
8467
  };
8175
8468
 
8176
8469
  // src/commands/canvas/commands/locale.ts
8177
- import yargs17 from "yargs";
8470
+ import yargs18 from "yargs";
8178
8471
 
8179
8472
  // src/commands/canvas/localesEngineDataSource.ts
8180
8473
  function createLocaleEngineDataSource({
@@ -8216,12 +8509,12 @@ function getLocaleClient(options) {
8216
8509
  var LocalePullModule = {
8217
8510
  command: "pull <directory>",
8218
8511
  describe: "Pulls all locales to local files in a directory",
8219
- builder: (yargs44) => withConfiguration(
8512
+ builder: (yargs45) => withConfiguration(
8220
8513
  withDebugOptions(
8221
8514
  withApiOptions(
8222
8515
  withProjectOptions(
8223
8516
  withDiffOptions(
8224
- yargs44.positional("directory", {
8517
+ yargs45.positional("directory", {
8225
8518
  describe: "Directory to save the locales to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8226
8519
  type: "string"
8227
8520
  }).option("format", {
@@ -8301,12 +8594,12 @@ var LocalePullModule = {
8301
8594
  var LocalePushModule = {
8302
8595
  command: "push <directory>",
8303
8596
  describe: "Pushes all locales from files in a directory to Uniform",
8304
- builder: (yargs44) => withConfiguration(
8597
+ builder: (yargs45) => withConfiguration(
8305
8598
  withDebugOptions(
8306
8599
  withApiOptions(
8307
8600
  withProjectOptions(
8308
8601
  withDiffOptions(
8309
- yargs44.positional("directory", {
8602
+ yargs45.positional("directory", {
8310
8603
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
8311
8604
  type: "string"
8312
8605
  }).option("mode", {
@@ -8374,19 +8667,19 @@ var LocalePushModule = {
8374
8667
  var LocaleModule = {
8375
8668
  command: "locale <command>",
8376
8669
  describe: "Commands for locale definitions",
8377
- builder: (yargs44) => yargs44.command(LocalePullModule).command(LocalePushModule),
8670
+ builder: (yargs45) => yargs45.command(LocalePullModule).command(LocalePushModule),
8378
8671
  handler: () => {
8379
- yargs17.help();
8672
+ yargs18.help();
8380
8673
  }
8381
8674
  };
8382
8675
 
8383
8676
  // src/commands/canvas/commands/previewUrl.ts
8384
- import yargs18 from "yargs";
8677
+ import yargs19 from "yargs";
8385
8678
 
8386
8679
  // src/commands/canvas/commands/previewUrl/_util.ts
8387
8680
  import { PreviewClient } from "@uniformdev/canvas";
8388
- var selectIdentifier5 = (previewUrl) => previewUrl.id;
8389
- var selectDisplayName5 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8681
+ var selectIdentifier6 = (previewUrl) => previewUrl.id;
8682
+ var selectDisplayName6 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8390
8683
  function getPreviewClient(options) {
8391
8684
  return new PreviewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
8392
8685
  }
@@ -8395,12 +8688,12 @@ function getPreviewClient(options) {
8395
8688
  var PreviewUrlGetModule = {
8396
8689
  command: "get <id>",
8397
8690
  describe: "Fetch a preview URL",
8398
- builder: (yargs44) => withConfiguration(
8691
+ builder: (yargs45) => withConfiguration(
8399
8692
  withFormatOptions(
8400
8693
  withDebugOptions(
8401
8694
  withApiOptions(
8402
8695
  withProjectOptions(
8403
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8696
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8404
8697
  )
8405
8698
  )
8406
8699
  )
@@ -8424,8 +8717,8 @@ var PreviewUrlListModule = {
8424
8717
  command: "list",
8425
8718
  describe: "List preview URLs",
8426
8719
  aliases: ["ls"],
8427
- builder: (yargs44) => withConfiguration(
8428
- withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs44.options({})))))
8720
+ builder: (yargs45) => withConfiguration(
8721
+ withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs45.options({})))))
8429
8722
  ),
8430
8723
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8431
8724
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8443,8 +8736,8 @@ function createPreviewUrlEngineDataSource({
8443
8736
  const previewUrls = (await client.getPreviewUrls()).previewUrls;
8444
8737
  for await (const previewUrl of previewUrls) {
8445
8738
  const result = {
8446
- id: selectIdentifier5(previewUrl),
8447
- displayName: selectDisplayName5(previewUrl),
8739
+ id: selectIdentifier6(previewUrl),
8740
+ displayName: selectDisplayName6(previewUrl),
8448
8741
  providerId: previewUrl.id,
8449
8742
  object: previewUrl
8450
8743
  };
@@ -8467,12 +8760,12 @@ function createPreviewUrlEngineDataSource({
8467
8760
  var PreviewUrlPullModule = {
8468
8761
  command: "pull <directory>",
8469
8762
  describe: "Pulls all preview urls to local files in a directory",
8470
- builder: (yargs44) => withConfiguration(
8763
+ builder: (yargs45) => withConfiguration(
8471
8764
  withApiOptions(
8472
8765
  withProjectOptions(
8473
8766
  withDebugOptions(
8474
8767
  withDiffOptions(
8475
- yargs44.positional("directory", {
8768
+ yargs45.positional("directory", {
8476
8769
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8477
8770
  type: "string"
8478
8771
  }).option("format", {
@@ -8516,8 +8809,8 @@ var PreviewUrlPullModule = {
8516
8809
  target = await createArraySyncEngineDataSource({
8517
8810
  name: `Package file ${directory}`,
8518
8811
  objects: packageContents.previewUrls ?? [],
8519
- selectIdentifier: selectIdentifier5,
8520
- selectDisplayName: selectDisplayName5,
8812
+ selectIdentifier: selectIdentifier6,
8813
+ selectDisplayName: selectDisplayName6,
8521
8814
  onSyncComplete: async (_, synced) => {
8522
8815
  packageContents.previewUrls = synced;
8523
8816
  writeCanvasPackage(directory, packageContents);
@@ -8526,9 +8819,9 @@ var PreviewUrlPullModule = {
8526
8819
  } else {
8527
8820
  target = await createFileSyncEngineDataSource({
8528
8821
  directory,
8529
- selectIdentifier: selectIdentifier5,
8530
- selectDisplayName: selectDisplayName5,
8531
- format,
8822
+ selectIdentifier: selectIdentifier6,
8823
+ selectDisplayName: selectDisplayName6,
8824
+ format,
8532
8825
  verbose
8533
8826
  });
8534
8827
  }
@@ -8547,12 +8840,12 @@ var PreviewUrlPullModule = {
8547
8840
  var PreviewUrlPushModule = {
8548
8841
  command: "push <directory>",
8549
8842
  describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
8550
- builder: (yargs44) => withConfiguration(
8843
+ builder: (yargs45) => withConfiguration(
8551
8844
  withApiOptions(
8552
8845
  withProjectOptions(
8553
8846
  withDiffOptions(
8554
8847
  withDebugOptions(
8555
- yargs44.positional("directory", {
8848
+ yargs45.positional("directory", {
8556
8849
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8557
8850
  type: "string"
8558
8851
  }).option("mode", {
@@ -8588,14 +8881,14 @@ var PreviewUrlPushModule = {
8588
8881
  source = await createArraySyncEngineDataSource({
8589
8882
  name: `Package file ${directory}`,
8590
8883
  objects: packageContents.previewUrls ?? [],
8591
- selectIdentifier: selectIdentifier5,
8592
- selectDisplayName: selectDisplayName5
8884
+ selectIdentifier: selectIdentifier6,
8885
+ selectDisplayName: selectDisplayName6
8593
8886
  });
8594
8887
  } else {
8595
8888
  source = await createFileSyncEngineDataSource({
8596
8889
  directory,
8597
- selectIdentifier: selectIdentifier5,
8598
- selectDisplayName: selectDisplayName5,
8890
+ selectIdentifier: selectIdentifier6,
8891
+ selectDisplayName: selectDisplayName6,
8599
8892
  verbose
8600
8893
  });
8601
8894
  }
@@ -8616,11 +8909,11 @@ var PreviewUrlRemoveModule = {
8616
8909
  command: "remove <id>",
8617
8910
  aliases: ["delete", "rm"],
8618
8911
  describe: "Delete a preview URL",
8619
- builder: (yargs44) => withConfiguration(
8912
+ builder: (yargs45) => withConfiguration(
8620
8913
  withApiOptions(
8621
8914
  withDebugOptions(
8622
8915
  withProjectOptions(
8623
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8916
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8624
8917
  )
8625
8918
  )
8626
8919
  )
@@ -8641,11 +8934,11 @@ var PreviewUrlUpdateModule = {
8641
8934
  command: "update <filename>",
8642
8935
  aliases: ["put"],
8643
8936
  describe: "Insert or update a preview URL",
8644
- builder: (yargs44) => withConfiguration(
8937
+ builder: (yargs45) => withConfiguration(
8645
8938
  withDebugOptions(
8646
8939
  withApiOptions(
8647
8940
  withProjectOptions(
8648
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
8941
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
8649
8942
  )
8650
8943
  )
8651
8944
  )
@@ -8667,25 +8960,25 @@ var PreviewUrlModule = {
8667
8960
  command: "preview-url <command>",
8668
8961
  aliases: ["pu"],
8669
8962
  describe: "Commands for Canvas preview urls",
8670
- builder: (yargs44) => yargs44.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
8963
+ builder: (yargs45) => yargs45.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
8671
8964
  handler: () => {
8672
- yargs18.help();
8965
+ yargs19.help();
8673
8966
  }
8674
8967
  };
8675
8968
 
8676
8969
  // src/commands/canvas/commands/previewViewport.ts
8677
- import yargs19 from "yargs";
8970
+ import yargs20 from "yargs";
8678
8971
 
8679
8972
  // src/commands/canvas/commands/previewViewport/get.ts
8680
8973
  var PreviewViewportGetModule = {
8681
8974
  command: "get <id>",
8682
8975
  describe: "Fetch a preview viewport",
8683
- builder: (yargs44) => withConfiguration(
8976
+ builder: (yargs45) => withConfiguration(
8684
8977
  withFormatOptions(
8685
8978
  withDebugOptions(
8686
8979
  withApiOptions(
8687
8980
  withProjectOptions(
8688
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
8981
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
8689
8982
  )
8690
8983
  )
8691
8984
  )
@@ -8709,8 +9002,8 @@ var PreviewViewportListModule = {
8709
9002
  command: "list",
8710
9003
  describe: "List preview viewports",
8711
9004
  aliases: ["ls"],
8712
- builder: (yargs44) => withConfiguration(
8713
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
9005
+ builder: (yargs45) => withConfiguration(
9006
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
8714
9007
  ),
8715
9008
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8716
9009
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8721,8 +9014,8 @@ var PreviewViewportListModule = {
8721
9014
  };
8722
9015
 
8723
9016
  // src/commands/canvas/commands/previewViewport/_util.ts
8724
- var selectIdentifier6 = (previewViewport) => previewViewport.id;
8725
- var selectDisplayName6 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
9017
+ var selectIdentifier7 = (previewViewport) => previewViewport.id;
9018
+ var selectDisplayName7 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
8726
9019
 
8727
9020
  // src/commands/canvas/previewViewportEngineDataSource.ts
8728
9021
  function createPreviewViewportEngineDataSource({
@@ -8732,8 +9025,8 @@ function createPreviewViewportEngineDataSource({
8732
9025
  const previewViewports = (await client.getPreviewViewports()).previewViewports;
8733
9026
  for await (const previewViewport of previewViewports) {
8734
9027
  const result = {
8735
- id: selectIdentifier6(previewViewport),
8736
- displayName: selectDisplayName6(previewViewport),
9028
+ id: selectIdentifier7(previewViewport),
9029
+ displayName: selectDisplayName7(previewViewport),
8737
9030
  providerId: previewViewport.id,
8738
9031
  object: previewViewport
8739
9032
  };
@@ -8756,12 +9049,12 @@ function createPreviewViewportEngineDataSource({
8756
9049
  var PreviewViewportPullModule = {
8757
9050
  command: "pull <directory>",
8758
9051
  describe: "Pulls all preview viewports to local files in a directory",
8759
- builder: (yargs44) => withConfiguration(
9052
+ builder: (yargs45) => withConfiguration(
8760
9053
  withApiOptions(
8761
9054
  withProjectOptions(
8762
9055
  withDebugOptions(
8763
9056
  withDiffOptions(
8764
- yargs44.positional("directory", {
9057
+ yargs45.positional("directory", {
8765
9058
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8766
9059
  type: "string"
8767
9060
  }).option("format", {
@@ -8805,8 +9098,8 @@ var PreviewViewportPullModule = {
8805
9098
  target = await createArraySyncEngineDataSource({
8806
9099
  name: `Package file ${directory}`,
8807
9100
  objects: packageContents.previewViewports ?? [],
8808
- selectIdentifier: selectIdentifier6,
8809
- selectDisplayName: selectDisplayName6,
9101
+ selectIdentifier: selectIdentifier7,
9102
+ selectDisplayName: selectDisplayName7,
8810
9103
  onSyncComplete: async (_, synced) => {
8811
9104
  packageContents.previewViewports = synced;
8812
9105
  writeCanvasPackage(directory, packageContents);
@@ -8815,8 +9108,8 @@ var PreviewViewportPullModule = {
8815
9108
  } else {
8816
9109
  target = await createFileSyncEngineDataSource({
8817
9110
  directory,
8818
- selectIdentifier: selectIdentifier6,
8819
- selectDisplayName: selectDisplayName6,
9111
+ selectIdentifier: selectIdentifier7,
9112
+ selectDisplayName: selectDisplayName7,
8820
9113
  format,
8821
9114
  verbose
8822
9115
  });
@@ -8836,12 +9129,12 @@ var PreviewViewportPullModule = {
8836
9129
  var PreviewViewportPushModule = {
8837
9130
  command: "push <directory>",
8838
9131
  describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
8839
- builder: (yargs44) => withConfiguration(
9132
+ builder: (yargs45) => withConfiguration(
8840
9133
  withApiOptions(
8841
9134
  withProjectOptions(
8842
9135
  withDiffOptions(
8843
9136
  withDebugOptions(
8844
- yargs44.positional("directory", {
9137
+ yargs45.positional("directory", {
8845
9138
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8846
9139
  type: "string"
8847
9140
  }).option("mode", {
@@ -8877,14 +9170,14 @@ var PreviewViewportPushModule = {
8877
9170
  source = await createArraySyncEngineDataSource({
8878
9171
  name: `Package file ${directory}`,
8879
9172
  objects: packageContents.previewViewports ?? [],
8880
- selectIdentifier: selectIdentifier6,
8881
- selectDisplayName: selectDisplayName6
9173
+ selectIdentifier: selectIdentifier7,
9174
+ selectDisplayName: selectDisplayName7
8882
9175
  });
8883
9176
  } else {
8884
9177
  source = await createFileSyncEngineDataSource({
8885
9178
  directory,
8886
- selectIdentifier: selectIdentifier6,
8887
- selectDisplayName: selectDisplayName6,
9179
+ selectIdentifier: selectIdentifier7,
9180
+ selectDisplayName: selectDisplayName7,
8888
9181
  verbose
8889
9182
  });
8890
9183
  }
@@ -8905,11 +9198,11 @@ var PreviewViewportRemoveModule = {
8905
9198
  command: "remove <id>",
8906
9199
  aliases: ["delete", "rm"],
8907
9200
  describe: "Delete a preview viewport",
8908
- builder: (yargs44) => withConfiguration(
9201
+ builder: (yargs45) => withConfiguration(
8909
9202
  withApiOptions(
8910
9203
  withDebugOptions(
8911
9204
  withProjectOptions(
8912
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
9205
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
8913
9206
  )
8914
9207
  )
8915
9208
  )
@@ -8930,11 +9223,11 @@ var PreviewViewportUpdateModule = {
8930
9223
  command: "update <filename>",
8931
9224
  aliases: ["put"],
8932
9225
  describe: "Insert or update a preview viewport",
8933
- builder: (yargs44) => withConfiguration(
9226
+ builder: (yargs45) => withConfiguration(
8934
9227
  withDebugOptions(
8935
9228
  withApiOptions(
8936
9229
  withProjectOptions(
8937
- yargs44.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9230
+ yargs45.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
8938
9231
  )
8939
9232
  )
8940
9233
  )
@@ -8956,14 +9249,14 @@ var PreviewViewportModule = {
8956
9249
  command: "preview-viewport <command>",
8957
9250
  aliases: ["pv"],
8958
9251
  describe: "Commands for Canvas preview viewports",
8959
- builder: (yargs44) => yargs44.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9252
+ builder: (yargs45) => yargs45.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
8960
9253
  handler: () => {
8961
- yargs19.help();
9254
+ yargs20.help();
8962
9255
  }
8963
9256
  };
8964
9257
 
8965
9258
  // src/commands/canvas/commands/prompts.ts
8966
- import yargs20 from "yargs";
9259
+ import yargs21 from "yargs";
8967
9260
 
8968
9261
  // src/commands/canvas/commands/prompts/_util.ts
8969
9262
  import { PromptClient } from "@uniformdev/canvas";
@@ -8975,12 +9268,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
8975
9268
  var PromptGetModule = {
8976
9269
  command: "get <id>",
8977
9270
  describe: "Get a prompt",
8978
- builder: (yargs44) => withConfiguration(
9271
+ builder: (yargs45) => withConfiguration(
8979
9272
  withDebugOptions(
8980
9273
  withFormatOptions(
8981
9274
  withApiOptions(
8982
9275
  withProjectOptions(
8983
- yargs44.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9276
+ yargs45.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
8984
9277
  )
8985
9278
  )
8986
9279
  )
@@ -9001,7 +9294,7 @@ var PromptGetModule = {
9001
9294
  var PromptListModule = {
9002
9295
  command: "list",
9003
9296
  describe: "List prompts",
9004
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
9297
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
9005
9298
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
9006
9299
  const fetch2 = nodeFetchProxy(proxy, verbose);
9007
9300
  const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9042,13 +9335,13 @@ function createPromptEngineDataSource({
9042
9335
  var PromptPullModule = {
9043
9336
  command: "pull <directory>",
9044
9337
  describe: "Pulls all prompts to local files in a directory",
9045
- builder: (yargs44) => withConfiguration(
9338
+ builder: (yargs45) => withConfiguration(
9046
9339
  withDebugOptions(
9047
9340
  withApiOptions(
9048
9341
  withProjectOptions(
9049
9342
  withStateOptions(
9050
9343
  withDiffOptions(
9051
- yargs44.positional("directory", {
9344
+ yargs45.positional("directory", {
9052
9345
  describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9053
9346
  type: "string"
9054
9347
  }).option("format", {
@@ -9129,12 +9422,12 @@ var PromptPullModule = {
9129
9422
  var PromptPushModule = {
9130
9423
  command: "push <directory>",
9131
9424
  describe: "Pushes all prompts from files in a directory to Uniform",
9132
- builder: (yargs44) => withConfiguration(
9425
+ builder: (yargs45) => withConfiguration(
9133
9426
  withApiOptions(
9134
9427
  withProjectOptions(
9135
9428
  withStateOptions(
9136
9429
  withDiffOptions(
9137
- yargs44.positional("directory", {
9430
+ yargs45.positional("directory", {
9138
9431
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
9139
9432
  type: "string"
9140
9433
  }).option("mode", {
@@ -9203,10 +9496,10 @@ var PromptRemoveModule = {
9203
9496
  command: "remove <id>",
9204
9497
  aliases: ["delete", "rm"],
9205
9498
  describe: "Delete a prompt",
9206
- builder: (yargs44) => withConfiguration(
9499
+ builder: (yargs45) => withConfiguration(
9207
9500
  withDebugOptions(
9208
9501
  withApiOptions(
9209
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9502
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9210
9503
  )
9211
9504
  )
9212
9505
  ),
@@ -9226,11 +9519,11 @@ var PromptUpdateModule = {
9226
9519
  command: "update <filename>",
9227
9520
  aliases: ["put"],
9228
9521
  describe: "Insert or update a prompt",
9229
- builder: (yargs44) => withConfiguration(
9522
+ builder: (yargs45) => withConfiguration(
9230
9523
  withDebugOptions(
9231
9524
  withApiOptions(
9232
9525
  withProjectOptions(
9233
- yargs44.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9526
+ yargs45.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9234
9527
  )
9235
9528
  )
9236
9529
  )
@@ -9250,21 +9543,20 @@ var PromptUpdateModule = {
9250
9543
  // src/commands/canvas/commands/prompts.ts
9251
9544
  var PromptModule = {
9252
9545
  command: "prompt <command>",
9253
- aliases: ["dt"],
9254
9546
  describe: "Commands for AI Prompt definitions",
9255
- builder: (yargs44) => yargs44.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9547
+ builder: (yargs45) => yargs45.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9256
9548
  handler: () => {
9257
- yargs20.help();
9549
+ yargs21.help();
9258
9550
  }
9259
9551
  };
9260
9552
 
9261
9553
  // src/commands/canvas/commands/workflow.ts
9262
- import yargs21 from "yargs";
9554
+ import yargs22 from "yargs";
9263
9555
 
9264
9556
  // src/commands/canvas/commands/workflow/_util.ts
9265
9557
  import { WorkflowClient } from "@uniformdev/canvas";
9266
- var selectIdentifier7 = (workflow) => workflow.id;
9267
- var selectDisplayName7 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9558
+ var selectIdentifier8 = (workflow) => workflow.id;
9559
+ var selectDisplayName8 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9268
9560
  var getWorkflowClient = (options) => new WorkflowClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9269
9561
 
9270
9562
  // src/commands/canvas/workflowEngineDataSource.ts
@@ -9282,8 +9574,8 @@ function createWorkflowEngineDataSource({
9282
9574
  for await (const workflow of workflows) {
9283
9575
  const { modified, modifiedBy, created, createdBy, ...workflowWithoutStatistics } = workflow;
9284
9576
  const result = {
9285
- id: selectIdentifier7(workflow),
9286
- displayName: selectDisplayName7(workflow),
9577
+ id: selectIdentifier8(workflow),
9578
+ displayName: selectDisplayName8(workflow),
9287
9579
  providerId: workflow.id,
9288
9580
  object: workflowWithoutStatistics
9289
9581
  };
@@ -9306,13 +9598,13 @@ function createWorkflowEngineDataSource({
9306
9598
  var WorkflowPullModule = {
9307
9599
  command: "pull <directory>",
9308
9600
  describe: "Pulls all workflows to local files in a directory",
9309
- builder: (yargs44) => withConfiguration(
9601
+ builder: (yargs45) => withConfiguration(
9310
9602
  withApiOptions(
9311
9603
  withDebugOptions(
9312
9604
  withProjectOptions(
9313
9605
  withDiffOptions(
9314
9606
  withBatchSizeOptions(
9315
- yargs44.positional("directory", {
9607
+ yargs45.positional("directory", {
9316
9608
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9317
9609
  type: "string"
9318
9610
  }).option("format", {
@@ -9363,8 +9655,8 @@ var WorkflowPullModule = {
9363
9655
  target = await createArraySyncEngineDataSource({
9364
9656
  name: `Package file ${directory}`,
9365
9657
  objects: packageContents.workflows ?? [],
9366
- selectIdentifier: selectIdentifier7,
9367
- selectDisplayName: selectDisplayName7,
9658
+ selectIdentifier: selectIdentifier8,
9659
+ selectDisplayName: selectDisplayName8,
9368
9660
  onSyncComplete: async (_, synced) => {
9369
9661
  packageContents.workflows = synced;
9370
9662
  writeCanvasPackage(directory, packageContents);
@@ -9373,8 +9665,8 @@ var WorkflowPullModule = {
9373
9665
  } else {
9374
9666
  target = await createFileSyncEngineDataSource({
9375
9667
  directory,
9376
- selectIdentifier: selectIdentifier7,
9377
- selectDisplayName: selectDisplayName7,
9668
+ selectIdentifier: selectIdentifier8,
9669
+ selectDisplayName: selectDisplayName8,
9378
9670
  format,
9379
9671
  verbose
9380
9672
  });
@@ -9394,13 +9686,13 @@ var WorkflowPullModule = {
9394
9686
  var WorkflowPushModule = {
9395
9687
  command: "push <directory>",
9396
9688
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
9397
- builder: (yargs44) => withConfiguration(
9689
+ builder: (yargs45) => withConfiguration(
9398
9690
  withDebugOptions(
9399
9691
  withApiOptions(
9400
9692
  withProjectOptions(
9401
9693
  withDiffOptions(
9402
9694
  withBatchSizeOptions(
9403
- yargs44.positional("directory", {
9695
+ yargs45.positional("directory", {
9404
9696
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
9405
9697
  type: "string"
9406
9698
  }).option("mode", {
@@ -9439,14 +9731,14 @@ var WorkflowPushModule = {
9439
9731
  source = await createArraySyncEngineDataSource({
9440
9732
  name: `Package file ${directory}`,
9441
9733
  objects: packageContents.workflows ?? [],
9442
- selectIdentifier: selectIdentifier7,
9443
- selectDisplayName: selectDisplayName7
9734
+ selectIdentifier: selectIdentifier8,
9735
+ selectDisplayName: selectDisplayName8
9444
9736
  });
9445
9737
  } else {
9446
9738
  source = await createFileSyncEngineDataSource({
9447
9739
  directory,
9448
- selectIdentifier: selectIdentifier7,
9449
- selectDisplayName: selectDisplayName7,
9740
+ selectIdentifier: selectIdentifier8,
9741
+ selectDisplayName: selectDisplayName8,
9450
9742
  verbose
9451
9743
  });
9452
9744
  }
@@ -9471,9 +9763,9 @@ var WorkflowModule = {
9471
9763
  command: "workflow <command>",
9472
9764
  aliases: ["wf"],
9473
9765
  describe: "Commands for Canvas workflows",
9474
- builder: (yargs44) => yargs44.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9766
+ builder: (yargs45) => yargs45.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9475
9767
  handler: () => {
9476
- yargs21.help();
9768
+ yargs22.help();
9477
9769
  }
9478
9770
  };
9479
9771
 
@@ -9482,33 +9774,33 @@ var CanvasCommand = {
9482
9774
  command: "canvas <command>",
9483
9775
  aliases: ["cv", "pm", "presentation"],
9484
9776
  describe: "Uniform Canvas commands",
9485
- builder: (yargs44) => yargs44.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LabelModule).command(LocaleModule).command(WorkflowModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
9777
+ builder: (yargs45) => yargs45.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LabelModule).command(LocaleModule).command(WorkflowModule).command(CustomViewModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
9486
9778
  handler: () => {
9487
- yargs22.showHelp();
9779
+ yargs23.showHelp();
9488
9780
  }
9489
9781
  };
9490
9782
 
9491
9783
  // src/commands/context/index.ts
9492
- import yargs29 from "yargs";
9784
+ import yargs30 from "yargs";
9493
9785
 
9494
9786
  // src/commands/context/commands/aggregate.ts
9495
- import yargs23 from "yargs";
9787
+ import yargs24 from "yargs";
9496
9788
 
9497
9789
  // src/commands/context/commands/aggregate/_util.ts
9498
9790
  import { AggregateClient } from "@uniformdev/context/api";
9499
- var selectIdentifier8 = (source) => source.id;
9500
- var selectDisplayName8 = (source) => `${source.name} (pid: ${source.id})`;
9791
+ var selectIdentifier9 = (source) => source.id;
9792
+ var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
9501
9793
  var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9502
9794
 
9503
9795
  // src/commands/context/commands/aggregate/get.ts
9504
9796
  var AggregateGetModule = {
9505
9797
  command: "get <id>",
9506
9798
  describe: "Fetch an aggregate",
9507
- builder: (yargs44) => withConfiguration(
9799
+ builder: (yargs45) => withConfiguration(
9508
9800
  withFormatOptions(
9509
9801
  withApiOptions(
9510
9802
  withProjectOptions(
9511
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9803
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9512
9804
  )
9513
9805
  )
9514
9806
  )
@@ -9531,7 +9823,7 @@ var AggregateListModule = {
9531
9823
  command: "list",
9532
9824
  describe: "List aggregates",
9533
9825
  aliases: ["ls"],
9534
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
9826
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9535
9827
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9536
9828
  const fetch2 = nodeFetchProxy(proxy);
9537
9829
  const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9549,8 +9841,8 @@ function createAggregateEngineDataSource({
9549
9841
  const aggregates = (await client.get({ type })).aggregates;
9550
9842
  for await (const def of aggregates) {
9551
9843
  const result = {
9552
- id: selectIdentifier8(def),
9553
- displayName: selectDisplayName8(def),
9844
+ id: selectIdentifier9(def),
9845
+ displayName: selectDisplayName9(def),
9554
9846
  providerId: def.id,
9555
9847
  object: def
9556
9848
  };
@@ -9594,12 +9886,12 @@ function writeContextPackage(filename, packageContents) {
9594
9886
  var AggregatePullModule = {
9595
9887
  command: "pull <directory>",
9596
9888
  describe: "Pulls all aggregates to local files in a directory",
9597
- builder: (yargs44) => withConfiguration(
9889
+ builder: (yargs45) => withConfiguration(
9598
9890
  withApiOptions(
9599
9891
  withDebugOptions(
9600
9892
  withProjectOptions(
9601
9893
  withDiffOptions(
9602
- yargs44.positional("directory", {
9894
+ yargs45.positional("directory", {
9603
9895
  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.",
9604
9896
  type: "string"
9605
9897
  }).option("format", {
@@ -9643,8 +9935,8 @@ var AggregatePullModule = {
9643
9935
  target = await createArraySyncEngineDataSource({
9644
9936
  name: `Package file ${directory}`,
9645
9937
  objects: packageContents.aggregates ?? [],
9646
- selectIdentifier: selectIdentifier8,
9647
- selectDisplayName: selectDisplayName8,
9938
+ selectIdentifier: selectIdentifier9,
9939
+ selectDisplayName: selectDisplayName9,
9648
9940
  onSyncComplete: async (_, synced) => {
9649
9941
  packageContents.aggregates = synced;
9650
9942
  writeContextPackage(directory, packageContents);
@@ -9653,8 +9945,8 @@ var AggregatePullModule = {
9653
9945
  } else {
9654
9946
  target = await createFileSyncEngineDataSource({
9655
9947
  directory,
9656
- selectIdentifier: selectIdentifier8,
9657
- selectDisplayName: selectDisplayName8,
9948
+ selectIdentifier: selectIdentifier9,
9949
+ selectDisplayName: selectDisplayName9,
9658
9950
  format,
9659
9951
  verbose
9660
9952
  });
@@ -9674,12 +9966,12 @@ var AggregatePullModule = {
9674
9966
  var AggregatePushModule = {
9675
9967
  command: "push <directory>",
9676
9968
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
9677
- builder: (yargs44) => withConfiguration(
9969
+ builder: (yargs45) => withConfiguration(
9678
9970
  withApiOptions(
9679
9971
  withProjectOptions(
9680
9972
  withDiffOptions(
9681
9973
  withDebugOptions(
9682
- yargs44.positional("directory", {
9974
+ yargs45.positional("directory", {
9683
9975
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
9684
9976
  type: "string"
9685
9977
  }).option("mode", {
@@ -9715,14 +10007,14 @@ var AggregatePushModule = {
9715
10007
  source = await createArraySyncEngineDataSource({
9716
10008
  name: `Package file ${directory}`,
9717
10009
  objects: packageContents.aggregates ?? [],
9718
- selectIdentifier: selectIdentifier8,
9719
- selectDisplayName: selectDisplayName8
10010
+ selectIdentifier: selectIdentifier9,
10011
+ selectDisplayName: selectDisplayName9
9720
10012
  });
9721
10013
  } else {
9722
10014
  source = await createFileSyncEngineDataSource({
9723
10015
  directory,
9724
- selectIdentifier: selectIdentifier8,
9725
- selectDisplayName: selectDisplayName8,
10016
+ selectIdentifier: selectIdentifier9,
10017
+ selectDisplayName: selectDisplayName9,
9726
10018
  verbose
9727
10019
  });
9728
10020
  }
@@ -9744,10 +10036,10 @@ var AggregateRemoveModule = {
9744
10036
  command: "remove <id>",
9745
10037
  aliases: ["delete", "rm"],
9746
10038
  describe: "Delete an aggregate",
9747
- builder: (yargs44) => withConfiguration(
10039
+ builder: (yargs45) => withConfiguration(
9748
10040
  withApiOptions(
9749
10041
  withProjectOptions(
9750
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
10042
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
9751
10043
  )
9752
10044
  )
9753
10045
  ),
@@ -9763,10 +10055,10 @@ var AggregateUpdateModule = {
9763
10055
  command: "update <filename>",
9764
10056
  aliases: ["put"],
9765
10057
  describe: "Insert or update an aggregate",
9766
- builder: (yargs44) => withConfiguration(
10058
+ builder: (yargs45) => withConfiguration(
9767
10059
  withApiOptions(
9768
10060
  withProjectOptions(
9769
- yargs44.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
10061
+ yargs45.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
9770
10062
  )
9771
10063
  )
9772
10064
  ),
@@ -9783,19 +10075,19 @@ var AggregateModule = {
9783
10075
  command: "aggregate <command>",
9784
10076
  aliases: ["agg", "intent", "audience"],
9785
10077
  describe: "Commands for Context aggregates (intents, audiences)",
9786
- builder: (yargs44) => yargs44.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
10078
+ builder: (yargs45) => yargs45.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
9787
10079
  handler: () => {
9788
- yargs23.help();
10080
+ yargs24.help();
9789
10081
  }
9790
10082
  };
9791
10083
 
9792
10084
  // src/commands/context/commands/enrichment.ts
9793
- import yargs24 from "yargs";
10085
+ import yargs25 from "yargs";
9794
10086
 
9795
10087
  // src/commands/context/commands/enrichment/_util.ts
9796
10088
  import { EnrichmentClient } from "@uniformdev/context/api";
9797
- var selectIdentifier9 = (source) => source.id;
9798
- var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
10089
+ var selectIdentifier10 = (source) => source.id;
10090
+ var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
9799
10091
  function getEnrichmentClient(options) {
9800
10092
  return new EnrichmentClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
9801
10093
  }
@@ -9804,11 +10096,11 @@ function getEnrichmentClient(options) {
9804
10096
  var EnrichmentGetModule = {
9805
10097
  command: "get <id>",
9806
10098
  describe: "Fetch an enrichment category and its values",
9807
- builder: (yargs44) => withFormatOptions(
10099
+ builder: (yargs45) => withFormatOptions(
9808
10100
  withConfiguration(
9809
10101
  withApiOptions(
9810
10102
  withProjectOptions(
9811
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
10103
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
9812
10104
  )
9813
10105
  )
9814
10106
  )
@@ -9831,7 +10123,7 @@ var EnrichmentListModule = {
9831
10123
  command: "list",
9832
10124
  describe: "List enrichments",
9833
10125
  aliases: ["ls"],
9834
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10126
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9835
10127
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9836
10128
  const fetch2 = nodeFetchProxy(proxy);
9837
10129
  const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9848,8 +10140,8 @@ function createEnrichmentEngineDataSource({
9848
10140
  const enrichments = (await client.get()).enrichments;
9849
10141
  for await (const def of enrichments) {
9850
10142
  const result = {
9851
- id: selectIdentifier9(def),
9852
- displayName: selectDisplayName9(def),
10143
+ id: selectIdentifier10(def),
10144
+ displayName: selectDisplayName10(def),
9853
10145
  providerId: def.id,
9854
10146
  object: def
9855
10147
  };
@@ -9926,12 +10218,12 @@ var createEnrichmentValueEngineDataSource = ({
9926
10218
  var EnrichmentPullModule = {
9927
10219
  command: "pull <directory>",
9928
10220
  describe: "Pulls all enrichments to local files in a directory",
9929
- builder: (yargs44) => withConfiguration(
10221
+ builder: (yargs45) => withConfiguration(
9930
10222
  withDebugOptions(
9931
10223
  withApiOptions(
9932
10224
  withProjectOptions(
9933
10225
  withDiffOptions(
9934
- yargs44.positional("directory", {
10226
+ yargs45.positional("directory", {
9935
10227
  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.",
9936
10228
  type: "string"
9937
10229
  }).option("format", {
@@ -9975,8 +10267,8 @@ var EnrichmentPullModule = {
9975
10267
  target = await createArraySyncEngineDataSource({
9976
10268
  name: `Package file ${directory}`,
9977
10269
  objects: packageContents.enrichments ?? [],
9978
- selectIdentifier: selectIdentifier9,
9979
- selectDisplayName: selectDisplayName9,
10270
+ selectIdentifier: selectIdentifier10,
10271
+ selectDisplayName: selectDisplayName10,
9980
10272
  onSyncComplete: async (_, synced) => {
9981
10273
  packageContents.enrichments = synced;
9982
10274
  writeContextPackage(directory, packageContents);
@@ -9985,8 +10277,8 @@ var EnrichmentPullModule = {
9985
10277
  } else {
9986
10278
  target = await createFileSyncEngineDataSource({
9987
10279
  directory,
9988
- selectIdentifier: selectIdentifier9,
9989
- selectDisplayName: selectDisplayName9,
10280
+ selectIdentifier: selectIdentifier10,
10281
+ selectDisplayName: selectDisplayName10,
9990
10282
  format,
9991
10283
  verbose
9992
10284
  });
@@ -10006,11 +10298,11 @@ var EnrichmentPullModule = {
10006
10298
  var EnrichmentPushModule = {
10007
10299
  command: "push <directory>",
10008
10300
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
10009
- builder: (yargs44) => withConfiguration(
10301
+ builder: (yargs45) => withConfiguration(
10010
10302
  withApiOptions(
10011
10303
  withProjectOptions(
10012
10304
  withDiffOptions(
10013
- yargs44.positional("directory", {
10305
+ yargs45.positional("directory", {
10014
10306
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
10015
10307
  type: "string"
10016
10308
  }).option("mode", {
@@ -10045,14 +10337,14 @@ var EnrichmentPushModule = {
10045
10337
  source = await createArraySyncEngineDataSource({
10046
10338
  name: `Package file ${directory}`,
10047
10339
  objects: packageContents.enrichments ?? [],
10048
- selectIdentifier: selectIdentifier9,
10049
- selectDisplayName: selectDisplayName9
10340
+ selectIdentifier: selectIdentifier10,
10341
+ selectDisplayName: selectDisplayName10
10050
10342
  });
10051
10343
  } else {
10052
10344
  source = await createFileSyncEngineDataSource({
10053
10345
  directory,
10054
- selectIdentifier: selectIdentifier9,
10055
- selectDisplayName: selectDisplayName9,
10346
+ selectIdentifier: selectIdentifier10,
10347
+ selectDisplayName: selectDisplayName10,
10056
10348
  verbose
10057
10349
  });
10058
10350
  }
@@ -10073,10 +10365,10 @@ var EnrichmentRemoveModule = {
10073
10365
  command: "remove <id>",
10074
10366
  aliases: ["delete", "rm"],
10075
10367
  describe: "Delete an enrichment category and its values",
10076
- builder: (yargs44) => withConfiguration(
10368
+ builder: (yargs45) => withConfiguration(
10077
10369
  withApiOptions(
10078
10370
  withProjectOptions(
10079
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10371
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10080
10372
  )
10081
10373
  )
10082
10374
  ),
@@ -10092,14 +10384,14 @@ var EnrichmentModule = {
10092
10384
  command: "enrichment <command>",
10093
10385
  aliases: ["enr"],
10094
10386
  describe: "Commands for Context enrichments",
10095
- builder: (yargs44) => yargs44.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10387
+ builder: (yargs45) => yargs45.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10096
10388
  handler: () => {
10097
- yargs24.help();
10389
+ yargs25.help();
10098
10390
  }
10099
10391
  };
10100
10392
 
10101
10393
  // src/commands/context/commands/manifest.ts
10102
- import yargs25 from "yargs";
10394
+ import yargs26 from "yargs";
10103
10395
 
10104
10396
  // src/commands/context/commands/manifest/get.ts
10105
10397
  import { ApiClientError as ApiClientError5, ManifestClient } from "@uniformdev/context/api";
@@ -10110,10 +10402,10 @@ var ManifestGetModule = {
10110
10402
  command: "get [output]",
10111
10403
  aliases: ["dl", "download"],
10112
10404
  describe: "Download the Uniform Context manifest for a project",
10113
- builder: (yargs44) => withConfiguration(
10405
+ builder: (yargs45) => withConfiguration(
10114
10406
  withApiOptions(
10115
10407
  withProjectOptions(
10116
- yargs44.option("preview", {
10408
+ yargs45.option("preview", {
10117
10409
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
10118
10410
  default: false,
10119
10411
  type: "boolean",
@@ -10176,7 +10468,7 @@ import { exit as exit2 } from "process";
10176
10468
  var ManifestPublishModule = {
10177
10469
  command: "publish",
10178
10470
  describe: "Publish the Uniform Context manifest for a project",
10179
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
10471
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
10180
10472
  handler: async ({ apiKey, apiHost, proxy, project }) => {
10181
10473
  const fetch2 = nodeFetchProxy(proxy);
10182
10474
  try {
@@ -10210,25 +10502,25 @@ var ManifestModule = {
10210
10502
  command: "manifest <command>",
10211
10503
  describe: "Commands for context manifests",
10212
10504
  aliases: ["man"],
10213
- builder: (yargs44) => yargs44.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10505
+ builder: (yargs45) => yargs45.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10214
10506
  handler: () => {
10215
- yargs25.help();
10507
+ yargs26.help();
10216
10508
  }
10217
10509
  };
10218
10510
 
10219
10511
  // src/commands/context/commands/quirk.ts
10220
- import yargs26 from "yargs";
10512
+ import yargs27 from "yargs";
10221
10513
 
10222
10514
  // src/commands/context/commands/quirk/get.ts
10223
10515
  import { QuirkClient } from "@uniformdev/context/api";
10224
10516
  var QuirkGetModule = {
10225
10517
  command: "get <id>",
10226
10518
  describe: "Fetch a quirk",
10227
- builder: (yargs44) => withConfiguration(
10519
+ builder: (yargs45) => withConfiguration(
10228
10520
  withFormatOptions(
10229
10521
  withApiOptions(
10230
10522
  withProjectOptions(
10231
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10523
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10232
10524
  )
10233
10525
  )
10234
10526
  )
@@ -10252,11 +10544,11 @@ var QuirkListModule = {
10252
10544
  command: "list",
10253
10545
  describe: "List quirks",
10254
10546
  aliases: ["ls"],
10255
- builder: (yargs44) => withConfiguration(
10547
+ builder: (yargs45) => withConfiguration(
10256
10548
  withFormatOptions(
10257
10549
  withApiOptions(
10258
10550
  withProjectOptions(
10259
- yargs44.option("withIntegrations", {
10551
+ yargs45.option("withIntegrations", {
10260
10552
  alias: ["i"],
10261
10553
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
10262
10554
  type: "boolean"
@@ -10277,8 +10569,8 @@ var QuirkListModule = {
10277
10569
  import { QuirkClient as QuirkClient3 } from "@uniformdev/context/api";
10278
10570
 
10279
10571
  // src/commands/context/commands/quirk/_util.ts
10280
- var selectIdentifier10 = (source) => source.id;
10281
- var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
10572
+ var selectIdentifier11 = (source) => source.id;
10573
+ var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10282
10574
 
10283
10575
  // src/commands/context/quirkEngineDataSource.ts
10284
10576
  function createQuirkEngineDataSource({
@@ -10288,8 +10580,8 @@ function createQuirkEngineDataSource({
10288
10580
  const quirks = (await client.get({ withIntegrations: false })).quirks;
10289
10581
  for await (const def of quirks) {
10290
10582
  const result = {
10291
- id: selectIdentifier10(def),
10292
- displayName: selectDisplayName10(def),
10583
+ id: selectIdentifier11(def),
10584
+ displayName: selectDisplayName11(def),
10293
10585
  providerId: def.id,
10294
10586
  object: def
10295
10587
  };
@@ -10314,12 +10606,12 @@ function createQuirkEngineDataSource({
10314
10606
  var QuirkPullModule = {
10315
10607
  command: "pull <directory>",
10316
10608
  describe: "Pulls all quirks to local files in a directory",
10317
- builder: (yargs44) => withConfiguration(
10609
+ builder: (yargs45) => withConfiguration(
10318
10610
  withDebugOptions(
10319
10611
  withApiOptions(
10320
10612
  withProjectOptions(
10321
10613
  withDiffOptions(
10322
- yargs44.positional("directory", {
10614
+ yargs45.positional("directory", {
10323
10615
  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.",
10324
10616
  type: "string"
10325
10617
  }).option("format", {
@@ -10363,8 +10655,8 @@ var QuirkPullModule = {
10363
10655
  target = await createArraySyncEngineDataSource({
10364
10656
  name: `Package file ${directory}`,
10365
10657
  objects: packageContents.quirks ?? [],
10366
- selectIdentifier: selectIdentifier10,
10367
- selectDisplayName: selectDisplayName10,
10658
+ selectIdentifier: selectIdentifier11,
10659
+ selectDisplayName: selectDisplayName11,
10368
10660
  onSyncComplete: async (_, synced) => {
10369
10661
  packageContents.quirks = synced;
10370
10662
  writeContextPackage(directory, packageContents);
@@ -10373,8 +10665,8 @@ var QuirkPullModule = {
10373
10665
  } else {
10374
10666
  target = await createFileSyncEngineDataSource({
10375
10667
  directory,
10376
- selectIdentifier: selectIdentifier10,
10377
- selectDisplayName: selectDisplayName10,
10668
+ selectIdentifier: selectIdentifier11,
10669
+ selectDisplayName: selectDisplayName11,
10378
10670
  format,
10379
10671
  verbose
10380
10672
  });
@@ -10395,12 +10687,12 @@ import { QuirkClient as QuirkClient4 } from "@uniformdev/context/api";
10395
10687
  var QuirkPushModule = {
10396
10688
  command: "push <directory>",
10397
10689
  describe: "Pushes all quirks from files in a directory or package to Uniform",
10398
- builder: (yargs44) => withConfiguration(
10690
+ builder: (yargs45) => withConfiguration(
10399
10691
  withDebugOptions(
10400
10692
  withApiOptions(
10401
10693
  withProjectOptions(
10402
10694
  withDiffOptions(
10403
- yargs44.positional("directory", {
10695
+ yargs45.positional("directory", {
10404
10696
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
10405
10697
  type: "string"
10406
10698
  }).option("mode", {
@@ -10436,14 +10728,14 @@ var QuirkPushModule = {
10436
10728
  source = await createArraySyncEngineDataSource({
10437
10729
  name: `Package file ${directory}`,
10438
10730
  objects: packageContents.quirks ?? [],
10439
- selectIdentifier: selectIdentifier10,
10440
- selectDisplayName: selectDisplayName10
10731
+ selectIdentifier: selectIdentifier11,
10732
+ selectDisplayName: selectDisplayName11
10441
10733
  });
10442
10734
  } else {
10443
10735
  source = await createFileSyncEngineDataSource({
10444
10736
  directory,
10445
- selectIdentifier: selectIdentifier10,
10446
- selectDisplayName: selectDisplayName10,
10737
+ selectIdentifier: selectIdentifier11,
10738
+ selectDisplayName: selectDisplayName11,
10447
10739
  verbose
10448
10740
  });
10449
10741
  }
@@ -10465,10 +10757,10 @@ var QuirkRemoveModule = {
10465
10757
  command: "remove <id>",
10466
10758
  aliases: ["delete", "rm"],
10467
10759
  describe: "Delete a quirk",
10468
- builder: (yargs44) => withConfiguration(
10760
+ builder: (yargs45) => withConfiguration(
10469
10761
  withApiOptions(
10470
10762
  withProjectOptions(
10471
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10763
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10472
10764
  )
10473
10765
  )
10474
10766
  ),
@@ -10485,10 +10777,10 @@ var QuirkUpdateModule = {
10485
10777
  command: "update <filename>",
10486
10778
  aliases: ["put"],
10487
10779
  describe: "Insert or update a quirk",
10488
- builder: (yargs44) => withConfiguration(
10780
+ builder: (yargs45) => withConfiguration(
10489
10781
  withApiOptions(
10490
10782
  withProjectOptions(
10491
- yargs44.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10783
+ yargs45.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10492
10784
  )
10493
10785
  )
10494
10786
  ),
@@ -10505,25 +10797,25 @@ var QuirkModule = {
10505
10797
  command: "quirk <command>",
10506
10798
  aliases: ["qk"],
10507
10799
  describe: "Commands for Context quirks",
10508
- builder: (yargs44) => yargs44.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10800
+ builder: (yargs45) => yargs45.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10509
10801
  handler: () => {
10510
- yargs26.help();
10802
+ yargs27.help();
10511
10803
  }
10512
10804
  };
10513
10805
 
10514
10806
  // src/commands/context/commands/signal.ts
10515
- import yargs27 from "yargs";
10807
+ import yargs28 from "yargs";
10516
10808
 
10517
10809
  // src/commands/context/commands/signal/get.ts
10518
10810
  import { SignalClient } from "@uniformdev/context/api";
10519
10811
  var SignalGetModule = {
10520
10812
  command: "get <id>",
10521
10813
  describe: "Fetch a signal",
10522
- builder: (yargs44) => withConfiguration(
10814
+ builder: (yargs45) => withConfiguration(
10523
10815
  withFormatOptions(
10524
10816
  withApiOptions(
10525
10817
  withProjectOptions(
10526
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10818
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10527
10819
  )
10528
10820
  )
10529
10821
  )
@@ -10547,7 +10839,7 @@ var SignalListModule = {
10547
10839
  command: "list",
10548
10840
  describe: "List signals",
10549
10841
  aliases: ["ls"],
10550
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10842
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10551
10843
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10552
10844
  const fetch2 = nodeFetchProxy(proxy);
10553
10845
  const client = new SignalClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10560,8 +10852,8 @@ var SignalListModule = {
10560
10852
  import { SignalClient as SignalClient3 } from "@uniformdev/context/api";
10561
10853
 
10562
10854
  // src/commands/context/commands/signal/_util.ts
10563
- var selectIdentifier11 = (source) => source.id;
10564
- var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10855
+ var selectIdentifier12 = (source) => source.id;
10856
+ var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
10565
10857
 
10566
10858
  // src/commands/context/signalEngineDataSource.ts
10567
10859
  function createSignalEngineDataSource({
@@ -10571,8 +10863,8 @@ function createSignalEngineDataSource({
10571
10863
  const signals = (await client.get()).signals;
10572
10864
  for await (const def of signals) {
10573
10865
  const result = {
10574
- id: selectIdentifier11(def),
10575
- displayName: selectDisplayName11(def),
10866
+ id: selectIdentifier12(def),
10867
+ displayName: selectDisplayName12(def),
10576
10868
  providerId: def.id,
10577
10869
  object: def
10578
10870
  };
@@ -10597,12 +10889,12 @@ function createSignalEngineDataSource({
10597
10889
  var SignalPullModule = {
10598
10890
  command: "pull <directory>",
10599
10891
  describe: "Pulls all signals to local files in a directory",
10600
- builder: (yargs44) => withConfiguration(
10892
+ builder: (yargs45) => withConfiguration(
10601
10893
  withDebugOptions(
10602
10894
  withApiOptions(
10603
10895
  withProjectOptions(
10604
10896
  withDiffOptions(
10605
- yargs44.positional("directory", {
10897
+ yargs45.positional("directory", {
10606
10898
  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.",
10607
10899
  type: "string"
10608
10900
  }).option("format", {
@@ -10646,8 +10938,8 @@ var SignalPullModule = {
10646
10938
  target = await createArraySyncEngineDataSource({
10647
10939
  name: `Package file ${directory}`,
10648
10940
  objects: packageContents.signals ?? [],
10649
- selectIdentifier: selectIdentifier11,
10650
- selectDisplayName: selectDisplayName11,
10941
+ selectIdentifier: selectIdentifier12,
10942
+ selectDisplayName: selectDisplayName12,
10651
10943
  onSyncComplete: async (_, synced) => {
10652
10944
  packageContents.signals = synced;
10653
10945
  writeContextPackage(directory, packageContents);
@@ -10656,8 +10948,8 @@ var SignalPullModule = {
10656
10948
  } else {
10657
10949
  target = await createFileSyncEngineDataSource({
10658
10950
  directory,
10659
- selectIdentifier: selectIdentifier11,
10660
- selectDisplayName: selectDisplayName11,
10951
+ selectIdentifier: selectIdentifier12,
10952
+ selectDisplayName: selectDisplayName12,
10661
10953
  format,
10662
10954
  verbose
10663
10955
  });
@@ -10678,12 +10970,12 @@ import { SignalClient as SignalClient4 } from "@uniformdev/context/api";
10678
10970
  var SignalPushModule = {
10679
10971
  command: "push <directory>",
10680
10972
  describe: "Pushes all signals from files in a directory or package to Uniform",
10681
- builder: (yargs44) => withConfiguration(
10973
+ builder: (yargs45) => withConfiguration(
10682
10974
  withDebugOptions(
10683
10975
  withApiOptions(
10684
10976
  withProjectOptions(
10685
10977
  withDiffOptions(
10686
- yargs44.positional("directory", {
10978
+ yargs45.positional("directory", {
10687
10979
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
10688
10980
  type: "string"
10689
10981
  }).option("mode", {
@@ -10719,14 +11011,14 @@ var SignalPushModule = {
10719
11011
  source = await createArraySyncEngineDataSource({
10720
11012
  name: `Package file ${directory}`,
10721
11013
  objects: packageContents.signals ?? [],
10722
- selectIdentifier: selectIdentifier11,
10723
- selectDisplayName: selectDisplayName11
11014
+ selectIdentifier: selectIdentifier12,
11015
+ selectDisplayName: selectDisplayName12
10724
11016
  });
10725
11017
  } else {
10726
11018
  source = await createFileSyncEngineDataSource({
10727
11019
  directory,
10728
- selectIdentifier: selectIdentifier11,
10729
- selectDisplayName: selectDisplayName11,
11020
+ selectIdentifier: selectIdentifier12,
11021
+ selectDisplayName: selectDisplayName12,
10730
11022
  verbose
10731
11023
  });
10732
11024
  }
@@ -10748,10 +11040,10 @@ var SignalRemoveModule = {
10748
11040
  command: "remove <id>",
10749
11041
  aliases: ["delete", "rm"],
10750
11042
  describe: "Delete a signal",
10751
- builder: (yargs44) => withConfiguration(
11043
+ builder: (yargs45) => withConfiguration(
10752
11044
  withApiOptions(
10753
11045
  withProjectOptions(
10754
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
11046
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
10755
11047
  )
10756
11048
  )
10757
11049
  ),
@@ -10768,10 +11060,10 @@ var SignalUpdateModule = {
10768
11060
  command: "update <filename>",
10769
11061
  aliases: ["put"],
10770
11062
  describe: "Insert or update a signal",
10771
- builder: (yargs44) => withConfiguration(
11063
+ builder: (yargs45) => withConfiguration(
10772
11064
  withApiOptions(
10773
11065
  withProjectOptions(
10774
- yargs44.positional("filename", { demandOption: true, describe: "Signal file to put" })
11066
+ yargs45.positional("filename", { demandOption: true, describe: "Signal file to put" })
10775
11067
  )
10776
11068
  )
10777
11069
  ),
@@ -10788,25 +11080,25 @@ var SignalModule = {
10788
11080
  command: "signal <command>",
10789
11081
  aliases: ["sig"],
10790
11082
  describe: "Commands for Context signals",
10791
- builder: (yargs44) => yargs44.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
11083
+ builder: (yargs45) => yargs45.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
10792
11084
  handler: () => {
10793
- yargs27.help();
11085
+ yargs28.help();
10794
11086
  }
10795
11087
  };
10796
11088
 
10797
11089
  // src/commands/context/commands/test.ts
10798
- import yargs28 from "yargs";
11090
+ import yargs29 from "yargs";
10799
11091
 
10800
11092
  // src/commands/context/commands/test/get.ts
10801
11093
  import { TestClient } from "@uniformdev/context/api";
10802
11094
  var TestGetModule = {
10803
11095
  command: "get <id>",
10804
11096
  describe: "Fetch a test",
10805
- builder: (yargs44) => withConfiguration(
11097
+ builder: (yargs45) => withConfiguration(
10806
11098
  withFormatOptions(
10807
11099
  withApiOptions(
10808
11100
  withProjectOptions(
10809
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
11101
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
10810
11102
  )
10811
11103
  )
10812
11104
  )
@@ -10830,7 +11122,7 @@ var TestListModule = {
10830
11122
  command: "list",
10831
11123
  describe: "List tests",
10832
11124
  aliases: ["ls"],
10833
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
11125
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10834
11126
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10835
11127
  const fetch2 = nodeFetchProxy(proxy);
10836
11128
  const client = new TestClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10843,8 +11135,8 @@ var TestListModule = {
10843
11135
  import { TestClient as TestClient3 } from "@uniformdev/context/api";
10844
11136
 
10845
11137
  // src/commands/context/commands/test/_util.ts
10846
- var selectIdentifier12 = (source) => source.id;
10847
- var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
11138
+ var selectIdentifier13 = (source) => source.id;
11139
+ var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
10848
11140
 
10849
11141
  // src/commands/context/testEngineDataSource.ts
10850
11142
  function createTestEngineDataSource({
@@ -10854,8 +11146,8 @@ function createTestEngineDataSource({
10854
11146
  const tests = (await client.get()).tests;
10855
11147
  for await (const def of tests) {
10856
11148
  const result = {
10857
- id: selectIdentifier12(def),
10858
- displayName: selectDisplayName12(def),
11149
+ id: selectIdentifier13(def),
11150
+ displayName: selectDisplayName13(def),
10859
11151
  providerId: def.id,
10860
11152
  object: def
10861
11153
  };
@@ -10880,12 +11172,12 @@ function createTestEngineDataSource({
10880
11172
  var TestPullModule = {
10881
11173
  command: "pull <directory>",
10882
11174
  describe: "Pulls all tests to local files in a directory",
10883
- builder: (yargs44) => withConfiguration(
11175
+ builder: (yargs45) => withConfiguration(
10884
11176
  withDebugOptions(
10885
11177
  withApiOptions(
10886
11178
  withProjectOptions(
10887
11179
  withDiffOptions(
10888
- yargs44.positional("directory", {
11180
+ yargs45.positional("directory", {
10889
11181
  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.",
10890
11182
  type: "string"
10891
11183
  }).option("format", {
@@ -10929,8 +11221,8 @@ var TestPullModule = {
10929
11221
  target = await createArraySyncEngineDataSource({
10930
11222
  name: `Package file ${directory}`,
10931
11223
  objects: packageContents.tests ?? [],
10932
- selectIdentifier: selectIdentifier12,
10933
- selectDisplayName: selectDisplayName12,
11224
+ selectIdentifier: selectIdentifier13,
11225
+ selectDisplayName: selectDisplayName13,
10934
11226
  onSyncComplete: async (_, synced) => {
10935
11227
  packageContents.tests = synced;
10936
11228
  writeContextPackage(directory, packageContents);
@@ -10939,8 +11231,8 @@ var TestPullModule = {
10939
11231
  } else {
10940
11232
  target = await createFileSyncEngineDataSource({
10941
11233
  directory,
10942
- selectIdentifier: selectIdentifier12,
10943
- selectDisplayName: selectDisplayName12,
11234
+ selectIdentifier: selectIdentifier13,
11235
+ selectDisplayName: selectDisplayName13,
10944
11236
  format,
10945
11237
  verbose
10946
11238
  });
@@ -10961,12 +11253,12 @@ import { TestClient as TestClient4 } from "@uniformdev/context/api";
10961
11253
  var TestPushModule = {
10962
11254
  command: "push <directory>",
10963
11255
  describe: "Pushes all tests from files in a directory or package to Uniform",
10964
- builder: (yargs44) => withConfiguration(
11256
+ builder: (yargs45) => withConfiguration(
10965
11257
  withDebugOptions(
10966
11258
  withApiOptions(
10967
11259
  withProjectOptions(
10968
11260
  withDiffOptions(
10969
- yargs44.positional("directory", {
11261
+ yargs45.positional("directory", {
10970
11262
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
10971
11263
  type: "string"
10972
11264
  }).option("mode", {
@@ -11002,14 +11294,14 @@ var TestPushModule = {
11002
11294
  source = await createArraySyncEngineDataSource({
11003
11295
  name: `Package file ${directory}`,
11004
11296
  objects: packageContents.tests ?? [],
11005
- selectIdentifier: selectIdentifier12,
11006
- selectDisplayName: selectDisplayName12
11297
+ selectIdentifier: selectIdentifier13,
11298
+ selectDisplayName: selectDisplayName13
11007
11299
  });
11008
11300
  } else {
11009
11301
  source = await createFileSyncEngineDataSource({
11010
11302
  directory,
11011
- selectIdentifier: selectIdentifier12,
11012
- selectDisplayName: selectDisplayName12,
11303
+ selectIdentifier: selectIdentifier13,
11304
+ selectDisplayName: selectDisplayName13,
11013
11305
  verbose
11014
11306
  });
11015
11307
  }
@@ -11031,10 +11323,10 @@ var TestRemoveModule = {
11031
11323
  command: "remove <id>",
11032
11324
  aliases: ["delete", "rm"],
11033
11325
  describe: "Delete a test",
11034
- builder: (yargs44) => withConfiguration(
11326
+ builder: (yargs45) => withConfiguration(
11035
11327
  withApiOptions(
11036
11328
  withProjectOptions(
11037
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11329
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11038
11330
  )
11039
11331
  )
11040
11332
  ),
@@ -11051,9 +11343,9 @@ var TestUpdateModule = {
11051
11343
  command: "update <filename>",
11052
11344
  aliases: ["put"],
11053
11345
  describe: "Insert or update a test",
11054
- builder: (yargs44) => withConfiguration(
11346
+ builder: (yargs45) => withConfiguration(
11055
11347
  withApiOptions(
11056
- withProjectOptions(yargs44.positional("filename", { demandOption: true, describe: "Test file to put" }))
11348
+ withProjectOptions(yargs45.positional("filename", { demandOption: true, describe: "Test file to put" }))
11057
11349
  )
11058
11350
  ),
11059
11351
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -11068,9 +11360,9 @@ var TestUpdateModule = {
11068
11360
  var TestModule = {
11069
11361
  command: "test <command>",
11070
11362
  describe: "Commands for Context A/B tests",
11071
- builder: (yargs44) => yargs44.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11363
+ builder: (yargs45) => yargs45.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11072
11364
  handler: () => {
11073
- yargs28.help();
11365
+ yargs29.help();
11074
11366
  }
11075
11367
  };
11076
11368
 
@@ -11079,29 +11371,29 @@ var ContextCommand = {
11079
11371
  command: "context <command>",
11080
11372
  aliases: ["ctx"],
11081
11373
  describe: "Uniform Context commands",
11082
- builder: (yargs44) => yargs44.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11374
+ builder: (yargs45) => yargs45.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11083
11375
  handler: () => {
11084
- yargs29.showHelp();
11376
+ yargs30.showHelp();
11085
11377
  }
11086
11378
  };
11087
11379
 
11088
11380
  // src/commands/integration/index.ts
11089
- import yargs34 from "yargs";
11381
+ import yargs35 from "yargs";
11090
11382
 
11091
11383
  // src/commands/integration/commands/definition.ts
11092
- import yargs33 from "yargs";
11384
+ import yargs34 from "yargs";
11093
11385
 
11094
11386
  // src/commands/integration/commands/definition/dataResourceEditor/dataResourceEditor.ts
11095
- import yargs30 from "yargs";
11387
+ import yargs31 from "yargs";
11096
11388
 
11097
11389
  // src/commands/integration/commands/definition/dataResourceEditor/deploy.ts
11098
11390
  import { readFileSync as readFileSync3 } from "fs";
11099
11391
 
11100
11392
  // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
11101
11393
  import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
11102
- import { ApiClient } from "@uniformdev/context/api";
11394
+ import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11103
11395
  var ENDPOINT = "/api/v1/integration-edgehancers";
11104
- var EdgehancerClient = class extends ApiClient {
11396
+ var EdgehancerClient = class extends ApiClient2 {
11105
11397
  constructor(options) {
11106
11398
  if (!options.limitPolicy) {
11107
11399
  options.limitPolicy = createLimitPolicy2({});
@@ -11130,8 +11422,8 @@ var EdgehancerClient = class extends ApiClient {
11130
11422
  };
11131
11423
 
11132
11424
  // src/commands/integration/commands/definition/dataResourceEditor/util.ts
11133
- function withDataResourceEditorIdOptions(yargs44) {
11134
- return yargs44.option("connectorType", {
11425
+ function withDataResourceEditorIdOptions(yargs45) {
11426
+ return yargs45.option("connectorType", {
11135
11427
  describe: "Integration data connector type to attach the data resource editor to, as defined in the integration manifest file.",
11136
11428
  demandOption: true,
11137
11429
  type: "string"
@@ -11151,11 +11443,11 @@ function withDataResourceEditorIdOptions(yargs44) {
11151
11443
  var IntegrationDataResourceEditorDeployModule = {
11152
11444
  command: "deploy <filename>",
11153
11445
  describe: "Deploys a custom AI data resource editor hook to run when AI edits data resources of a specific archetype. The API key used must have team admin permissions.",
11154
- builder: (yargs44) => withConfiguration(
11446
+ builder: (yargs45) => withConfiguration(
11155
11447
  withApiOptions(
11156
11448
  withTeamOptions(
11157
11449
  withDataResourceEditorIdOptions(
11158
- yargs44.positional("filename", {
11450
+ yargs45.positional("filename", {
11159
11451
  demandOption: true,
11160
11452
  describe: "ESM code file to run for the target data resource editor hook. Refer to the documentation for expected types."
11161
11453
  }).option("compatibilityDate", {
@@ -11198,7 +11490,7 @@ var IntegrationDataResourceEditorDeployModule = {
11198
11490
  var IntegrationDataResourceEditorRemoveModule = {
11199
11491
  command: "remove",
11200
11492
  describe: "Removes a custom AI data resource editor hook from a data resource archetype. The API key used must have team admin permissions.",
11201
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs44)))),
11493
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs45)))),
11202
11494
  handler: async ({ apiHost, apiKey, proxy, team: teamId, connectorType, archetype, hook }) => {
11203
11495
  const fetch2 = nodeFetchProxy(proxy);
11204
11496
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11210,21 +11502,21 @@ var IntegrationDataResourceEditorRemoveModule = {
11210
11502
  var IntegrationDataResourceEditorModule = {
11211
11503
  command: "dataResourceEditor <command>",
11212
11504
  describe: "Commands for managing custom AI data resource editors at the team level.",
11213
- builder: (yargs44) => yargs44.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11505
+ builder: (yargs45) => yargs45.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11214
11506
  handler: () => {
11215
- yargs30.help();
11507
+ yargs31.help();
11216
11508
  }
11217
11509
  };
11218
11510
 
11219
11511
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
11220
- import yargs31 from "yargs";
11512
+ import yargs32 from "yargs";
11221
11513
 
11222
11514
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
11223
11515
  import { readFileSync as readFileSync4 } from "fs";
11224
11516
 
11225
11517
  // src/commands/integration/commands/definition/edgehancer/util.ts
11226
- function withEdgehancerIdOptions(yargs44) {
11227
- return yargs44.option("connectorType", {
11518
+ function withEdgehancerIdOptions(yargs45) {
11519
+ return yargs45.option("connectorType", {
11228
11520
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
11229
11521
  demandOption: true,
11230
11522
  type: "string"
@@ -11244,11 +11536,11 @@ function withEdgehancerIdOptions(yargs44) {
11244
11536
  var IntegrationEdgehancerDeployModule = {
11245
11537
  command: "deploy <filename>",
11246
11538
  describe: "Deploys a custom edgehancer hook to run when a data resource of a specific archetype is fetched. The API key used must have team admin permissions.",
11247
- builder: (yargs44) => withConfiguration(
11539
+ builder: (yargs45) => withConfiguration(
11248
11540
  withApiOptions(
11249
11541
  withTeamOptions(
11250
11542
  withEdgehancerIdOptions(
11251
- yargs44.positional("filename", {
11543
+ yargs45.positional("filename", {
11252
11544
  demandOption: true,
11253
11545
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
11254
11546
  }).option("compatibilityDate", {
@@ -11291,7 +11583,7 @@ var IntegrationEdgehancerDeployModule = {
11291
11583
  var IntegrationEdgehancerRemoveModule = {
11292
11584
  command: "remove",
11293
11585
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
11294
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs44)))),
11586
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs45)))),
11295
11587
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
11296
11588
  const fetch2 = nodeFetchProxy(proxy);
11297
11589
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11303,22 +11595,22 @@ var IntegrationEdgehancerRemoveModule = {
11303
11595
  var IntegrationEdgehancerModule = {
11304
11596
  command: "edgehancer <command>",
11305
11597
  describe: "Commands for managing custom integration edgehancers at the team level.",
11306
- builder: (yargs44) => yargs44.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11598
+ builder: (yargs45) => yargs45.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11307
11599
  handler: () => {
11308
- yargs31.help();
11600
+ yargs32.help();
11309
11601
  }
11310
11602
  };
11311
11603
 
11312
11604
  // src/commands/integration/commands/definition/propertyEditor/propertyEditor.ts
11313
- import yargs32 from "yargs";
11605
+ import yargs33 from "yargs";
11314
11606
 
11315
11607
  // src/commands/integration/commands/definition/propertyEditor/deploy.ts
11316
11608
  import { IntegrationPropertyEditorsClient } from "@uniformdev/canvas";
11317
11609
  import { readFileSync as readFileSync5 } from "fs";
11318
11610
 
11319
11611
  // src/commands/integration/commands/definition/propertyEditor/util.ts
11320
- function withPropertyEditorIdOptions(yargs44) {
11321
- return yargs44.option("propertyType", {
11612
+ function withPropertyEditorIdOptions(yargs45) {
11613
+ return yargs45.option("propertyType", {
11322
11614
  describe: "Property type to attach the editor to.",
11323
11615
  demandOption: true,
11324
11616
  type: "string"
@@ -11334,11 +11626,11 @@ function withPropertyEditorIdOptions(yargs44) {
11334
11626
  var IntegrationPropertyEditorDeployModule = {
11335
11627
  command: "deploy <filename>",
11336
11628
  describe: "Deploys a custom AI property editor hook to run when a property of a specific type is edited. The API key used must have team admin permissions.",
11337
- builder: (yargs44) => withConfiguration(
11629
+ builder: (yargs45) => withConfiguration(
11338
11630
  withApiOptions(
11339
11631
  withTeamOptions(
11340
11632
  withPropertyEditorIdOptions(
11341
- yargs44.positional("filename", {
11633
+ yargs45.positional("filename", {
11342
11634
  demandOption: true,
11343
11635
  describe: "ESM code file to run for the target property editor hook. Refer to the documentation for expected types."
11344
11636
  }).option("compatibilityDate", {
@@ -11381,7 +11673,7 @@ import { IntegrationPropertyEditorsClient as IntegrationPropertyEditorsClient2 }
11381
11673
  var IntegrationPropertyEditorRemoveModule = {
11382
11674
  command: "remove",
11383
11675
  describe: "Deletes a custom AI property editor hook from a property type. The API key used must have team admin permissions.",
11384
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs44)))),
11676
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs45)))),
11385
11677
  handler: async ({ apiHost, apiKey, proxy, team: teamId, propertyType, hook }) => {
11386
11678
  const fetch2 = nodeFetchProxy(proxy);
11387
11679
  const client = new IntegrationPropertyEditorsClient2({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11393,17 +11685,17 @@ var IntegrationPropertyEditorRemoveModule = {
11393
11685
  var IntegrationPropertyEditorModule = {
11394
11686
  command: "propertyEditor <command>",
11395
11687
  describe: "Commands for managing custom AI property editors at the team level.",
11396
- builder: (yargs44) => yargs44.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11688
+ builder: (yargs45) => yargs45.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11397
11689
  handler: () => {
11398
- yargs32.help();
11690
+ yargs33.help();
11399
11691
  }
11400
11692
  };
11401
11693
 
11402
11694
  // src/commands/integration/commands/definition/DefinitionClient.ts
11403
11695
  import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
11404
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11696
+ import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11405
11697
  var ENDPOINT2 = "/api/v1/integration-definitions";
11406
- var DefinitionClient = class extends ApiClient2 {
11698
+ var DefinitionClient = class extends ApiClient3 {
11407
11699
  constructor(options) {
11408
11700
  if (!options.limitPolicy) {
11409
11701
  options.limitPolicy = createLimitPolicy3({});
@@ -11435,10 +11727,10 @@ var DefinitionClient = class extends ApiClient2 {
11435
11727
  var IntegrationDefinitionRegisterModule = {
11436
11728
  command: "register <filename>",
11437
11729
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
11438
- builder: (yargs44) => withConfiguration(
11730
+ builder: (yargs45) => withConfiguration(
11439
11731
  withApiOptions(
11440
11732
  withTeamOptions(
11441
- yargs44.positional("filename", {
11733
+ yargs45.positional("filename", {
11442
11734
  demandOption: true,
11443
11735
  describe: "Integration definition manifest to register"
11444
11736
  })
@@ -11457,10 +11749,10 @@ var IntegrationDefinitionRegisterModule = {
11457
11749
  var IntegrationDefinitionRemoveModule = {
11458
11750
  command: "remove <type>",
11459
11751
  describe: "Deletes a custom integration definition from a team. This will uninstall it on any active projects. Existing usages of the integration may break. The API key used must have team admin permissions.",
11460
- builder: (yargs44) => withConfiguration(
11752
+ builder: (yargs45) => withConfiguration(
11461
11753
  withApiOptions(
11462
11754
  withTeamOptions(
11463
- yargs44.positional("type", {
11755
+ yargs45.positional("type", {
11464
11756
  demandOption: true,
11465
11757
  describe: "Integration type (from its manifest) to remove."
11466
11758
  })
@@ -11478,17 +11770,17 @@ var IntegrationDefinitionRemoveModule = {
11478
11770
  var IntegrationDefinitionModule = {
11479
11771
  command: "definition <command>",
11480
11772
  describe: "Commands for managing custom integration definitions at the team level.",
11481
- builder: (yargs44) => yargs44.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11773
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11482
11774
  handler: () => {
11483
- yargs33.help();
11775
+ yargs34.help();
11484
11776
  }
11485
11777
  };
11486
11778
 
11487
11779
  // src/commands/integration/commands/InstallClient.ts
11488
11780
  import { createLimitPolicy as createLimitPolicy4 } from "@uniformdev/canvas";
11489
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11781
+ import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
11490
11782
  var ENDPOINT3 = "/api/v1/integration-installations";
11491
- var InstallClient = class extends ApiClient3 {
11783
+ var InstallClient = class extends ApiClient4 {
11492
11784
  constructor(options) {
11493
11785
  if (!options.limitPolicy) {
11494
11786
  options.limitPolicy = createLimitPolicy4({});
@@ -11520,10 +11812,10 @@ var InstallClient = class extends ApiClient3 {
11520
11812
  var IntegrationInstallModule = {
11521
11813
  command: "install <type>",
11522
11814
  describe: "Installs an integration to a project. The integration may be built-in or custom. Custom integrations must be registered to the parent team first.",
11523
- builder: (yargs44) => withConfiguration(
11815
+ builder: (yargs45) => withConfiguration(
11524
11816
  withApiOptions(
11525
11817
  withProjectOptions(
11526
- yargs44.positional("type", {
11818
+ yargs45.positional("type", {
11527
11819
  demandOption: true,
11528
11820
  describe: "Integration type to install (as defined in its manifest)"
11529
11821
  }).option("configuration", {
@@ -11545,10 +11837,10 @@ var IntegrationInstallModule = {
11545
11837
  var IntegrationUninstallModule = {
11546
11838
  command: "uninstall <type>",
11547
11839
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
11548
- builder: (yargs44) => withConfiguration(
11840
+ builder: (yargs45) => withConfiguration(
11549
11841
  withApiOptions(
11550
11842
  withProjectOptions(
11551
- yargs44.positional("type", {
11843
+ yargs45.positional("type", {
11552
11844
  demandOption: true,
11553
11845
  describe: "Integration type to uninstall (as defined in its manifest)"
11554
11846
  })
@@ -11566,9 +11858,9 @@ var IntegrationUninstallModule = {
11566
11858
  var IntegrationCommand = {
11567
11859
  command: "integration <command>",
11568
11860
  describe: "Integration management commands",
11569
- builder: (yargs44) => yargs44.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11861
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11570
11862
  handler: () => {
11571
- yargs34.showHelp();
11863
+ yargs35.showHelp();
11572
11864
  }
11573
11865
  };
11574
11866
 
@@ -11596,7 +11888,7 @@ ${err.message}`);
11596
11888
  };
11597
11889
 
11598
11890
  // src/projects/cloneStarter.ts
11599
- import crypto2 from "crypto";
11891
+ import crypto3 from "crypto";
11600
11892
  import fs7 from "fs";
11601
11893
  import fsj5 from "fs-jetpack";
11602
11894
  import * as git from "isomorphic-git";
@@ -11611,7 +11903,7 @@ async function cloneStarter({
11611
11903
  githubBranch
11612
11904
  }) {
11613
11905
  const done = await spin("Fetching starter code...");
11614
- const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
11906
+ const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto3.randomBytes(20).toString("hex")}`);
11615
11907
  const [user, repo, ...pathSegments] = githubPath.split("/");
11616
11908
  try {
11617
11909
  await git.clone({
@@ -12033,14 +12325,14 @@ var NewMeshCmd = {
12033
12325
  };
12034
12326
 
12035
12327
  // src/commands/policy-documents/index.ts
12036
- import yargs35 from "yargs";
12328
+ import yargs36 from "yargs";
12037
12329
 
12038
12330
  // src/commands/policy-documents/commands/list.ts
12039
12331
  var PolicyDocumentsListModule = {
12040
12332
  command: "list",
12041
12333
  describe: "List policy documents for a project",
12042
12334
  aliases: ["ls"],
12043
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12335
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12044
12336
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
12045
12337
  const fetch2 = nodeFetchProxy(proxy, verbose);
12046
12338
  const url = new URL(`/api/v1/policy-documents`, apiHost);
@@ -12118,19 +12410,19 @@ ${errorText}`
12118
12410
  }
12119
12411
 
12120
12412
  // src/commands/policy-documents/commands/_util.ts
12121
- var selectIdentifier13 = (policyDoc) => policyDoc.roleId;
12122
- var selectDisplayName13 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12413
+ var selectIdentifier14 = (policyDoc) => policyDoc.roleId;
12414
+ var selectDisplayName14 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12123
12415
 
12124
12416
  // src/commands/policy-documents/commands/pull.ts
12125
12417
  var PolicyDocumentsPullModule = {
12126
12418
  command: "pull <directory>",
12127
12419
  describe: "Pulls all policy documents to local files in a directory",
12128
- builder: (yargs44) => withConfiguration(
12420
+ builder: (yargs45) => withConfiguration(
12129
12421
  withApiOptions(
12130
12422
  withDebugOptions(
12131
12423
  withProjectOptions(
12132
12424
  withDiffOptions(
12133
- yargs44.positional("directory", {
12425
+ yargs45.positional("directory", {
12134
12426
  describe: "Directory to save to. Each policy document will be saved as a separate file named by role ID.",
12135
12427
  type: "string"
12136
12428
  }).option("format", {
@@ -12168,8 +12460,8 @@ var PolicyDocumentsPullModule = {
12168
12460
  const source = createPolicyDocumentsEngineDataSource({ apiKey, apiHost, fetch: fetch2, projectId });
12169
12461
  const target = await createFileSyncEngineDataSource({
12170
12462
  directory,
12171
- selectIdentifier: selectIdentifier13,
12172
- selectDisplayName: selectDisplayName13,
12463
+ selectIdentifier: selectIdentifier14,
12464
+ selectDisplayName: selectDisplayName14,
12173
12465
  format,
12174
12466
  verbose
12175
12467
  });
@@ -12264,12 +12556,12 @@ function mergePolicyDocuments(localDocs, remoteDocs, mode) {
12264
12556
  var PolicyDocumentsPushModule = {
12265
12557
  command: "push <directory>",
12266
12558
  describe: "Pushes policy documents from local files to Uniform",
12267
- builder: (yargs44) => withConfiguration(
12559
+ builder: (yargs45) => withConfiguration(
12268
12560
  withApiOptions(
12269
12561
  withDebugOptions(
12270
12562
  withProjectOptions(
12271
12563
  withDiffOptions(
12272
- yargs44.positional("directory", {
12564
+ yargs45.positional("directory", {
12273
12565
  describe: "Directory containing policy document files (one file per role ID).",
12274
12566
  type: "string"
12275
12567
  }).option("format", {
@@ -12318,8 +12610,8 @@ var PolicyDocumentsPushModule = {
12318
12610
  const finalDocs = mergePolicyDocuments(localDocs, remoteDocs, mode);
12319
12611
  const source = await createFileSyncEngineDataSource({
12320
12612
  directory,
12321
- selectIdentifier: selectIdentifier13,
12322
- selectDisplayName: selectDisplayName13,
12613
+ selectIdentifier: selectIdentifier14,
12614
+ selectDisplayName: selectDisplayName14,
12323
12615
  format,
12324
12616
  verbose
12325
12617
  });
@@ -12365,22 +12657,22 @@ var PolicyDocumentsCommand = {
12365
12657
  command: "policy-documents <command>",
12366
12658
  aliases: ["policy", "policies"],
12367
12659
  describe: "Uniform Policy Documents commands",
12368
- builder: (yargs44) => yargs44.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12660
+ builder: (yargs45) => yargs45.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12369
12661
  handler: () => {
12370
- yargs35.showHelp();
12662
+ yargs36.showHelp();
12371
12663
  }
12372
12664
  };
12373
12665
 
12374
12666
  // src/commands/project-map/index.ts
12375
- import yargs38 from "yargs";
12667
+ import yargs39 from "yargs";
12376
12668
 
12377
12669
  // src/commands/project-map/commands/projectMapDefinition.ts
12378
- import yargs36 from "yargs";
12670
+ import yargs37 from "yargs";
12379
12671
 
12380
12672
  // src/commands/project-map/commands/ProjectMapDefinition/_util.ts
12381
12673
  import { ProjectMapClient } from "@uniformdev/project-map";
12382
- var selectIdentifier14 = (source) => source.id;
12383
- var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
12674
+ var selectIdentifier15 = (source) => source.id;
12675
+ var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
12384
12676
  function getProjectMapClient(options) {
12385
12677
  return new ProjectMapClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
12386
12678
  }
@@ -12389,11 +12681,11 @@ function getProjectMapClient(options) {
12389
12681
  var ProjectMapDefinitionGetModule = {
12390
12682
  command: "get <id>",
12391
12683
  describe: "Fetch a project map",
12392
- builder: (yargs44) => withFormatOptions(
12684
+ builder: (yargs45) => withFormatOptions(
12393
12685
  withConfiguration(
12394
12686
  withApiOptions(
12395
12687
  withProjectOptions(
12396
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12688
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12397
12689
  )
12398
12690
  )
12399
12691
  )
@@ -12416,7 +12708,7 @@ var ProjectMapDefinitionListModule = {
12416
12708
  command: "list",
12417
12709
  describe: "List of project maps",
12418
12710
  aliases: ["ls"],
12419
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12711
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12420
12712
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
12421
12713
  const fetch2 = nodeFetchProxy(proxy);
12422
12714
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -12444,9 +12736,9 @@ function createProjectMapDefinitionEngineDataSource({
12444
12736
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
12445
12737
  for await (const def of projectMaps) {
12446
12738
  const result = {
12447
- id: selectIdentifier14(def),
12448
- displayName: selectDisplayName14(def),
12449
- providerId: selectIdentifier14(def),
12739
+ id: selectIdentifier15(def),
12740
+ displayName: selectDisplayName15(def),
12741
+ providerId: selectIdentifier15(def),
12450
12742
  object: def
12451
12743
  };
12452
12744
  yield result;
@@ -12470,12 +12762,12 @@ function createProjectMapDefinitionEngineDataSource({
12470
12762
  var ProjectMapDefinitionPullModule = {
12471
12763
  command: "pull <directory>",
12472
12764
  describe: "Pulls all project maps to local files in a directory",
12473
- builder: (yargs44) => withConfiguration(
12765
+ builder: (yargs45) => withConfiguration(
12474
12766
  withDebugOptions(
12475
12767
  withApiOptions(
12476
12768
  withProjectOptions(
12477
12769
  withDiffOptions(
12478
- yargs44.positional("directory", {
12770
+ yargs45.positional("directory", {
12479
12771
  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.",
12480
12772
  type: "string"
12481
12773
  }).option("format", {
@@ -12519,8 +12811,8 @@ var ProjectMapDefinitionPullModule = {
12519
12811
  target = await createArraySyncEngineDataSource({
12520
12812
  name: `Package file ${directory}`,
12521
12813
  objects: packageContents.projectMaps ?? [],
12522
- selectIdentifier: selectIdentifier14,
12523
- selectDisplayName: selectDisplayName14,
12814
+ selectIdentifier: selectIdentifier15,
12815
+ selectDisplayName: selectDisplayName15,
12524
12816
  onSyncComplete: async (_, synced) => {
12525
12817
  packageContents.projectMaps = synced;
12526
12818
  writeContextPackage2(directory, packageContents);
@@ -12529,8 +12821,8 @@ var ProjectMapDefinitionPullModule = {
12529
12821
  } else {
12530
12822
  target = await createFileSyncEngineDataSource({
12531
12823
  directory,
12532
- selectIdentifier: selectIdentifier14,
12533
- selectDisplayName: selectDisplayName14,
12824
+ selectIdentifier: selectIdentifier15,
12825
+ selectDisplayName: selectDisplayName15,
12534
12826
  format,
12535
12827
  verbose
12536
12828
  });
@@ -12550,12 +12842,12 @@ var ProjectMapDefinitionPullModule = {
12550
12842
  var ProjectMapDefinitionPushModule = {
12551
12843
  command: "push <directory>",
12552
12844
  describe: "Pushes all project maps from files in a directory or package to Uniform",
12553
- builder: (yargs44) => withConfiguration(
12845
+ builder: (yargs45) => withConfiguration(
12554
12846
  withDebugOptions(
12555
12847
  withApiOptions(
12556
12848
  withProjectOptions(
12557
12849
  withDiffOptions(
12558
- yargs44.positional("directory", {
12850
+ yargs45.positional("directory", {
12559
12851
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12560
12852
  type: "string"
12561
12853
  }).option("mode", {
@@ -12591,14 +12883,14 @@ var ProjectMapDefinitionPushModule = {
12591
12883
  source = await createArraySyncEngineDataSource({
12592
12884
  name: `Package file ${directory}`,
12593
12885
  objects: packageContents.projectMaps ?? [],
12594
- selectIdentifier: selectIdentifier14,
12595
- selectDisplayName: selectDisplayName14
12886
+ selectIdentifier: selectIdentifier15,
12887
+ selectDisplayName: selectDisplayName15
12596
12888
  });
12597
12889
  } else {
12598
12890
  source = await createFileSyncEngineDataSource({
12599
12891
  directory,
12600
- selectIdentifier: selectIdentifier14,
12601
- selectDisplayName: selectDisplayName14,
12892
+ selectIdentifier: selectIdentifier15,
12893
+ selectDisplayName: selectDisplayName15,
12602
12894
  verbose
12603
12895
  });
12604
12896
  }
@@ -12619,9 +12911,9 @@ var ProjectMapDefinitionRemoveModule = {
12619
12911
  command: "remove <id>",
12620
12912
  aliases: ["delete", "rm"],
12621
12913
  describe: "Delete a project map",
12622
- builder: (yargs44) => withConfiguration(
12914
+ builder: (yargs45) => withConfiguration(
12623
12915
  withApiOptions(
12624
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
12916
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
12625
12917
  )
12626
12918
  ),
12627
12919
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -12636,10 +12928,10 @@ var ProjectMapDefinitionUpdateModule = {
12636
12928
  command: "update <filename>",
12637
12929
  aliases: ["put"],
12638
12930
  describe: "Insert or update a project map",
12639
- builder: (yargs44) => withConfiguration(
12931
+ builder: (yargs45) => withConfiguration(
12640
12932
  withApiOptions(
12641
12933
  withProjectOptions(
12642
- yargs44.positional("filename", { demandOption: true, describe: "Project map file to put" })
12934
+ yargs45.positional("filename", { demandOption: true, describe: "Project map file to put" })
12643
12935
  )
12644
12936
  )
12645
12937
  ),
@@ -12655,24 +12947,24 @@ var ProjectMapDefinitionUpdateModule = {
12655
12947
  var ProjectMapDefinitionModule = {
12656
12948
  command: "definition <command>",
12657
12949
  describe: "Commands for ProjectMap Definitions",
12658
- builder: (yargs44) => yargs44.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
12950
+ builder: (yargs45) => yargs45.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
12659
12951
  handler: () => {
12660
- yargs36.help();
12952
+ yargs37.help();
12661
12953
  }
12662
12954
  };
12663
12955
 
12664
12956
  // src/commands/project-map/commands/projectMapNode.ts
12665
- import yargs37 from "yargs";
12957
+ import yargs38 from "yargs";
12666
12958
 
12667
12959
  // src/commands/project-map/commands/ProjectMapNode/get.ts
12668
12960
  var ProjectMapNodeGetModule = {
12669
12961
  command: "get <id> <projectMapId>",
12670
12962
  describe: "Fetch a project map node",
12671
- builder: (yargs44) => withConfiguration(
12963
+ builder: (yargs45) => withConfiguration(
12672
12964
  withFormatOptions(
12673
12965
  withApiOptions(
12674
12966
  withProjectOptions(
12675
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
12967
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
12676
12968
  )
12677
12969
  )
12678
12970
  )
@@ -12680,7 +12972,6 @@ var ProjectMapNodeGetModule = {
12680
12972
  handler: async ({ apiHost, apiKey, proxy, id, projectMapId, format, project: projectId, filename }) => {
12681
12973
  const fetch2 = nodeFetchProxy(proxy);
12682
12974
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
12683
- console.log("Debugging params for node get", { projectMapId, id, projectId });
12684
12975
  const res = await client.getNodes({ projectMapId, id });
12685
12976
  if (res.nodes?.length === 0) {
12686
12977
  console.error("Project map node does not exist");
@@ -12696,12 +12987,12 @@ var ProjectMapNodeListModule = {
12696
12987
  command: "list <projectMapId>",
12697
12988
  describe: "List project map nodes",
12698
12989
  aliases: ["ls"],
12699
- builder: (yargs44) => withConfiguration(
12990
+ builder: (yargs45) => withConfiguration(
12700
12991
  withFormatOptions(
12701
12992
  withApiOptions(
12702
12993
  withProjectOptions(
12703
12994
  withStateOptions(
12704
- yargs44.positional("projectMapId", {
12995
+ yargs45.positional("projectMapId", {
12705
12996
  demandOption: true,
12706
12997
  describe: "ProjectMap UUID to fetch from"
12707
12998
  })
@@ -12719,12 +13010,12 @@ var ProjectMapNodeListModule = {
12719
13010
  };
12720
13011
 
12721
13012
  // src/commands/project-map/commands/ProjectMapNode/_util.ts
12722
- var selectIdentifier15 = (source, projectId) => [
13013
+ var selectIdentifier16 = (source, projectId) => [
12723
13014
  projectId + source.projectMapId + source.id,
12724
13015
  projectId + source.projectMapId + source.path
12725
13016
  ];
12726
13017
  var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
12727
- var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
13018
+ var selectDisplayName16 = (source) => `${source.name} (pid: ${source.id})`;
12728
13019
  function alignProjectMapNodeWithTargetIdentifier(sourceObject, targetObject) {
12729
13020
  if (!targetObject) {
12730
13021
  return sourceObject;
@@ -12752,9 +13043,9 @@ function createProjectMapNodeEngineDataSource({
12752
13043
  for await (const node of nodes ?? []) {
12753
13044
  if (node) {
12754
13045
  const result = {
12755
- id: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId),
12756
- displayName: selectDisplayName15(node),
12757
- providerId: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId)[0],
13046
+ id: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId),
13047
+ displayName: selectDisplayName16(node),
13048
+ providerId: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId)[0],
12758
13049
  object: { ...node, projectMapId: projectMap.id }
12759
13050
  };
12760
13051
  yield result;
@@ -12793,12 +13084,12 @@ function createProjectMapNodeEngineDataSource({
12793
13084
  var ProjectMapNodePullModule = {
12794
13085
  command: "pull <directory>",
12795
13086
  describe: "Pulls all project maps nodes to local files in a directory",
12796
- builder: (yargs44) => withConfiguration(
13087
+ builder: (yargs45) => withConfiguration(
12797
13088
  withDebugOptions(
12798
13089
  withApiOptions(
12799
13090
  withProjectOptions(
12800
13091
  withDiffOptions(
12801
- yargs44.positional("directory", {
13092
+ yargs45.positional("directory", {
12802
13093
  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.",
12803
13094
  type: "string"
12804
13095
  }).option("format", {
@@ -12838,7 +13129,7 @@ var ProjectMapNodePullModule = {
12838
13129
  let target;
12839
13130
  const isPackage = isPathAPackageFile(directory);
12840
13131
  const expandedSelectIdentifier = (object4) => {
12841
- return selectIdentifier15(object4, projectId);
13132
+ return selectIdentifier16(object4, projectId);
12842
13133
  };
12843
13134
  if (isPackage) {
12844
13135
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -12846,7 +13137,7 @@ var ProjectMapNodePullModule = {
12846
13137
  name: `Package file ${directory}`,
12847
13138
  objects: packageContents.projectMapNodes ?? [],
12848
13139
  selectIdentifier: expandedSelectIdentifier,
12849
- selectDisplayName: selectDisplayName15,
13140
+ selectDisplayName: selectDisplayName16,
12850
13141
  onSyncComplete: async (_, synced) => {
12851
13142
  packageContents.projectMapNodes = synced;
12852
13143
  writeContextPackage2(directory, packageContents);
@@ -12856,7 +13147,7 @@ var ProjectMapNodePullModule = {
12856
13147
  target = await createFileSyncEngineDataSource({
12857
13148
  directory,
12858
13149
  selectIdentifier: expandedSelectIdentifier,
12859
- selectDisplayName: selectDisplayName15,
13150
+ selectDisplayName: selectDisplayName16,
12860
13151
  format,
12861
13152
  selectFilename,
12862
13153
  verbose
@@ -12880,12 +13171,12 @@ import {
12880
13171
  var ProjectMapNodePushModule = {
12881
13172
  command: "push <directory>",
12882
13173
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
12883
- builder: (yargs44) => withConfiguration(
13174
+ builder: (yargs45) => withConfiguration(
12884
13175
  withDebugOptions(
12885
13176
  withApiOptions(
12886
13177
  withProjectOptions(
12887
13178
  withDiffOptions(
12888
- yargs44.positional("directory", {
13179
+ yargs45.positional("directory", {
12889
13180
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12890
13181
  type: "string"
12891
13182
  }).option("mode", {
@@ -12922,7 +13213,7 @@ var ProjectMapNodePushModule = {
12922
13213
  let source;
12923
13214
  const isPackage = isPathAPackageFile(directory);
12924
13215
  const expandedSelectIdentifier = (object4) => {
12925
- return selectIdentifier15(object4, projectId);
13216
+ return selectIdentifier16(object4, projectId);
12926
13217
  };
12927
13218
  if (isPackage) {
12928
13219
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -12932,13 +13223,13 @@ var ProjectMapNodePushModule = {
12932
13223
  return a.path.length - b.path.length;
12933
13224
  }) ?? [],
12934
13225
  selectIdentifier: expandedSelectIdentifier,
12935
- selectDisplayName: selectDisplayName15
13226
+ selectDisplayName: selectDisplayName16
12936
13227
  });
12937
13228
  } else {
12938
13229
  source = await createFileSyncEngineDataSource({
12939
13230
  directory,
12940
13231
  selectIdentifier: expandedSelectIdentifier,
12941
- selectDisplayName: selectDisplayName15,
13232
+ selectDisplayName: selectDisplayName16,
12942
13233
  selectFilename,
12943
13234
  verbose
12944
13235
  });
@@ -12976,7 +13267,7 @@ var ProjectMapNodePushModule = {
12976
13267
  name: `Nodes re-push from ${directory}`,
12977
13268
  objects: Array.from(nodesFailedDueToMissingParent),
12978
13269
  selectIdentifier: expandedSelectIdentifier,
12979
- selectDisplayName: selectDisplayName15
13270
+ selectDisplayName: selectDisplayName16
12980
13271
  });
12981
13272
  await attemptSync();
12982
13273
  } else {
@@ -12993,10 +13284,10 @@ var ProjectMapNodeRemoveModule = {
12993
13284
  command: "remove <id> <projectMapId>",
12994
13285
  aliases: ["delete", "rm"],
12995
13286
  describe: "Delete a project map node",
12996
- builder: (yargs44) => withConfiguration(
13287
+ builder: (yargs45) => withConfiguration(
12997
13288
  withApiOptions(
12998
13289
  withProjectOptions(
12999
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13290
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13000
13291
  )
13001
13292
  )
13002
13293
  ),
@@ -13012,10 +13303,10 @@ var ProjectMapNodeUpdateModule = {
13012
13303
  command: "update <filename> <projectMapId>",
13013
13304
  aliases: ["put"],
13014
13305
  describe: "Insert or update a project map node",
13015
- builder: (yargs44) => withConfiguration(
13306
+ builder: (yargs45) => withConfiguration(
13016
13307
  withApiOptions(
13017
13308
  withProjectOptions(
13018
- yargs44.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13309
+ yargs45.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13019
13310
  )
13020
13311
  )
13021
13312
  ),
@@ -13031,9 +13322,9 @@ var ProjectMapNodeUpdateModule = {
13031
13322
  var ProjectMapNodeModule = {
13032
13323
  command: "node <command>",
13033
13324
  describe: "Commands for ProjectMap Nodes",
13034
- builder: (yargs44) => yargs44.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13325
+ builder: (yargs45) => yargs45.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13035
13326
  handler: () => {
13036
- yargs37.help();
13327
+ yargs38.help();
13037
13328
  }
13038
13329
  };
13039
13330
 
@@ -13042,26 +13333,26 @@ var ProjectMapCommand = {
13042
13333
  command: "project-map <command>",
13043
13334
  aliases: ["prm"],
13044
13335
  describe: "Uniform ProjectMap commands",
13045
- builder: (yargs44) => yargs44.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13336
+ builder: (yargs45) => yargs45.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13046
13337
  handler: () => {
13047
- yargs38.showHelp();
13338
+ yargs39.showHelp();
13048
13339
  }
13049
13340
  };
13050
13341
 
13051
13342
  // src/commands/redirect/index.ts
13052
- import yargs40 from "yargs";
13343
+ import yargs41 from "yargs";
13053
13344
 
13054
13345
  // src/commands/redirect/commands/redirect.ts
13055
- import yargs39 from "yargs";
13346
+ import yargs40 from "yargs";
13056
13347
 
13057
13348
  // src/commands/redirect/commands/RedirectDefinition/_util.ts
13058
13349
  import { RedirectClient } from "@uniformdev/redirect";
13059
- var selectIdentifier16 = (source) => source.id;
13350
+ var selectIdentifier17 = (source) => source.id;
13060
13351
  var selectFilename2 = (source) => {
13061
13352
  const index = source.sourceUrl.lastIndexOf("/");
13062
13353
  return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
13063
13354
  };
13064
- var selectDisplayName16 = (source) => {
13355
+ var selectDisplayName17 = (source) => {
13065
13356
  let pathName = source.sourceUrl;
13066
13357
  if (pathName.length > 30) {
13067
13358
  const slashIndex = source.sourceUrl.indexOf("/", source.sourceUrl.length - 30);
@@ -13077,11 +13368,11 @@ function getRedirectClient(options) {
13077
13368
  var RedirectDefinitionGetModule = {
13078
13369
  command: "get <id>",
13079
13370
  describe: "Fetch a redirect",
13080
- builder: (yargs44) => withConfiguration(
13371
+ builder: (yargs45) => withConfiguration(
13081
13372
  withFormatOptions(
13082
13373
  withApiOptions(
13083
13374
  withProjectOptions(
13084
- yargs44.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13375
+ yargs45.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13085
13376
  )
13086
13377
  )
13087
13378
  )
@@ -13104,7 +13395,7 @@ var RedirectDefinitionListModule = {
13104
13395
  command: "list",
13105
13396
  describe: "List of redirects",
13106
13397
  aliases: ["ls"],
13107
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
13398
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
13108
13399
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
13109
13400
  const fetch2 = nodeFetchProxy(proxy);
13110
13401
  const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -13132,9 +13423,9 @@ function createRedirectDefinitionEngineDataSource({
13132
13423
  const redirects = client.getAllRedirects();
13133
13424
  for await (const redirect of redirects) {
13134
13425
  const result = {
13135
- id: selectIdentifier16(redirect.redirect),
13136
- displayName: selectDisplayName16(redirect.redirect),
13137
- providerId: selectIdentifier16(redirect.redirect),
13426
+ id: selectIdentifier17(redirect.redirect),
13427
+ displayName: selectDisplayName17(redirect.redirect),
13428
+ providerId: selectIdentifier17(redirect.redirect),
13138
13429
  object: redirect.redirect
13139
13430
  };
13140
13431
  yield result;
@@ -13156,12 +13447,12 @@ function createRedirectDefinitionEngineDataSource({
13156
13447
  var RedirectDefinitionPullModule = {
13157
13448
  command: "pull <directory>",
13158
13449
  describe: "Pulls all redirects to local files in a directory",
13159
- builder: (yargs44) => withConfiguration(
13450
+ builder: (yargs45) => withConfiguration(
13160
13451
  withDebugOptions(
13161
13452
  withApiOptions(
13162
13453
  withProjectOptions(
13163
13454
  withDiffOptions(
13164
- yargs44.positional("directory", {
13455
+ yargs45.positional("directory", {
13165
13456
  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.",
13166
13457
  type: "string"
13167
13458
  }).option("format", {
@@ -13205,8 +13496,8 @@ var RedirectDefinitionPullModule = {
13205
13496
  target = await createArraySyncEngineDataSource({
13206
13497
  name: `Package file ${directory}`,
13207
13498
  objects: packageContents.redirects ?? [],
13208
- selectIdentifier: selectIdentifier16,
13209
- selectDisplayName: selectDisplayName16,
13499
+ selectIdentifier: selectIdentifier17,
13500
+ selectDisplayName: selectDisplayName17,
13210
13501
  onSyncComplete: async (_, synced) => {
13211
13502
  packageContents.redirects = synced;
13212
13503
  writeContextPackage3(directory, packageContents);
@@ -13216,8 +13507,8 @@ var RedirectDefinitionPullModule = {
13216
13507
  target = await createFileSyncEngineDataSource({
13217
13508
  directory,
13218
13509
  selectFilename: selectFilename2,
13219
- selectIdentifier: selectIdentifier16,
13220
- selectDisplayName: selectDisplayName16,
13510
+ selectIdentifier: selectIdentifier17,
13511
+ selectDisplayName: selectDisplayName17,
13221
13512
  format,
13222
13513
  verbose
13223
13514
  });
@@ -13237,12 +13528,12 @@ var RedirectDefinitionPullModule = {
13237
13528
  var RedirectDefinitionPushModule = {
13238
13529
  command: "push <directory>",
13239
13530
  describe: "Pushes all redirects from files in a directory or package to Uniform",
13240
- builder: (yargs44) => withConfiguration(
13531
+ builder: (yargs45) => withConfiguration(
13241
13532
  withDebugOptions(
13242
13533
  withApiOptions(
13243
13534
  withProjectOptions(
13244
13535
  withDiffOptions(
13245
- yargs44.positional("directory", {
13536
+ yargs45.positional("directory", {
13246
13537
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
13247
13538
  type: "string"
13248
13539
  }).option("mode", {
@@ -13278,14 +13569,14 @@ var RedirectDefinitionPushModule = {
13278
13569
  source = await createArraySyncEngineDataSource({
13279
13570
  name: `Package file ${directory}`,
13280
13571
  objects: packageContents.redirects ?? [],
13281
- selectIdentifier: selectIdentifier16,
13282
- selectDisplayName: selectDisplayName16
13572
+ selectIdentifier: selectIdentifier17,
13573
+ selectDisplayName: selectDisplayName17
13283
13574
  });
13284
13575
  } else {
13285
13576
  source = await createFileSyncEngineDataSource({
13286
13577
  directory,
13287
- selectIdentifier: selectIdentifier16,
13288
- selectDisplayName: selectDisplayName16,
13578
+ selectIdentifier: selectIdentifier17,
13579
+ selectDisplayName: selectDisplayName17,
13289
13580
  verbose
13290
13581
  });
13291
13582
  }
@@ -13306,9 +13597,9 @@ var RedirectDefinitionRemoveModule = {
13306
13597
  command: "remove <id>",
13307
13598
  aliases: ["delete", "rm"],
13308
13599
  describe: "Delete a redirect",
13309
- builder: (yargs44) => withConfiguration(
13600
+ builder: (yargs45) => withConfiguration(
13310
13601
  withApiOptions(
13311
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
13602
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
13312
13603
  )
13313
13604
  ),
13314
13605
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -13323,10 +13614,10 @@ var RedirectDefinitionUpdateModule = {
13323
13614
  command: "update <filename>",
13324
13615
  aliases: ["put"],
13325
13616
  describe: "Insert or update a redirect",
13326
- builder: (yargs44) => withConfiguration(
13617
+ builder: (yargs45) => withConfiguration(
13327
13618
  withApiOptions(
13328
13619
  withProjectOptions(
13329
- yargs44.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13620
+ yargs45.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13330
13621
  )
13331
13622
  )
13332
13623
  ),
@@ -13342,9 +13633,9 @@ var RedirectDefinitionUpdateModule = {
13342
13633
  var RedirectDefinitionModule = {
13343
13634
  command: "definition <command>",
13344
13635
  describe: "Commands for Redirect Definitions",
13345
- builder: (yargs44) => yargs44.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13636
+ builder: (yargs45) => yargs45.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13346
13637
  handler: () => {
13347
- yargs39.help();
13638
+ yargs40.help();
13348
13639
  }
13349
13640
  };
13350
13641
 
@@ -13353,22 +13644,22 @@ var RedirectCommand = {
13353
13644
  command: "redirect <command>",
13354
13645
  aliases: ["red"],
13355
13646
  describe: "Uniform Redirect commands",
13356
- builder: (yargs44) => yargs44.command(RedirectDefinitionModule).demandCommand(),
13647
+ builder: (yargs45) => yargs45.command(RedirectDefinitionModule).demandCommand(),
13357
13648
  handler: () => {
13358
- yargs40.showHelp();
13649
+ yargs41.showHelp();
13359
13650
  }
13360
13651
  };
13361
13652
 
13362
13653
  // src/commands/sync/index.ts
13363
- import yargs41 from "yargs";
13654
+ import yargs42 from "yargs";
13364
13655
 
13365
13656
  // src/webhooksClient.ts
13366
- import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
13657
+ import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
13367
13658
  import PQueue4 from "p-queue";
13368
13659
  import { Svix } from "svix";
13369
13660
  import * as z4 from "zod";
13370
13661
  var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
13371
- var WebhooksClient = class extends ApiClient4 {
13662
+ var WebhooksClient = class extends ApiClient5 {
13372
13663
  constructor(options) {
13373
13664
  super(options);
13374
13665
  }
@@ -13494,8 +13785,8 @@ var WebhooksClient = class extends ApiClient4 {
13494
13785
  };
13495
13786
 
13496
13787
  // src/commands/webhook/commands/_util.ts
13497
- var selectIdentifier17 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13498
- var selectDisplayName17 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13788
+ var selectIdentifier18 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13789
+ var selectDisplayName18 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13499
13790
  var getWebhooksClient = (options) => new WebhooksClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
13500
13791
  var compareWebhooks = (source, target) => {
13501
13792
  const { endpoint: sourceEndpoint, ...sourceWithoutEndpoint } = source.object;
@@ -13530,8 +13821,8 @@ function createWebhookEngineDataSource({
13530
13821
  const webhooks = await client.get();
13531
13822
  for await (const webhook of webhooks) {
13532
13823
  const result = {
13533
- id: selectIdentifier17(webhook),
13534
- displayName: selectDisplayName17(webhook),
13824
+ id: selectIdentifier18(webhook),
13825
+ displayName: selectDisplayName18(webhook),
13535
13826
  providerId: webhook.endpoint.id,
13536
13827
  object: webhook
13537
13828
  };
@@ -13554,12 +13845,12 @@ function createWebhookEngineDataSource({
13554
13845
  var WebhookPullModule = {
13555
13846
  command: "pull <directory>",
13556
13847
  describe: "Pulls all webhooks to local files in a directory",
13557
- builder: (yargs44) => withConfiguration(
13848
+ builder: (yargs45) => withConfiguration(
13558
13849
  withApiOptions(
13559
13850
  withDebugOptions(
13560
13851
  withProjectOptions(
13561
13852
  withDiffOptions(
13562
- yargs44.positional("directory", {
13853
+ yargs45.positional("directory", {
13563
13854
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
13564
13855
  type: "string"
13565
13856
  }).option("format", {
@@ -13603,8 +13894,8 @@ var WebhookPullModule = {
13603
13894
  target = await createArraySyncEngineDataSource({
13604
13895
  name: `Package file ${directory}`,
13605
13896
  objects: packageContents.webhooks ?? [],
13606
- selectIdentifier: selectIdentifier17,
13607
- selectDisplayName: selectDisplayName17,
13897
+ selectIdentifier: selectIdentifier18,
13898
+ selectDisplayName: selectDisplayName18,
13608
13899
  onSyncComplete: async (_, synced) => {
13609
13900
  packageContents.webhooks = synced;
13610
13901
  writeCanvasPackage(directory, packageContents);
@@ -13613,8 +13904,8 @@ var WebhookPullModule = {
13613
13904
  } else {
13614
13905
  target = await createFileSyncEngineDataSource({
13615
13906
  directory,
13616
- selectIdentifier: selectIdentifier17,
13617
- selectDisplayName: selectDisplayName17,
13907
+ selectIdentifier: selectIdentifier18,
13908
+ selectDisplayName: selectDisplayName18,
13618
13909
  format,
13619
13910
  verbose
13620
13911
  });
@@ -13745,7 +14036,7 @@ function numPad(num, spaces = 6) {
13745
14036
  var SyncPullModule = {
13746
14037
  command: "pull",
13747
14038
  describe: "Pulls whole project to local files in a directory",
13748
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs44))))),
14039
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs45))))),
13749
14040
  handler: async ({ serialization, ...otherParams }) => {
13750
14041
  const config2 = serialization;
13751
14042
  const enabledEntities = Object.entries({
@@ -13771,6 +14062,7 @@ var SyncPullModule = {
13771
14062
  entry: EntryPullModule,
13772
14063
  entryPattern: EntryPatternPullModule,
13773
14064
  contentType: ContentTypePullModule,
14065
+ customView: CustomViewPullModule,
13774
14066
  previewUrl: PreviewUrlPullModule,
13775
14067
  previewViewport: PreviewViewportPullModule,
13776
14068
  policyDocument: PolicyDocumentsPullModule,
@@ -13846,12 +14138,12 @@ var getFormat = (entityType, config2) => {
13846
14138
  var WebhookPushModule = {
13847
14139
  command: "push <directory>",
13848
14140
  describe: "Pushes all webhooks from files in a directory to Uniform",
13849
- builder: (yargs44) => withConfiguration(
14141
+ builder: (yargs45) => withConfiguration(
13850
14142
  withDebugOptions(
13851
14143
  withApiOptions(
13852
14144
  withProjectOptions(
13853
14145
  withDiffOptions(
13854
- yargs44.positional("directory", {
14146
+ yargs45.positional("directory", {
13855
14147
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
13856
14148
  type: "string"
13857
14149
  }).option("mode", {
@@ -13887,14 +14179,14 @@ var WebhookPushModule = {
13887
14179
  source = await createArraySyncEngineDataSource({
13888
14180
  name: `Package file ${directory}`,
13889
14181
  objects: packageContents.webhooks ?? [],
13890
- selectIdentifier: selectIdentifier17,
13891
- selectDisplayName: selectDisplayName17
14182
+ selectIdentifier: selectIdentifier18,
14183
+ selectDisplayName: selectDisplayName18
13892
14184
  });
13893
14185
  } else {
13894
14186
  source = await createFileSyncEngineDataSource({
13895
14187
  directory,
13896
- selectIdentifier: selectIdentifier17,
13897
- selectDisplayName: selectDisplayName17,
14188
+ selectIdentifier: selectIdentifier18,
14189
+ selectDisplayName: selectDisplayName18,
13898
14190
  verbose
13899
14191
  });
13900
14192
  }
@@ -13915,7 +14207,7 @@ var WebhookPushModule = {
13915
14207
  var SyncPushModule = {
13916
14208
  command: "push",
13917
14209
  describe: "Pushes whole project data from files in a directory or package to Uniform",
13918
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs44))))),
14210
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs45))))),
13919
14211
  handler: async ({ serialization, ...otherParams }) => {
13920
14212
  const config2 = serialization;
13921
14213
  const enabledEntities = Object.entries({
@@ -13939,6 +14231,7 @@ var SyncPushModule = {
13939
14231
  projectMapNode: ProjectMapNodePushModule,
13940
14232
  redirect: RedirectDefinitionPushModule,
13941
14233
  contentType: ContentTypePushModule,
14234
+ customView: CustomViewPushModule,
13942
14235
  entry: EntryPushModule,
13943
14236
  entryPattern: EntryPatternPushModule,
13944
14237
  previewUrl: PreviewUrlPushModule,
@@ -14137,21 +14430,21 @@ var getFormat2 = (entityType, config2) => {
14137
14430
  var SyncCommand = {
14138
14431
  command: "sync <command>",
14139
14432
  describe: "Uniform Sync commands",
14140
- builder: (yargs44) => yargs44.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14433
+ builder: (yargs45) => yargs45.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14141
14434
  handler: () => {
14142
- yargs41.showHelp();
14435
+ yargs42.showHelp();
14143
14436
  }
14144
14437
  };
14145
14438
 
14146
14439
  // src/commands/webhook/index.ts
14147
- import yargs42 from "yargs";
14440
+ import yargs43 from "yargs";
14148
14441
  var WebhookCommand = {
14149
14442
  command: "webhook <command>",
14150
14443
  aliases: ["wh"],
14151
14444
  describe: "Commands for webhooks",
14152
- builder: (yargs44) => yargs44.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14445
+ builder: (yargs45) => yargs45.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14153
14446
  handler: () => {
14154
- yargs42.help();
14447
+ yargs43.help();
14155
14448
  }
14156
14449
  };
14157
14450
 
@@ -14160,8 +14453,8 @@ import { ProjectClient as ProjectClient2 } from "@uniformdev/canvas";
14160
14453
  var WhoamiCommand = {
14161
14454
  command: "whoami",
14162
14455
  describe: "Prints configured identity and connection context.",
14163
- builder: (yargs44) => withConfiguration(
14164
- withFormatOptions(withApiOptions(yargs44, { includeEdgeApiHost: true })).option("project", {
14456
+ builder: (yargs45) => withConfiguration(
14457
+ withFormatOptions(withApiOptions(yargs45, { includeEdgeApiHost: true })).option("project", {
14165
14458
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
14166
14459
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? process.env.UNIFORM_PROJECT_ID,
14167
14460
  type: "string",
@@ -14428,7 +14721,7 @@ First found was: v${firstVersion}`;
14428
14721
 
14429
14722
  // src/index.ts
14430
14723
  dotenv.config({ quiet: true });
14431
- var yarggery = yargs43(hideBin(process.argv));
14724
+ var yarggery = yargs44(hideBin(process.argv));
14432
14725
  var useDefaultConfig = !process.argv.includes("--config");
14433
14726
  var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
14434
14727
  yarggery.option("verbose", {