@uniformdev/cli 20.80.1-alpha.3.sha-c8bbceae2b → 20.80.1-alpha.3.sha-1a5ce5809e

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
@@ -25,11 +25,11 @@ import {
25
25
  withFormatOptions,
26
26
  withProjectOptions,
27
27
  withTeamOptions
28
- } from "./chunk-44ABZCCG.mjs";
28
+ } from "./chunk-ICATM6IY.mjs";
29
29
 
30
30
  // src/index.ts
31
31
  import * as dotenv from "dotenv";
32
- import yargs43 from "yargs";
32
+ import yargs44 from "yargs";
33
33
  import { hideBin } from "yargs/helpers";
34
34
 
35
35
  // src/commands/ai/index.ts
@@ -521,20 +521,20 @@ var makeSpinner = () => {
521
521
  async function createArraySyncEngineDataSource({
522
522
  name,
523
523
  objects,
524
- selectIdentifier: selectIdentifier18,
525
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
524
+ selectIdentifier: selectIdentifier19,
525
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
526
526
  onSyncComplete,
527
527
  onBeforeDeleteObject
528
528
  }) {
529
529
  const objectIndex = objects.reduce(
530
530
  (result, current) => {
531
- const rawIdentifiers = selectIdentifier18(current);
531
+ const rawIdentifiers = selectIdentifier19(current);
532
532
  const identifiers = Array.isArray(rawIdentifiers) ? rawIdentifiers : [rawIdentifiers];
533
533
  const existingResult = identifiers.find((id) => result[id]);
534
534
  if (existingResult) {
535
535
  throw new Error(`Identifier(s) ${identifiers} was not unique.`);
536
536
  }
537
- const displayName = selectDisplayName18(current);
537
+ const displayName = selectDisplayName19(current);
538
538
  result[identifiers[0]] = {
539
539
  id: identifiers,
540
540
  object: current,
@@ -564,7 +564,7 @@ async function createArraySyncEngineDataSource({
564
564
  delete objectIndex[providerId];
565
565
  },
566
566
  writeObject: async (objectToWrite) => {
567
- const id = selectIdentifier18(objectToWrite.object);
567
+ const id = selectIdentifier19(objectToWrite.object);
568
568
  if (Array.isArray(id)) {
569
569
  objectIndex[id[0]] = objectToWrite;
570
570
  } else {
@@ -647,8 +647,8 @@ function isErrorWithCode(error, code) {
647
647
  async function createFileSyncEngineDataSource({
648
648
  directory,
649
649
  format = "yaml",
650
- selectIdentifier: selectIdentifier18,
651
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
650
+ selectIdentifier: selectIdentifier19,
651
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
652
652
  selectFilename: selectFilename3,
653
653
  selectSchemaUrl: selectSchemaUrl2,
654
654
  onBeforeDeleteObject,
@@ -677,9 +677,9 @@ async function createFileSyncEngineDataSource({
677
677
  const fullFilename = join(directory, filename);
678
678
  try {
679
679
  const contents = readFileToObject(fullFilename);
680
- const displayName = selectDisplayName18(contents);
680
+ const displayName = selectDisplayName19(contents);
681
681
  const object4 = {
682
- id: selectIdentifier18(contents),
682
+ id: selectIdentifier19(contents),
683
683
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
684
684
  providerId: fullFilename,
685
685
  object: omit(contents, ["$schema"])
@@ -1241,13 +1241,13 @@ async function fetchUserAndEnsureFirstTeamExists({
1241
1241
  }
1242
1242
 
1243
1243
  // src/telemetry/telemetry.ts
1244
- import crypto from "crypto";
1244
+ import crypto2 from "crypto";
1245
1245
  import { PostHog } from "posthog-node";
1246
1246
  var POSTHOG_WRITE_ONLY_KEY = "phc_c8YoKI9984KOHBfNrCRfIKvL56aYd5OpYxOdYexRzH7";
1247
1247
  var Telemetry = class {
1248
1248
  constructor(prefix, disable = false) {
1249
1249
  this.prefix = prefix;
1250
- this.distinctId = crypto.randomBytes(20).toString("hex");
1250
+ this.distinctId = crypto2.randomBytes(20).toString("hex");
1251
1251
  if (!disable) {
1252
1252
  this.posthog = new PostHog(POSTHOG_WRITE_ONLY_KEY, {
1253
1253
  flushAt: 1,
@@ -1438,8 +1438,8 @@ function getExistingServers(config2) {
1438
1438
  var InstallMcpCommand = {
1439
1439
  command: "install",
1440
1440
  describe: "Install Uniform MCP server configuration (use --team, --project, and --apiKey for non-interactive mode)",
1441
- builder: (yargs44) => withConfiguration(
1442
- yargs44.option("agent", {
1441
+ builder: (yargs45) => withConfiguration(
1442
+ yargs45.option("agent", {
1443
1443
  alias: "a",
1444
1444
  describe: "Specify agent type (cursor, claude, copilot, other)",
1445
1445
  type: "string",
@@ -1639,7 +1639,7 @@ Selected agent: ${agentType}`));
1639
1639
  var McpCommand = {
1640
1640
  command: "mcp <command>",
1641
1641
  describe: "Uniform MCP server management commands",
1642
- builder: (yargs44) => yargs44.command(InstallMcpCommand).demandCommand(),
1642
+ builder: (yargs45) => yargs45.command(InstallMcpCommand).demandCommand(),
1643
1643
  handler: () => {
1644
1644
  yargs.showHelp();
1645
1645
  }
@@ -2114,8 +2114,8 @@ ${gray2("Rules source:")} https://github.com/uniformdev/ai-rules`);
2114
2114
  var InstallRulesCommand = {
2115
2115
  command: "install",
2116
2116
  describe: "Install Uniform AI rules for your development assistant",
2117
- builder: (yargs44) => withConfiguration(
2118
- yargs44.option("agent", {
2117
+ builder: (yargs45) => withConfiguration(
2118
+ yargs45.option("agent", {
2119
2119
  alias: "a",
2120
2120
  describe: "Specify agent type (cursor, claude, copilot, other)",
2121
2121
  type: "string",
@@ -2153,7 +2153,7 @@ import { blue as blue4, bold as bold2, gray as gray3, green as green5, red as re
2153
2153
  var ListRulesCommand = {
2154
2154
  command: "list",
2155
2155
  describe: "List available Uniform AI rules",
2156
- builder: (yargs44) => withConfiguration(yargs44),
2156
+ builder: (yargs45) => withConfiguration(yargs45),
2157
2157
  handler: async function() {
2158
2158
  const { stopAllSpinners, spin } = makeSpinner();
2159
2159
  try {
@@ -2182,7 +2182,7 @@ var ListRulesCommand = {
2182
2182
  var RulesCommand = {
2183
2183
  command: "rules <command>",
2184
2184
  describe: "Uniform AI rules management commands",
2185
- builder: (yargs44) => yargs44.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2185
+ builder: (yargs45) => yargs45.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2186
2186
  handler: () => {
2187
2187
  yargs2.showHelp();
2188
2188
  }
@@ -2192,7 +2192,7 @@ var RulesCommand = {
2192
2192
  var AiCommand = {
2193
2193
  command: "ai <command>",
2194
2194
  describe: "Uniform AI development assistant commands",
2195
- builder: (yargs44) => yargs44.command(RulesCommand).command(McpCommand).demandCommand(),
2195
+ builder: (yargs45) => yargs45.command(RulesCommand).command(McpCommand).demandCommand(),
2196
2196
  handler: () => {
2197
2197
  yargs3.showHelp();
2198
2198
  }
@@ -2277,10 +2277,10 @@ function resolveDeleteTargets(identifiers) {
2277
2277
  var AutomationDeleteModule = {
2278
2278
  command: "delete <identifiers..>",
2279
2279
  describe: "Deletes one or more automations from a project.",
2280
- builder: (yargs44) => withConfiguration(
2280
+ builder: (yargs45) => withConfiguration(
2281
2281
  withApiOptions(
2282
2282
  withProjectOptions(
2283
- yargs44.positional("identifiers", {
2283
+ yargs45.positional("identifiers", {
2284
2284
  array: true,
2285
2285
  type: "string",
2286
2286
  demandOption: true,
@@ -2504,10 +2504,10 @@ function assertUniquePublicIds(files) {
2504
2504
  var AutomationDeployModule = {
2505
2505
  command: "deploy <paths..>",
2506
2506
  describe: "Deploys one or more automations to a project.",
2507
- builder: (yargs44) => withConfiguration(
2507
+ builder: (yargs45) => withConfiguration(
2508
2508
  withApiOptions(
2509
2509
  withProjectOptions(
2510
- yargs44.positional("paths", {
2510
+ yargs45.positional("paths", {
2511
2511
  array: true,
2512
2512
  type: "string",
2513
2513
  demandOption: true,
@@ -2575,7 +2575,7 @@ var AutomationListModule = {
2575
2575
  command: "list",
2576
2576
  aliases: ["ls"],
2577
2577
  describe: "Lists the automations in a project.",
2578
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
2578
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
2579
2579
  handler: async ({ apiHost, apiKey, proxy, project: projectId }) => {
2580
2580
  const fetch2 = nodeFetchProxy(proxy);
2581
2581
  const client = new AutomationsClient3({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2606,14 +2606,14 @@ var AutomationCommand = {
2606
2606
  command: "automation <command>",
2607
2607
  aliases: ["automations"],
2608
2608
  describe: "Commands for managing Uniform Automations",
2609
- builder: (yargs44) => yargs44.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2609
+ builder: (yargs45) => yargs45.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2610
2610
  handler: () => {
2611
2611
  yargs4.showHelp();
2612
2612
  }
2613
2613
  };
2614
2614
 
2615
2615
  // src/commands/canvas/index.ts
2616
- import yargs22 from "yargs";
2616
+ import yargs23 from "yargs";
2617
2617
 
2618
2618
  // src/commands/canvas/commands/asset.ts
2619
2619
  import yargs5 from "yargs";
@@ -2634,12 +2634,12 @@ function getFileClient(options) {
2634
2634
  var AssetGetModule = {
2635
2635
  command: "get <id>",
2636
2636
  describe: "Get an asset",
2637
- builder: (yargs44) => withConfiguration(
2637
+ builder: (yargs45) => withConfiguration(
2638
2638
  withDebugOptions(
2639
2639
  withFormatOptions(
2640
2640
  withApiOptions(
2641
2641
  withProjectOptions(
2642
- yargs44.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2642
+ yargs45.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2643
2643
  )
2644
2644
  )
2645
2645
  )
@@ -2660,7 +2660,7 @@ var AssetGetModule = {
2660
2660
  var AssetListModule = {
2661
2661
  command: "list",
2662
2662
  describe: "List assets",
2663
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
2663
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
2664
2664
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
2665
2665
  const fetch2 = nodeFetchProxy(proxy, verbose);
2666
2666
  const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2879,6 +2879,18 @@ import PQueue2 from "p-queue";
2879
2879
  import { join as join11 } from "path";
2880
2880
  var uploadQueueByKey = /* @__PURE__ */ new Map();
2881
2881
  var fileUploadQueue = new PQueue2({ concurrency: 10 });
2882
+ var IMAGE_SIZE_SAFE_MEDIA_TYPES = /* @__PURE__ */ new Set([
2883
+ "image/png",
2884
+ "image/apng",
2885
+ "image/jpeg",
2886
+ "image/jpg",
2887
+ "image/jfif",
2888
+ "image/pjpeg",
2889
+ "image/pjp",
2890
+ "image/gif",
2891
+ "image/webp",
2892
+ "image/svg+xml"
2893
+ ]);
2882
2894
  var uploadFile = async ({
2883
2895
  fileClient,
2884
2896
  fileUrl,
@@ -2943,7 +2955,7 @@ var uploadFile = async ({
2943
2955
  uploadBody = createReadStream(expectedFilePath);
2944
2956
  }
2945
2957
  const { width, height } = await (async () => {
2946
- if (!mimeType.startsWith("image/")) {
2958
+ if (!IMAGE_SIZE_SAFE_MEDIA_TYPES.has(mimeType)) {
2947
2959
  return {
2948
2960
  width: void 0,
2949
2961
  height: void 0
@@ -3325,8 +3337,8 @@ function prepCompositionForDisk(composition) {
3325
3337
  delete prepped.state;
3326
3338
  return prepped;
3327
3339
  }
3328
- function withStateOptions(yargs44, defaultState = "preview") {
3329
- return yargs44.option("state", {
3340
+ function withStateOptions(yargs45, defaultState = "preview") {
3341
+ return yargs45.option("state", {
3330
3342
  type: "string",
3331
3343
  describe: `State to fetch.`,
3332
3344
  choices: ["preview", "published"],
@@ -3424,13 +3436,13 @@ var prepareAssetForPull = async ({
3424
3436
  var AssetPullModule = {
3425
3437
  command: "pull <directory>",
3426
3438
  describe: "Pulls all assets to local files in a directory",
3427
- builder: (yargs44) => withConfiguration(
3439
+ builder: (yargs45) => withConfiguration(
3428
3440
  withApiOptions(
3429
3441
  withDebugOptions(
3430
3442
  withProjectOptions(
3431
3443
  withDiffOptions(
3432
3444
  withBatchSizeOptions(
3433
- yargs44.positional("directory", {
3445
+ yargs45.positional("directory", {
3434
3446
  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.",
3435
3447
  type: "string"
3436
3448
  }).option("format", {
@@ -3594,13 +3606,13 @@ var prepareAssetForPush = async ({
3594
3606
  var AssetPushModule = {
3595
3607
  command: "push <directory>",
3596
3608
  describe: "Pushes all assets from files in a directory to Uniform",
3597
- builder: (yargs44) => withConfiguration(
3609
+ builder: (yargs45) => withConfiguration(
3598
3610
  withApiOptions(
3599
3611
  withDebugOptions(
3600
3612
  withProjectOptions(
3601
3613
  withDiffOptions(
3602
3614
  withBatchSizeOptions(
3603
- yargs44.positional("directory", {
3615
+ yargs45.positional("directory", {
3604
3616
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
3605
3617
  type: "string"
3606
3618
  }).option("mode", {
@@ -3717,10 +3729,10 @@ var AssetRemoveModule = {
3717
3729
  command: "remove <id>",
3718
3730
  aliases: ["delete", "rm"],
3719
3731
  describe: "Delete an asset",
3720
- builder: (yargs44) => withConfiguration(
3732
+ builder: (yargs45) => withConfiguration(
3721
3733
  withDebugOptions(
3722
3734
  withApiOptions(
3723
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3735
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3724
3736
  )
3725
3737
  )
3726
3738
  ),
@@ -3741,11 +3753,11 @@ var AssetUpdateModule = {
3741
3753
  command: "update <filename>",
3742
3754
  aliases: ["put"],
3743
3755
  describe: "Insert or update an asset",
3744
- builder: (yargs44) => withConfiguration(
3756
+ builder: (yargs45) => withConfiguration(
3745
3757
  withDebugOptions(
3746
3758
  withApiOptions(
3747
3759
  withProjectOptions(
3748
- yargs44.positional("filename", { demandOption: true, describe: "Asset file to put" })
3760
+ yargs45.positional("filename", { demandOption: true, describe: "Asset file to put" })
3749
3761
  )
3750
3762
  )
3751
3763
  )
@@ -3771,7 +3783,7 @@ var AssetUpdateModule = {
3771
3783
  var AssetModule = {
3772
3784
  command: "asset <command>",
3773
3785
  describe: "Commands for Assets",
3774
- builder: (yargs44) => yargs44.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3786
+ builder: (yargs45) => yargs45.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3775
3787
  handler: () => {
3776
3788
  yargs5.help();
3777
3789
  }
@@ -3792,12 +3804,12 @@ function getCategoryClient(options) {
3792
3804
  var CategoryGetModule = {
3793
3805
  command: "get <id>",
3794
3806
  describe: "Fetch a category",
3795
- builder: (yargs44) => withConfiguration(
3807
+ builder: (yargs45) => withConfiguration(
3796
3808
  withFormatOptions(
3797
3809
  withDebugOptions(
3798
3810
  withApiOptions(
3799
3811
  withProjectOptions(
3800
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3812
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3801
3813
  )
3802
3814
  )
3803
3815
  )
@@ -3822,8 +3834,8 @@ var CategoryListModule = {
3822
3834
  command: "list",
3823
3835
  describe: "List categories",
3824
3836
  aliases: ["ls"],
3825
- builder: (yargs44) => withConfiguration(
3826
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
3837
+ builder: (yargs45) => withConfiguration(
3838
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
3827
3839
  ),
3828
3840
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3829
3841
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3865,12 +3877,12 @@ function createCategoriesEngineDataSource({
3865
3877
  var CategoryPullModule = {
3866
3878
  command: "pull <directory>",
3867
3879
  describe: "Pulls all categories to local files in a directory",
3868
- builder: (yargs44) => withConfiguration(
3880
+ builder: (yargs45) => withConfiguration(
3869
3881
  withApiOptions(
3870
3882
  withProjectOptions(
3871
3883
  withDiffOptions(
3872
3884
  withDebugOptions(
3873
- yargs44.positional("directory", {
3885
+ yargs45.positional("directory", {
3874
3886
  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.",
3875
3887
  type: "string"
3876
3888
  }).option("format", {
@@ -3945,12 +3957,12 @@ var CategoryPullModule = {
3945
3957
  var CategoryPushModule = {
3946
3958
  command: "push <directory>",
3947
3959
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
3948
- builder: (yargs44) => withConfiguration(
3960
+ builder: (yargs45) => withConfiguration(
3949
3961
  withApiOptions(
3950
3962
  withDebugOptions(
3951
3963
  withProjectOptions(
3952
3964
  withDiffOptions(
3953
- yargs44.positional("directory", {
3965
+ yargs45.positional("directory", {
3954
3966
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
3955
3967
  type: "string"
3956
3968
  }).option("mode", {
@@ -4014,11 +4026,11 @@ var CategoryRemoveModule = {
4014
4026
  command: "remove <id>",
4015
4027
  aliases: ["delete", "rm"],
4016
4028
  describe: "Delete a category",
4017
- builder: (yargs44) => withConfiguration(
4029
+ builder: (yargs45) => withConfiguration(
4018
4030
  withApiOptions(
4019
4031
  withDebugOptions(
4020
4032
  withProjectOptions(
4021
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4033
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4022
4034
  )
4023
4035
  )
4024
4036
  )
@@ -4039,11 +4051,11 @@ var CategoryUpdateModule = {
4039
4051
  command: "update <filename>",
4040
4052
  aliases: ["put"],
4041
4053
  describe: "Insert or update a category",
4042
- builder: (yargs44) => withConfiguration(
4054
+ builder: (yargs45) => withConfiguration(
4043
4055
  withApiOptions(
4044
4056
  withDebugOptions(
4045
4057
  withProjectOptions(
4046
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
4058
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
4047
4059
  )
4048
4060
  )
4049
4061
  )
@@ -4065,7 +4077,7 @@ var CategoryModule = {
4065
4077
  command: "category <command>",
4066
4078
  aliases: ["cat"],
4067
4079
  describe: "Commands for Canvas categories",
4068
- builder: (yargs44) => yargs44.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4080
+ builder: (yargs45) => yargs45.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4069
4081
  handler: () => {
4070
4082
  yargs6.help();
4071
4083
  }
@@ -4097,12 +4109,12 @@ function getCompositionDeliveryClient(options) {
4097
4109
  var ComponentGetModule = {
4098
4110
  command: "get <id>",
4099
4111
  describe: "Fetch a component definition",
4100
- builder: (yargs44) => withConfiguration(
4112
+ builder: (yargs45) => withConfiguration(
4101
4113
  withFormatOptions(
4102
4114
  withDebugOptions(
4103
4115
  withApiOptions(
4104
4116
  withProjectOptions(
4105
- yargs44.positional("id", {
4117
+ yargs45.positional("id", {
4106
4118
  demandOption: true,
4107
4119
  describe: "Component definition public ID to fetch"
4108
4120
  })
@@ -4136,12 +4148,12 @@ var ComponentListModule = {
4136
4148
  command: "list",
4137
4149
  describe: "List component definitions",
4138
4150
  aliases: ["ls"],
4139
- builder: (yargs44) => withConfiguration(
4151
+ builder: (yargs45) => withConfiguration(
4140
4152
  withFormatOptions(
4141
4153
  withDebugOptions(
4142
4154
  withApiOptions(
4143
4155
  withProjectOptions(
4144
- yargs44.options({
4156
+ yargs45.options({
4145
4157
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4146
4158
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
4147
4159
  })
@@ -4212,13 +4224,13 @@ function createComponentDefinitionEngineDataSource({
4212
4224
  var ComponentPullModule = {
4213
4225
  command: "pull <directory>",
4214
4226
  describe: "Pulls all component definitions to local files in a directory",
4215
- builder: (yargs44) => withConfiguration(
4227
+ builder: (yargs45) => withConfiguration(
4216
4228
  withApiOptions(
4217
4229
  withDebugOptions(
4218
4230
  withProjectOptions(
4219
4231
  withDiffOptions(
4220
4232
  withBatchSizeOptions(
4221
- yargs44.positional("directory", {
4233
+ yargs45.positional("directory", {
4222
4234
  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.",
4223
4235
  type: "string"
4224
4236
  }).option("format", {
@@ -4301,13 +4313,13 @@ var ComponentPullModule = {
4301
4313
  var ComponentPushModule = {
4302
4314
  command: "push <directory>",
4303
4315
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
4304
- builder: (yargs44) => withConfiguration(
4316
+ builder: (yargs45) => withConfiguration(
4305
4317
  withApiOptions(
4306
4318
  withDebugOptions(
4307
4319
  withProjectOptions(
4308
4320
  withDiffOptions(
4309
4321
  withBatchSizeOptions(
4310
- yargs44.positional("directory", {
4322
+ yargs45.positional("directory", {
4311
4323
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
4312
4324
  type: "string"
4313
4325
  }).option("mode", {
@@ -4379,11 +4391,11 @@ var ComponentRemoveModule = {
4379
4391
  command: "remove <id>",
4380
4392
  aliases: ["delete", "rm"],
4381
4393
  describe: "Delete a component definition",
4382
- builder: (yargs44) => withConfiguration(
4394
+ builder: (yargs45) => withConfiguration(
4383
4395
  withDebugOptions(
4384
4396
  withApiOptions(
4385
4397
  withProjectOptions(
4386
- yargs44.positional("id", {
4398
+ yargs45.positional("id", {
4387
4399
  demandOption: true,
4388
4400
  describe: "Component definition public ID to delete"
4389
4401
  })
@@ -4407,11 +4419,11 @@ var ComponentUpdateModule = {
4407
4419
  command: "update <filename>",
4408
4420
  aliases: ["put"],
4409
4421
  describe: "Insert or update a component definition",
4410
- builder: (yargs44) => withConfiguration(
4422
+ builder: (yargs45) => withConfiguration(
4411
4423
  withApiOptions(
4412
4424
  withDebugOptions(
4413
4425
  withProjectOptions(
4414
- yargs44.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4426
+ yargs45.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4415
4427
  )
4416
4428
  )
4417
4429
  )
@@ -4433,7 +4445,7 @@ var ComponentModule = {
4433
4445
  command: "component <command>",
4434
4446
  aliases: ["def"],
4435
4447
  describe: "Commands for Canvas component definitions",
4436
- builder: (yargs44) => yargs44.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4448
+ builder: (yargs45) => yargs45.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4437
4449
  handler: () => {
4438
4450
  yargs7.help();
4439
4451
  }
@@ -4596,13 +4608,13 @@ function createCompositionGetHandler(expectedType) {
4596
4608
  var CompositionGetModule = {
4597
4609
  command: "get <id>",
4598
4610
  describe: "Fetch a composition",
4599
- builder: (yargs44) => withFormatOptions(
4611
+ builder: (yargs45) => withFormatOptions(
4600
4612
  withConfiguration(
4601
4613
  withApiOptions(
4602
4614
  withProjectOptions(
4603
4615
  withStateOptions(
4604
4616
  withDebugOptions(
4605
- yargs44.positional("id", {
4617
+ yargs45.positional("id", {
4606
4618
  demandOption: true,
4607
4619
  describe: "Composition public ID to fetch"
4608
4620
  }).option({
@@ -4654,13 +4666,13 @@ var CompositionListModule = {
4654
4666
  command: "list",
4655
4667
  describe: "List compositions",
4656
4668
  aliases: ["ls"],
4657
- builder: (yargs44) => withFormatOptions(
4669
+ builder: (yargs45) => withFormatOptions(
4658
4670
  withConfiguration(
4659
4671
  withApiOptions(
4660
4672
  withProjectOptions(
4661
4673
  withDebugOptions(
4662
4674
  withStateOptions(
4663
- yargs44.options({
4675
+ yargs45.options({
4664
4676
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4665
4677
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4666
4678
  search: { describe: "Search query", type: "string", default: "" },
@@ -4734,13 +4746,13 @@ var CompositionListModule = {
4734
4746
  var ComponentPatternListModule = {
4735
4747
  ...CompositionListModule,
4736
4748
  describe: "List component patterns",
4737
- builder: (yargs44) => withFormatOptions(
4749
+ builder: (yargs45) => withFormatOptions(
4738
4750
  withConfiguration(
4739
4751
  withApiOptions(
4740
4752
  withDebugOptions(
4741
4753
  withProjectOptions(
4742
4754
  withStateOptions(
4743
- yargs44.options({
4755
+ yargs45.options({
4744
4756
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4745
4757
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4746
4758
  resolvePatterns: {
@@ -4879,13 +4891,13 @@ function createComponentInstanceEngineDataSource({
4879
4891
  var CompositionPublishModule = {
4880
4892
  command: "publish [ids]",
4881
4893
  describe: "Publishes composition(s)",
4882
- builder: (yargs44) => withConfiguration(
4894
+ builder: (yargs45) => withConfiguration(
4883
4895
  withApiOptions(
4884
4896
  withProjectOptions(
4885
4897
  withDebugOptions(
4886
4898
  withDiffOptions(
4887
4899
  withBatchSizeOptions(
4888
- yargs44.positional("ids", {
4900
+ yargs45.positional("ids", {
4889
4901
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4890
4902
  type: "string"
4891
4903
  }).option("all", {
@@ -4977,13 +4989,13 @@ var CompositionPublishModule = {
4977
4989
  var ComponentPatternPublishModule = {
4978
4990
  ...CompositionPublishModule,
4979
4991
  describe: "Publishes component pattern(s)",
4980
- builder: (yargs44) => withConfiguration(
4992
+ builder: (yargs45) => withConfiguration(
4981
4993
  withApiOptions(
4982
4994
  withDebugOptions(
4983
4995
  withProjectOptions(
4984
4996
  withDiffOptions(
4985
4997
  withBatchSizeOptions(
4986
- yargs44.positional("ids", {
4998
+ yargs45.positional("ids", {
4987
4999
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4988
5000
  type: "string"
4989
5001
  }).option("all", {
@@ -5025,14 +5037,14 @@ function componentInstancePullModuleFactory(type, entityType) {
5025
5037
  return {
5026
5038
  command: "pull <directory>",
5027
5039
  describe: "Pulls all compositions to local files in a directory",
5028
- builder: (yargs44) => withConfiguration(
5040
+ builder: (yargs45) => withConfiguration(
5029
5041
  withApiOptions(
5030
5042
  withProjectOptions(
5031
5043
  withStateOptions(
5032
5044
  withDebugOptions(
5033
5045
  withDiffOptions(
5034
5046
  withBatchSizeOptions(
5035
- yargs44.positional("directory", {
5047
+ yargs45.positional("directory", {
5036
5048
  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.",
5037
5049
  type: "string"
5038
5050
  }).option("format", {
@@ -5151,13 +5163,13 @@ function componentInstancePullModuleFactory(type, entityType) {
5151
5163
  var ComponentPatternPullModule = {
5152
5164
  ...componentInstancePullModuleFactory("componentPatterns", "componentPattern"),
5153
5165
  describe: "Pulls all component patterns to local files in a directory",
5154
- builder: (yargs44) => withConfiguration(
5166
+ builder: (yargs45) => withConfiguration(
5155
5167
  withApiOptions(
5156
5168
  withProjectOptions(
5157
5169
  withDebugOptions(
5158
5170
  withStateOptions(
5159
5171
  withDiffOptions(
5160
- yargs44.positional("directory", {
5172
+ yargs45.positional("directory", {
5161
5173
  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.",
5162
5174
  type: "string"
5163
5175
  }).option("format", {
@@ -5231,14 +5243,14 @@ function componentInstancePushModuleFactory(type, entityType) {
5231
5243
  return {
5232
5244
  command: "push <directory>",
5233
5245
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
5234
- builder: (yargs44) => withConfiguration(
5246
+ builder: (yargs45) => withConfiguration(
5235
5247
  withApiOptions(
5236
5248
  withProjectOptions(
5237
5249
  withStateOptions(
5238
5250
  withDebugOptions(
5239
5251
  withDiffOptions(
5240
5252
  withBatchSizeOptions(
5241
- yargs44.positional("directory", {
5253
+ yargs45.positional("directory", {
5242
5254
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
5243
5255
  type: "string"
5244
5256
  }).option("mode", {
@@ -5356,13 +5368,13 @@ function componentInstancePushModuleFactory(type, entityType) {
5356
5368
  var ComponentPatternPushModule = {
5357
5369
  ...componentInstancePushModuleFactory("componentPatterns", "componentPattern"),
5358
5370
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
5359
- builder: (yargs44) => withConfiguration(
5371
+ builder: (yargs45) => withConfiguration(
5360
5372
  withApiOptions(
5361
5373
  withProjectOptions(
5362
5374
  withStateOptions(
5363
5375
  withDiffOptions(
5364
5376
  withDebugOptions(
5365
- yargs44.positional("directory", {
5377
+ yargs45.positional("directory", {
5366
5378
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
5367
5379
  type: "string"
5368
5380
  }).option("mode", {
@@ -5427,11 +5439,11 @@ var CompositionRemoveModule = {
5427
5439
  command: "remove <id>",
5428
5440
  aliases: ["delete", "rm"],
5429
5441
  describe: "Delete a composition",
5430
- builder: (yargs44) => withConfiguration(
5442
+ builder: (yargs45) => withConfiguration(
5431
5443
  withApiOptions(
5432
5444
  withDebugOptions(
5433
5445
  withProjectOptions(
5434
- yargs44.positional("id", {
5446
+ yargs45.positional("id", {
5435
5447
  demandOption: true,
5436
5448
  describe: "Composition public ID to delete"
5437
5449
  })
@@ -5455,12 +5467,12 @@ import { diffJson as diffJson2 } from "diff";
5455
5467
  var CompositionUnpublishModule = {
5456
5468
  command: "unpublish [ids]",
5457
5469
  describe: "Unpublish a composition(s)",
5458
- builder: (yargs44) => withConfiguration(
5470
+ builder: (yargs45) => withConfiguration(
5459
5471
  withApiOptions(
5460
5472
  withDebugOptions(
5461
5473
  withProjectOptions(
5462
5474
  withBatchSizeOptions(
5463
- yargs44.positional("ids", {
5475
+ yargs45.positional("ids", {
5464
5476
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5465
5477
  type: "string"
5466
5478
  }).option("all", {
@@ -5581,11 +5593,11 @@ var CompositionUnpublishModule = {
5581
5593
  var ComponentPatternUnpublishModule = {
5582
5594
  command: "unpublish [ids]",
5583
5595
  describe: "Unpublish a component pattern(s)",
5584
- builder: (yargs44) => withConfiguration(
5596
+ builder: (yargs45) => withConfiguration(
5585
5597
  withApiOptions(
5586
5598
  withDebugOptions(
5587
5599
  withProjectOptions(
5588
- yargs44.positional("ids", {
5600
+ yargs45.positional("ids", {
5589
5601
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5590
5602
  type: "string"
5591
5603
  }).option("all", {
@@ -5653,12 +5665,12 @@ var CompositionUpdateModule = {
5653
5665
  command: "update <filename>",
5654
5666
  aliases: ["put"],
5655
5667
  describe: "Insert or update a composition",
5656
- builder: (yargs44) => withConfiguration(
5668
+ builder: (yargs45) => withConfiguration(
5657
5669
  withApiOptions(
5658
5670
  withProjectOptions(
5659
5671
  withDebugOptions(
5660
5672
  withStateOptions(
5661
- yargs44.positional("filename", {
5673
+ yargs45.positional("filename", {
5662
5674
  demandOption: true,
5663
5675
  describe: "Composition/pattern file to put"
5664
5676
  })
@@ -5681,7 +5693,7 @@ var ComponentPatternUpdateModule = {
5681
5693
  var ComponentPatternModule = {
5682
5694
  command: "component-pattern <command>",
5683
5695
  describe: "Commands for Canvas component patterns",
5684
- builder: (yargs44) => yargs44.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5696
+ builder: (yargs45) => yargs45.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5685
5697
  handler: () => {
5686
5698
  yargs8.help();
5687
5699
  }
@@ -5693,7 +5705,7 @@ var CompositionModule = {
5693
5705
  command: "composition <command>",
5694
5706
  describe: "Commands for Canvas compositions",
5695
5707
  aliases: ["comp"],
5696
- builder: (yargs44) => yargs44.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5708
+ builder: (yargs45) => yargs45.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5697
5709
  handler: () => {
5698
5710
  yargs9.help();
5699
5711
  }
@@ -5713,13 +5725,13 @@ var CompositionPatternGetModule = {
5713
5725
  var CompositionPatternListModule = {
5714
5726
  ...CompositionListModule,
5715
5727
  describe: "List composition patterns",
5716
- builder: (yargs44) => withFormatOptions(
5728
+ builder: (yargs45) => withFormatOptions(
5717
5729
  withConfiguration(
5718
5730
  withApiOptions(
5719
5731
  withDebugOptions(
5720
5732
  withProjectOptions(
5721
5733
  withStateOptions(
5722
- yargs44.options({
5734
+ yargs45.options({
5723
5735
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
5724
5736
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
5725
5737
  resolvePatterns: {
@@ -5757,13 +5769,13 @@ var CompositionPatternListModule = {
5757
5769
  var CompositionPatternPublishModule = {
5758
5770
  ...CompositionPublishModule,
5759
5771
  describe: "Publishes composition pattern(s)",
5760
- builder: (yargs44) => withConfiguration(
5772
+ builder: (yargs45) => withConfiguration(
5761
5773
  withApiOptions(
5762
5774
  withDebugOptions(
5763
5775
  withProjectOptions(
5764
5776
  withDiffOptions(
5765
5777
  withBatchSizeOptions(
5766
- yargs44.positional("ids", {
5778
+ yargs45.positional("ids", {
5767
5779
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5768
5780
  type: "string"
5769
5781
  }).option("all", {
@@ -5804,13 +5816,13 @@ var CompositionPatternPublishModule = {
5804
5816
  var CompositionPatternPullModule = {
5805
5817
  ...componentInstancePullModuleFactory("compositionPatterns", "compositionPattern"),
5806
5818
  describe: "Pulls all composition patterns to local files in a directory",
5807
- builder: (yargs44) => withConfiguration(
5819
+ builder: (yargs45) => withConfiguration(
5808
5820
  withApiOptions(
5809
5821
  withDebugOptions(
5810
5822
  withProjectOptions(
5811
5823
  withStateOptions(
5812
5824
  withDiffOptions(
5813
- yargs44.positional("directory", {
5825
+ yargs45.positional("directory", {
5814
5826
  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.",
5815
5827
  type: "string"
5816
5828
  }).option("format", {
@@ -5848,13 +5860,13 @@ var CompositionPatternPullModule = {
5848
5860
  var CompositionPatternPushModule = {
5849
5861
  ...componentInstancePushModuleFactory("compositionPatterns", "compositionPattern"),
5850
5862
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
5851
- builder: (yargs44) => withConfiguration(
5863
+ builder: (yargs45) => withConfiguration(
5852
5864
  withApiOptions(
5853
5865
  withDebugOptions(
5854
5866
  withProjectOptions(
5855
5867
  withStateOptions(
5856
5868
  withDiffOptions(
5857
- yargs44.positional("directory", {
5869
+ yargs45.positional("directory", {
5858
5870
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
5859
5871
  type: "string"
5860
5872
  }).option("mode", {
@@ -5894,11 +5906,11 @@ var CompositionPatternRemoveModule = {
5894
5906
  var CompositionPatternUnpublishModule = {
5895
5907
  command: "unpublish [ids]",
5896
5908
  describe: "Unpublish a composition pattern(s)",
5897
- builder: (yargs44) => withConfiguration(
5909
+ builder: (yargs45) => withConfiguration(
5898
5910
  withApiOptions(
5899
5911
  withDebugOptions(
5900
5912
  withProjectOptions(
5901
- yargs44.positional("ids", {
5913
+ yargs45.positional("ids", {
5902
5914
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5903
5915
  type: "string"
5904
5916
  }).option("all", {
@@ -5935,7 +5947,7 @@ var CompositionPatternUpdateModule = {
5935
5947
  var CompositionPatternModule = {
5936
5948
  command: "composition-pattern <command>",
5937
5949
  describe: "Commands for Canvas composition patterns",
5938
- builder: (yargs44) => yargs44.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5950
+ builder: (yargs45) => yargs45.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5939
5951
  handler: () => {
5940
5952
  yargs10.help();
5941
5953
  }
@@ -5966,12 +5978,12 @@ function getEntryDeliveryClient(options) {
5966
5978
  var ContentTypeGetModule = {
5967
5979
  command: "get <id>",
5968
5980
  describe: "Get a content type",
5969
- builder: (yargs44) => withConfiguration(
5981
+ builder: (yargs45) => withConfiguration(
5970
5982
  withDebugOptions(
5971
5983
  withFormatOptions(
5972
5984
  withApiOptions(
5973
5985
  withProjectOptions(
5974
- yargs44.positional("id", {
5986
+ yargs45.positional("id", {
5975
5987
  demandOption: true,
5976
5988
  describe: "Content type public ID to fetch"
5977
5989
  })
@@ -5992,7 +6004,7 @@ var ContentTypeGetModule = {
5992
6004
  var ContentTypeListModule = {
5993
6005
  command: "list",
5994
6006
  describe: "List content types",
5995
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6007
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
5996
6008
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
5997
6009
  const fetch2 = nodeFetchProxy(proxy, verbose);
5998
6010
  const client = getContentTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6038,13 +6050,13 @@ function createContentTypeEngineDataSource({
6038
6050
  var ContentTypePullModule = {
6039
6051
  command: "pull <directory>",
6040
6052
  describe: "Pulls all content types to local files in a directory",
6041
- builder: (yargs44) => withConfiguration(
6053
+ builder: (yargs45) => withConfiguration(
6042
6054
  withApiOptions(
6043
6055
  withDebugOptions(
6044
6056
  withProjectOptions(
6045
6057
  withDiffOptions(
6046
6058
  withBatchSizeOptions(
6047
- yargs44.positional("directory", {
6059
+ yargs45.positional("directory", {
6048
6060
  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.",
6049
6061
  type: "string"
6050
6062
  }).option("format", {
@@ -6131,13 +6143,13 @@ var ContentTypePullModule = {
6131
6143
  var ContentTypePushModule = {
6132
6144
  command: "push <directory>",
6133
6145
  describe: "Pushes all content types from files in a directory to Uniform",
6134
- builder: (yargs44) => withConfiguration(
6146
+ builder: (yargs45) => withConfiguration(
6135
6147
  withApiOptions(
6136
6148
  withDebugOptions(
6137
6149
  withProjectOptions(
6138
6150
  withDiffOptions(
6139
6151
  withBatchSizeOptions(
6140
- yargs44.positional("directory", {
6152
+ yargs45.positional("directory", {
6141
6153
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
6142
6154
  type: "string"
6143
6155
  }).option("what-if", {
@@ -6218,11 +6230,11 @@ var ContentTypeRemoveModule = {
6218
6230
  command: "remove <id>",
6219
6231
  aliases: ["delete", "rm"],
6220
6232
  describe: "Delete a content type",
6221
- builder: (yargs44) => withConfiguration(
6233
+ builder: (yargs45) => withConfiguration(
6222
6234
  withDebugOptions(
6223
6235
  withApiOptions(
6224
6236
  withProjectOptions(
6225
- yargs44.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6237
+ yargs45.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6226
6238
  )
6227
6239
  )
6228
6240
  )
@@ -6243,11 +6255,11 @@ var ContentTypeUpdateModule = {
6243
6255
  command: "update <filename>",
6244
6256
  aliases: ["put"],
6245
6257
  describe: "Insert or update a content type",
6246
- builder: (yargs44) => withConfiguration(
6258
+ builder: (yargs45) => withConfiguration(
6247
6259
  withDebugOptions(
6248
6260
  withApiOptions(
6249
6261
  withProjectOptions(
6250
- yargs44.positional("filename", { demandOption: true, describe: "Content type file to put" })
6262
+ yargs45.positional("filename", { demandOption: true, describe: "Content type file to put" })
6251
6263
  )
6252
6264
  )
6253
6265
  )
@@ -6269,15 +6281,307 @@ var ContentTypeModule = {
6269
6281
  command: "contenttype <command>",
6270
6282
  aliases: ["ct"],
6271
6283
  describe: "Commands for Content Types",
6272
- builder: (yargs44) => yargs44.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6284
+ builder: (yargs45) => yargs45.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6273
6285
  handler: () => {
6274
6286
  yargs11.help();
6275
6287
  }
6276
6288
  };
6277
6289
 
6278
- // src/commands/canvas/commands/dataSource.ts
6290
+ // src/commands/canvas/commands/customView.ts
6279
6291
  import yargs12 from "yargs";
6280
6292
 
6293
+ // src/commands/canvas/commands/customView/customViewClient.ts
6294
+ import { ApiClient } from "@uniformdev/context/api";
6295
+ var VIEWS_URL = "/api/v1/views";
6296
+ var CANVAS_RESOURCE_TYPES = [
6297
+ "composition",
6298
+ "compositionPattern",
6299
+ "component",
6300
+ "componentPattern",
6301
+ "entry",
6302
+ "entryPattern",
6303
+ "contentType",
6304
+ "blockType",
6305
+ "release",
6306
+ "signal",
6307
+ "intent",
6308
+ "audience",
6309
+ "asset"
6310
+ ];
6311
+ var CustomViewClient = class extends ApiClient {
6312
+ /** Lists saved views visible to the current caller (shared + own private). */
6313
+ async list(options) {
6314
+ const { projectId } = this.options;
6315
+ const fetchUri = this.createUrl(VIEWS_URL, { ...options, projectId });
6316
+ return await this.apiClient(fetchUri);
6317
+ }
6318
+ /**
6319
+ * Create-or-replace a saved view (`PUT`). When `id` is omitted a UUID is minted.
6320
+ */
6321
+ async put(body) {
6322
+ const { projectId } = this.options;
6323
+ const fetchUri = this.createUrl(VIEWS_URL);
6324
+ const id = body.id ?? crypto.randomUUID();
6325
+ return await this.apiClient(fetchUri, {
6326
+ method: "PUT",
6327
+ body: JSON.stringify({ ...body, id, projectId })
6328
+ });
6329
+ }
6330
+ /** Deletes a saved view by id (`DELETE`). */
6331
+ async remove(id) {
6332
+ const { projectId } = this.options;
6333
+ const fetchUri = this.createUrl(VIEWS_URL);
6334
+ await this.apiClient(fetchUri, {
6335
+ method: "DELETE",
6336
+ body: JSON.stringify({ id, projectId }),
6337
+ expectNoContent: true
6338
+ });
6339
+ }
6340
+ };
6341
+
6342
+ // src/commands/canvas/commands/customView/_util.ts
6343
+ var selectIdentifier4 = (view) => view.id;
6344
+ var selectDisplayName4 = (view) => `${view.name} (${view.resourceType})`;
6345
+ function getCustomViewClient(options) {
6346
+ return new CustomViewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6347
+ }
6348
+
6349
+ // src/commands/canvas/customViewEngineDataSource.ts
6350
+ function normalizeCustomViewForSync(view) {
6351
+ const {
6352
+ projectId: _projectId,
6353
+ createdBy: _createdBy,
6354
+ created: _created,
6355
+ modified: _modified,
6356
+ ...rest
6357
+ } = view;
6358
+ return rest;
6359
+ }
6360
+ function createCustomViewEngineDataSource({
6361
+ client,
6362
+ batchSize,
6363
+ verbose
6364
+ }) {
6365
+ async function* getObjects() {
6366
+ const pageSize = batchSize ?? 100;
6367
+ for (const resourceType of CANVAS_RESOURCE_TYPES) {
6368
+ const views = paginateAsync(
6369
+ async (offset, limit2) => (await client.list({ resourceType, offset, limit: limit2 })).views,
6370
+ {
6371
+ pageSize,
6372
+ verbose,
6373
+ entityName: `custom views (${resourceType})`
6374
+ }
6375
+ );
6376
+ for await (const view of views) {
6377
+ if (!view.shared) {
6378
+ continue;
6379
+ }
6380
+ const object4 = normalizeCustomViewForSync(view);
6381
+ const result = {
6382
+ id: selectIdentifier4(object4),
6383
+ displayName: selectDisplayName4(object4),
6384
+ providerId: object4.id,
6385
+ object: object4
6386
+ };
6387
+ yield result;
6388
+ }
6389
+ }
6390
+ }
6391
+ return {
6392
+ name: "Uniform API",
6393
+ objects: getObjects(),
6394
+ deleteObject: async (providerId) => {
6395
+ await client.remove(providerId);
6396
+ },
6397
+ writeObject: async ({ object: object4 }) => {
6398
+ if (!object4.shared) {
6399
+ throw new Error(
6400
+ `Custom view "${object4.name}" (${object4.id}) is personal and cannot be pushed. Only shared views are supported.`
6401
+ );
6402
+ }
6403
+ await client.put(object4);
6404
+ }
6405
+ };
6406
+ }
6407
+
6408
+ // src/commands/canvas/commands/customView/pull.ts
6409
+ var CustomViewPullModule = {
6410
+ command: "pull <directory>",
6411
+ describe: "Pulls all shared custom views to local files in a directory",
6412
+ builder: (yargs45) => withConfiguration(
6413
+ withApiOptions(
6414
+ withDebugOptions(
6415
+ withProjectOptions(
6416
+ withDiffOptions(
6417
+ withBatchSizeOptions(
6418
+ yargs45.positional("directory", {
6419
+ 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.",
6420
+ type: "string"
6421
+ }).option("format", {
6422
+ alias: ["f"],
6423
+ describe: "Output format",
6424
+ default: "yaml",
6425
+ choices: ["yaml", "json"],
6426
+ type: "string"
6427
+ }).option("mode", {
6428
+ alias: ["m"],
6429
+ 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',
6430
+ choices: ["create", "createOrUpdate", "mirror"],
6431
+ default: "mirror",
6432
+ type: "string"
6433
+ }),
6434
+ "customView"
6435
+ )
6436
+ )
6437
+ )
6438
+ )
6439
+ )
6440
+ ),
6441
+ handler: async ({
6442
+ apiHost,
6443
+ apiKey,
6444
+ proxy,
6445
+ directory,
6446
+ format,
6447
+ mode,
6448
+ whatIf,
6449
+ project: projectId,
6450
+ diff: diffMode,
6451
+ allowEmptySource,
6452
+ verbose,
6453
+ resolvedBatchSize
6454
+ }) => {
6455
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6456
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6457
+ const source = createCustomViewEngineDataSource({
6458
+ client,
6459
+ verbose,
6460
+ batchSize: resolvedBatchSize
6461
+ });
6462
+ let target;
6463
+ const isPackage = isPathAPackageFile(directory);
6464
+ if (isPackage) {
6465
+ const packageContents = readCanvasPackage(directory, false, verbose);
6466
+ target = await createArraySyncEngineDataSource({
6467
+ name: `Package file ${directory}`,
6468
+ objects: packageContents.customViews ?? [],
6469
+ selectIdentifier: selectIdentifier4,
6470
+ selectDisplayName: selectDisplayName4,
6471
+ onSyncComplete: async (_, synced) => {
6472
+ packageContents.customViews = synced;
6473
+ writeCanvasPackage(directory, packageContents);
6474
+ }
6475
+ });
6476
+ } else {
6477
+ target = await createFileSyncEngineDataSource({
6478
+ directory,
6479
+ selectIdentifier: selectIdentifier4,
6480
+ selectDisplayName: selectDisplayName4,
6481
+ format,
6482
+ verbose
6483
+ });
6484
+ }
6485
+ await syncEngine({
6486
+ source,
6487
+ target,
6488
+ mode,
6489
+ whatIf,
6490
+ allowEmptySource: allowEmptySource ?? true,
6491
+ log: createSyncEngineConsoleLogger({ diffMode })
6492
+ });
6493
+ }
6494
+ };
6495
+
6496
+ // src/commands/canvas/commands/customView/push.ts
6497
+ var CustomViewPushModule = {
6498
+ command: "push <directory>",
6499
+ describe: "Pushes all shared custom views from files in a directory to Uniform",
6500
+ builder: (yargs45) => withConfiguration(
6501
+ withDebugOptions(
6502
+ withApiOptions(
6503
+ withProjectOptions(
6504
+ withDiffOptions(
6505
+ withBatchSizeOptions(
6506
+ yargs45.positional("directory", {
6507
+ describe: "Directory to read from. If a filename is used, a package will be read instead.",
6508
+ type: "string"
6509
+ }).option("mode", {
6510
+ alias: ["m"],
6511
+ 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',
6512
+ choices: ["create", "createOrUpdate", "mirror"],
6513
+ default: "mirror",
6514
+ type: "string"
6515
+ }),
6516
+ "customView"
6517
+ )
6518
+ )
6519
+ )
6520
+ )
6521
+ )
6522
+ ),
6523
+ handler: async ({
6524
+ apiHost,
6525
+ apiKey,
6526
+ proxy,
6527
+ directory,
6528
+ mode,
6529
+ whatIf,
6530
+ project: projectId,
6531
+ diff: diffMode,
6532
+ allowEmptySource,
6533
+ verbose,
6534
+ resolvedBatchSize
6535
+ }) => {
6536
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6537
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6538
+ let source;
6539
+ const isPackage = isPathAPackageFile(directory);
6540
+ if (isPackage) {
6541
+ const packageContents = readCanvasPackage(directory, true, verbose);
6542
+ source = await createArraySyncEngineDataSource({
6543
+ name: `Package file ${directory}`,
6544
+ objects: packageContents.customViews ?? [],
6545
+ selectIdentifier: selectIdentifier4,
6546
+ selectDisplayName: selectDisplayName4
6547
+ });
6548
+ } else {
6549
+ source = await createFileSyncEngineDataSource({
6550
+ directory,
6551
+ selectIdentifier: selectIdentifier4,
6552
+ selectDisplayName: selectDisplayName4,
6553
+ verbose
6554
+ });
6555
+ }
6556
+ const target = createCustomViewEngineDataSource({
6557
+ client,
6558
+ verbose,
6559
+ batchSize: resolvedBatchSize
6560
+ });
6561
+ await syncEngine({
6562
+ source,
6563
+ target,
6564
+ mode,
6565
+ whatIf,
6566
+ allowEmptySource,
6567
+ log: createSyncEngineConsoleLogger({ diffMode })
6568
+ });
6569
+ }
6570
+ };
6571
+
6572
+ // src/commands/canvas/commands/customView.ts
6573
+ var CustomViewModule = {
6574
+ command: "custom-view <command>",
6575
+ describe: "Commands for shared custom views",
6576
+ builder: (yargs45) => yargs45.command(CustomViewPullModule).command(CustomViewPushModule).demandCommand(),
6577
+ handler: () => {
6578
+ yargs12.help();
6579
+ }
6580
+ };
6581
+
6582
+ // src/commands/canvas/commands/dataSource.ts
6583
+ import yargs13 from "yargs";
6584
+
6281
6585
  // src/commands/canvas/commands/dataSource/_util.ts
6282
6586
  import { DataSourceClient } from "@uniformdev/canvas";
6283
6587
  function getDataSourceClient(options) {
@@ -6288,11 +6592,11 @@ function getDataSourceClient(options) {
6288
6592
  var DataSourceGetModule = {
6289
6593
  command: "get <id>",
6290
6594
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
6291
- builder: (yargs44) => withConfiguration(
6595
+ builder: (yargs45) => withConfiguration(
6292
6596
  withApiOptions(
6293
6597
  withDebugOptions(
6294
6598
  withProjectOptions(
6295
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6599
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6296
6600
  )
6297
6601
  )
6298
6602
  )
@@ -6310,11 +6614,11 @@ var DataSourceRemoveModule = {
6310
6614
  command: "remove <id>",
6311
6615
  aliases: ["delete", "rm"],
6312
6616
  describe: "Delete a data source",
6313
- builder: (yargs44) => withConfiguration(
6617
+ builder: (yargs45) => withConfiguration(
6314
6618
  withDebugOptions(
6315
6619
  withApiOptions(
6316
6620
  withProjectOptions(
6317
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6621
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6318
6622
  )
6319
6623
  )
6320
6624
  )
@@ -6335,11 +6639,11 @@ var DataSourceUpdateModule = {
6335
6639
  command: "update <dataSource>",
6336
6640
  aliases: ["put"],
6337
6641
  describe: "Insert or update a data source",
6338
- builder: (yargs44) => withConfiguration(
6642
+ builder: (yargs45) => withConfiguration(
6339
6643
  withApiOptions(
6340
6644
  withDebugOptions(
6341
6645
  withProjectOptions(
6342
- yargs44.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6646
+ yargs45.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6343
6647
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
6344
6648
  type: "string",
6345
6649
  demandOption: true
@@ -6374,19 +6678,19 @@ var DataSourceModule = {
6374
6678
  command: "datasource <command>",
6375
6679
  aliases: ["ds"],
6376
6680
  describe: "Commands for Data Source definitions",
6377
- builder: (yargs44) => yargs44.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6681
+ builder: (yargs45) => yargs45.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6378
6682
  handler: () => {
6379
- yargs12.help();
6683
+ yargs13.help();
6380
6684
  }
6381
6685
  };
6382
6686
 
6383
6687
  // src/commands/canvas/commands/dataType.ts
6384
- import yargs13 from "yargs";
6688
+ import yargs14 from "yargs";
6385
6689
 
6386
6690
  // src/commands/canvas/commands/dataType/_util.ts
6387
6691
  import { DataTypeClient } from "@uniformdev/canvas";
6388
- var selectIdentifier4 = (dataType) => dataType.id;
6389
- var selectDisplayName4 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6692
+ var selectIdentifier5 = (dataType) => dataType.id;
6693
+ var selectDisplayName5 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6390
6694
  function getDataTypeClient(options) {
6391
6695
  return new DataTypeClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
6392
6696
  }
@@ -6396,12 +6700,12 @@ var DataTypeGetModule = {
6396
6700
  command: "get <id>",
6397
6701
  describe: "Get a data type",
6398
6702
  aliases: ["ls"],
6399
- builder: (yargs44) => withConfiguration(
6703
+ builder: (yargs45) => withConfiguration(
6400
6704
  withFormatOptions(
6401
6705
  withDebugOptions(
6402
6706
  withApiOptions(
6403
6707
  withProjectOptions(
6404
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6708
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6405
6709
  )
6406
6710
  )
6407
6711
  )
@@ -6424,7 +6728,7 @@ var DataTypeListModule = {
6424
6728
  command: "list",
6425
6729
  describe: "List data types",
6426
6730
  aliases: ["ls"],
6427
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6731
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6428
6732
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6429
6733
  const fetch2 = nodeFetchProxy(proxy, verbose);
6430
6734
  const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6441,8 +6745,8 @@ function createDataTypeEngineDataSource({
6441
6745
  const dataTypes = (await client.list()).results;
6442
6746
  for await (const dataType of dataTypes) {
6443
6747
  const result = {
6444
- id: selectIdentifier4(dataType),
6445
- displayName: selectDisplayName4(dataType),
6748
+ id: selectIdentifier5(dataType),
6749
+ displayName: selectDisplayName5(dataType),
6446
6750
  providerId: dataType.id,
6447
6751
  object: dataType
6448
6752
  };
@@ -6467,12 +6771,12 @@ function createDataTypeEngineDataSource({
6467
6771
  var DataTypePullModule = {
6468
6772
  command: "pull <directory>",
6469
6773
  describe: "Pulls all data types to local files in a directory",
6470
- builder: (yargs44) => withConfiguration(
6774
+ builder: (yargs45) => withConfiguration(
6471
6775
  withApiOptions(
6472
6776
  withDebugOptions(
6473
6777
  withProjectOptions(
6474
6778
  withDiffOptions(
6475
- yargs44.positional("directory", {
6779
+ yargs45.positional("directory", {
6476
6780
  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.",
6477
6781
  type: "string"
6478
6782
  }).option("format", {
@@ -6521,8 +6825,8 @@ var DataTypePullModule = {
6521
6825
  target = await createArraySyncEngineDataSource({
6522
6826
  name: `Package file ${directory}`,
6523
6827
  objects: packageContents.dataTypes ?? [],
6524
- selectIdentifier: selectIdentifier4,
6525
- selectDisplayName: selectDisplayName4,
6828
+ selectIdentifier: selectIdentifier5,
6829
+ selectDisplayName: selectDisplayName5,
6526
6830
  onSyncComplete: async (_, synced) => {
6527
6831
  packageContents.dataTypes = synced;
6528
6832
  writeCanvasPackage(directory, packageContents);
@@ -6531,8 +6835,8 @@ var DataTypePullModule = {
6531
6835
  } else {
6532
6836
  target = await createFileSyncEngineDataSource({
6533
6837
  directory,
6534
- selectIdentifier: selectIdentifier4,
6535
- selectDisplayName: selectDisplayName4,
6838
+ selectIdentifier: selectIdentifier5,
6839
+ selectDisplayName: selectDisplayName5,
6536
6840
  format,
6537
6841
  verbose
6538
6842
  });
@@ -6552,12 +6856,12 @@ var DataTypePullModule = {
6552
6856
  var DataTypePushModule = {
6553
6857
  command: "push <directory>",
6554
6858
  describe: "Pushes all data types from files in a directory to Uniform",
6555
- builder: (yargs44) => withConfiguration(
6859
+ builder: (yargs45) => withConfiguration(
6556
6860
  withApiOptions(
6557
6861
  withDebugOptions(
6558
6862
  withProjectOptions(
6559
6863
  withDiffOptions(
6560
- yargs44.positional("directory", {
6864
+ yargs45.positional("directory", {
6561
6865
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
6562
6866
  type: "string"
6563
6867
  }).option("mode", {
@@ -6598,14 +6902,14 @@ var DataTypePushModule = {
6598
6902
  source = await createArraySyncEngineDataSource({
6599
6903
  name: `Package file ${directory}`,
6600
6904
  objects: packageContents.dataTypes ?? [],
6601
- selectIdentifier: selectIdentifier4,
6602
- selectDisplayName: selectDisplayName4
6905
+ selectIdentifier: selectIdentifier5,
6906
+ selectDisplayName: selectDisplayName5
6603
6907
  });
6604
6908
  } else {
6605
6909
  source = await createFileSyncEngineDataSource({
6606
6910
  directory,
6607
- selectIdentifier: selectIdentifier4,
6608
- selectDisplayName: selectDisplayName4,
6911
+ selectIdentifier: selectIdentifier5,
6912
+ selectDisplayName: selectDisplayName5,
6609
6913
  verbose
6610
6914
  });
6611
6915
  }
@@ -6626,11 +6930,11 @@ var DataTypeRemoveModule = {
6626
6930
  command: "remove <id>",
6627
6931
  aliases: ["delete", "rm"],
6628
6932
  describe: "Delete a data type",
6629
- builder: (yargs44) => withConfiguration(
6933
+ builder: (yargs45) => withConfiguration(
6630
6934
  withDebugOptions(
6631
6935
  withApiOptions(
6632
6936
  withProjectOptions(
6633
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6937
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6634
6938
  )
6635
6939
  )
6636
6940
  )
@@ -6651,11 +6955,11 @@ var DataTypeUpdateModule = {
6651
6955
  command: "update <filename>",
6652
6956
  aliases: ["put"],
6653
6957
  describe: "Insert or update a data type",
6654
- builder: (yargs44) => withConfiguration(
6958
+ builder: (yargs45) => withConfiguration(
6655
6959
  withDebugOptions(
6656
6960
  withApiOptions(
6657
6961
  withProjectOptions(
6658
- yargs44.positional("filename", { demandOption: true, describe: "Data type file to put" })
6962
+ yargs45.positional("filename", { demandOption: true, describe: "Data type file to put" })
6659
6963
  )
6660
6964
  )
6661
6965
  )
@@ -6677,14 +6981,14 @@ var DataTypeModule = {
6677
6981
  command: "datatype <command>",
6678
6982
  aliases: ["dt"],
6679
6983
  describe: "Commands for Data Type definitions",
6680
- builder: (yargs44) => yargs44.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6984
+ builder: (yargs45) => yargs45.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6681
6985
  handler: () => {
6682
- yargs13.help();
6986
+ yargs14.help();
6683
6987
  }
6684
6988
  };
6685
6989
 
6686
6990
  // src/commands/canvas/commands/entry.ts
6687
- import yargs14 from "yargs";
6991
+ import yargs15 from "yargs";
6688
6992
 
6689
6993
  // src/commands/canvas/commands/entry/get.ts
6690
6994
  function createEntryGetHandler(expectedType) {
@@ -6733,13 +7037,13 @@ function createEntryGetHandler(expectedType) {
6733
7037
  var EntryGetModule = {
6734
7038
  command: "get <id>",
6735
7039
  describe: "Get an entry",
6736
- builder: (yargs44) => withConfiguration(
7040
+ builder: (yargs45) => withConfiguration(
6737
7041
  withDebugOptions(
6738
7042
  withFormatOptions(
6739
7043
  withApiOptions(
6740
7044
  withProjectOptions(
6741
7045
  withStateOptions(
6742
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
7046
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
6743
7047
  resolveData: {
6744
7048
  type: "boolean",
6745
7049
  default: false,
@@ -6773,13 +7077,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
6773
7077
  var EntryListModule = {
6774
7078
  command: "list",
6775
7079
  describe: "List entries",
6776
- builder: (yargs44) => withConfiguration(
7080
+ builder: (yargs45) => withConfiguration(
6777
7081
  withDebugOptions(
6778
7082
  withFormatOptions(
6779
7083
  withApiOptions(
6780
7084
  withProjectOptions(
6781
7085
  withStateOptions(
6782
- yargs44.options({
7086
+ yargs45.options({
6783
7087
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
6784
7088
  limit: {
6785
7089
  describe: "Number of rows to fetch",
@@ -6908,13 +7212,13 @@ function createEntryEngineDataSource({
6908
7212
  var EntryPublishModule = {
6909
7213
  command: "publish [ids]",
6910
7214
  describe: "Publishes entry(ies)",
6911
- builder: (yargs44) => withConfiguration(
7215
+ builder: (yargs45) => withConfiguration(
6912
7216
  withDebugOptions(
6913
7217
  withDiffOptions(
6914
7218
  withApiOptions(
6915
7219
  withProjectOptions(
6916
7220
  withBatchSizeOptions(
6917
- yargs44.positional("ids", {
7221
+ yargs45.positional("ids", {
6918
7222
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
6919
7223
  type: "string"
6920
7224
  }).option("all", {
@@ -6991,14 +7295,14 @@ var EntryPublishModule = {
6991
7295
  var EntryPullModule = {
6992
7296
  command: "pull <directory>",
6993
7297
  describe: "Pulls all entries to local files in a directory",
6994
- builder: (yargs44) => withConfiguration(
7298
+ builder: (yargs45) => withConfiguration(
6995
7299
  withDebugOptions(
6996
7300
  withApiOptions(
6997
7301
  withProjectOptions(
6998
7302
  withStateOptions(
6999
7303
  withDiffOptions(
7000
7304
  withBatchSizeOptions(
7001
- yargs44.positional("directory", {
7305
+ yargs45.positional("directory", {
7002
7306
  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.",
7003
7307
  type: "string"
7004
7308
  }).option("format", {
@@ -7107,14 +7411,14 @@ var EntryPullModule = {
7107
7411
  var EntryPushModule = {
7108
7412
  command: "push <directory>",
7109
7413
  describe: "Pushes all entries from files in a directory to Uniform",
7110
- builder: (yargs44) => withConfiguration(
7414
+ builder: (yargs45) => withConfiguration(
7111
7415
  withDebugOptions(
7112
7416
  withApiOptions(
7113
7417
  withProjectOptions(
7114
7418
  withStateOptions(
7115
7419
  withDiffOptions(
7116
7420
  withBatchSizeOptions(
7117
- yargs44.positional("directory", {
7421
+ yargs45.positional("directory", {
7118
7422
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
7119
7423
  type: "string"
7120
7424
  }).option("mode", {
@@ -7253,11 +7557,11 @@ var EntryRemoveModule = {
7253
7557
  command: "remove <id>",
7254
7558
  aliases: ["delete", "rm"],
7255
7559
  describe: "Delete an entry",
7256
- builder: (yargs44) => withConfiguration(
7560
+ builder: (yargs45) => withConfiguration(
7257
7561
  withDebugOptions(
7258
7562
  withApiOptions(
7259
7563
  withProjectOptions(
7260
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7564
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7261
7565
  )
7262
7566
  )
7263
7567
  )
@@ -7271,12 +7575,12 @@ import { diffJson as diffJson3 } from "diff";
7271
7575
  var EntryUnpublishModule = {
7272
7576
  command: "unpublish [ids]",
7273
7577
  describe: "Unpublish an entry(ies)",
7274
- builder: (yargs44) => withConfiguration(
7578
+ builder: (yargs45) => withConfiguration(
7275
7579
  withDebugOptions(
7276
7580
  withApiOptions(
7277
7581
  withProjectOptions(
7278
7582
  withBatchSizeOptions(
7279
- yargs44.positional("ids", {
7583
+ yargs45.positional("ids", {
7280
7584
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7281
7585
  type: "string"
7282
7586
  }).option("all", {
@@ -7414,12 +7718,12 @@ var EntryUpdateModule = {
7414
7718
  command: "update <filename>",
7415
7719
  aliases: ["put"],
7416
7720
  describe: "Insert or update an entry",
7417
- builder: (yargs44) => withConfiguration(
7721
+ builder: (yargs45) => withConfiguration(
7418
7722
  withDebugOptions(
7419
7723
  withApiOptions(
7420
7724
  withProjectOptions(
7421
7725
  withStateOptions(
7422
- yargs44.positional("filename", { demandOption: true, describe: "Entry file to put" })
7726
+ yargs45.positional("filename", { demandOption: true, describe: "Entry file to put" })
7423
7727
  )
7424
7728
  )
7425
7729
  )
@@ -7432,26 +7736,26 @@ var EntryUpdateModule = {
7432
7736
  var EntryModule = {
7433
7737
  command: "entry <command>",
7434
7738
  describe: "Commands for Entries",
7435
- builder: (yargs44) => yargs44.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7739
+ builder: (yargs45) => yargs45.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7436
7740
  handler: () => {
7437
- yargs14.help();
7741
+ yargs15.help();
7438
7742
  }
7439
7743
  };
7440
7744
 
7441
7745
  // src/commands/canvas/commands/entryPattern.ts
7442
- import yargs15 from "yargs";
7746
+ import yargs16 from "yargs";
7443
7747
 
7444
7748
  // src/commands/canvas/commands/entryPattern/get.ts
7445
7749
  var EntryPatternGetModule = {
7446
7750
  command: "get <id>",
7447
7751
  describe: "Get an entry pattern",
7448
- builder: (yargs44) => withConfiguration(
7752
+ builder: (yargs45) => withConfiguration(
7449
7753
  withDebugOptions(
7450
7754
  withFormatOptions(
7451
7755
  withApiOptions(
7452
7756
  withProjectOptions(
7453
7757
  withStateOptions(
7454
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7758
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7455
7759
  resolveData: {
7456
7760
  type: "boolean",
7457
7761
  default: false,
@@ -7483,9 +7787,9 @@ var EntryPatternGetModule = {
7483
7787
  var EntryPatternListModule = {
7484
7788
  command: "list",
7485
7789
  describe: "List entry patterns",
7486
- builder: (yargs44) => withConfiguration(
7790
+ builder: (yargs45) => withConfiguration(
7487
7791
  withDebugOptions(
7488
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs44, "published"))))
7792
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs45, "published"))))
7489
7793
  )
7490
7794
  ),
7491
7795
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, state, verbose }) => {
@@ -7505,13 +7809,13 @@ var EntryPatternListModule = {
7505
7809
  var EntryPatternPublishModule = {
7506
7810
  command: "publish [ids]",
7507
7811
  describe: "Publishes entry pattern(s)",
7508
- builder: (yargs44) => withConfiguration(
7812
+ builder: (yargs45) => withConfiguration(
7509
7813
  withDebugOptions(
7510
7814
  withApiOptions(
7511
7815
  withProjectOptions(
7512
7816
  withDiffOptions(
7513
7817
  withBatchSizeOptions(
7514
- yargs44.positional("ids", {
7818
+ yargs45.positional("ids", {
7515
7819
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
7516
7820
  type: "string"
7517
7821
  }).option("all", {
@@ -7588,14 +7892,14 @@ var EntryPatternPublishModule = {
7588
7892
  var EntryPatternPullModule = {
7589
7893
  command: "pull <directory>",
7590
7894
  describe: "Pulls all entry patterns to local files in a directory",
7591
- builder: (yargs44) => withConfiguration(
7895
+ builder: (yargs45) => withConfiguration(
7592
7896
  withApiOptions(
7593
7897
  withDebugOptions(
7594
7898
  withProjectOptions(
7595
7899
  withStateOptions(
7596
7900
  withDiffOptions(
7597
7901
  withBatchSizeOptions(
7598
- yargs44.positional("directory", {
7902
+ yargs45.positional("directory", {
7599
7903
  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.",
7600
7904
  type: "string"
7601
7905
  }).option("format", {
@@ -7704,14 +8008,14 @@ var EntryPatternPullModule = {
7704
8008
  var EntryPatternPushModule = {
7705
8009
  command: "push <directory>",
7706
8010
  describe: "Pushes all entry patterns from files in a directory to Uniform",
7707
- builder: (yargs44) => withConfiguration(
8011
+ builder: (yargs45) => withConfiguration(
7708
8012
  withDebugOptions(
7709
8013
  withApiOptions(
7710
8014
  withProjectOptions(
7711
8015
  withStateOptions(
7712
8016
  withDiffOptions(
7713
8017
  withBatchSizeOptions(
7714
- yargs44.positional("directory", {
8018
+ yargs45.positional("directory", {
7715
8019
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
7716
8020
  type: "string"
7717
8021
  }).option("what-if", {
@@ -7824,11 +8128,11 @@ var EntryPatternRemoveModule = {
7824
8128
  command: "remove <id>",
7825
8129
  aliases: ["delete", "rm"],
7826
8130
  describe: "Delete an entry pattern",
7827
- builder: (yargs44) => withConfiguration(
8131
+ builder: (yargs45) => withConfiguration(
7828
8132
  withDebugOptions(
7829
8133
  withApiOptions(
7830
8134
  withProjectOptions(
7831
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
8135
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
7832
8136
  )
7833
8137
  )
7834
8138
  )
@@ -7842,12 +8146,12 @@ import { diffJson as diffJson4 } from "diff";
7842
8146
  var EntryPatternUnpublishModule = {
7843
8147
  command: "unpublish [ids]",
7844
8148
  describe: "Unpublish entry pattern(s)",
7845
- builder: (yargs44) => withConfiguration(
8149
+ builder: (yargs45) => withConfiguration(
7846
8150
  withDebugOptions(
7847
8151
  withApiOptions(
7848
8152
  withProjectOptions(
7849
8153
  withBatchSizeOptions(
7850
- yargs44.positional("ids", {
8154
+ yargs45.positional("ids", {
7851
8155
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7852
8156
  type: "string"
7853
8157
  }).option("all", {
@@ -7951,12 +8255,12 @@ var EntryPatternUpdateModule = {
7951
8255
  command: "update <filename>",
7952
8256
  aliases: ["put"],
7953
8257
  describe: "Insert or update an entry pattern",
7954
- builder: (yargs44) => withConfiguration(
8258
+ builder: (yargs45) => withConfiguration(
7955
8259
  withDebugOptions(
7956
8260
  withApiOptions(
7957
8261
  withProjectOptions(
7958
8262
  withStateOptions(
7959
- yargs44.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
8263
+ yargs45.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
7960
8264
  )
7961
8265
  )
7962
8266
  )
@@ -7969,14 +8273,14 @@ var EntryPatternUpdateModule = {
7969
8273
  var EntryPatternModule = {
7970
8274
  command: "entry-pattern <command>",
7971
8275
  describe: "Commands for Entry patterns",
7972
- builder: (yargs44) => yargs44.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
8276
+ builder: (yargs45) => yargs45.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
7973
8277
  handler: () => {
7974
- yargs15.help();
8278
+ yargs16.help();
7975
8279
  }
7976
8280
  };
7977
8281
 
7978
8282
  // src/commands/canvas/commands/label.ts
7979
- import yargs16 from "yargs";
8283
+ import yargs17 from "yargs";
7980
8284
 
7981
8285
  // src/commands/canvas/labelsEngineDataSource.ts
7982
8286
  function normalizeLabelForSync(label) {
@@ -8028,13 +8332,13 @@ function getLabelClient(options) {
8028
8332
  var LabelPullModule = {
8029
8333
  command: "pull <directory>",
8030
8334
  describe: "Pulls all labels to local files in a directory",
8031
- builder: (yargs44) => withConfiguration(
8335
+ builder: (yargs45) => withConfiguration(
8032
8336
  withDebugOptions(
8033
8337
  withApiOptions(
8034
8338
  withProjectOptions(
8035
8339
  withDiffOptions(
8036
8340
  withBatchSizeOptions(
8037
- yargs44.positional("directory", {
8341
+ yargs45.positional("directory", {
8038
8342
  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.",
8039
8343
  type: "string"
8040
8344
  }).option("format", {
@@ -8123,13 +8427,13 @@ var __INTERNAL_MISSING_PARENT_LABEL_ERROR = "Parent label with public ID";
8123
8427
  var LabelPushModule = {
8124
8428
  command: "push <directory>",
8125
8429
  describe: "Pushes all labels from files in a directory to Uniform",
8126
- builder: (yargs44) => withConfiguration(
8430
+ builder: (yargs45) => withConfiguration(
8127
8431
  withDebugOptions(
8128
8432
  withApiOptions(
8129
8433
  withProjectOptions(
8130
8434
  withDiffOptions(
8131
8435
  withBatchSizeOptions(
8132
- yargs44.positional("directory", {
8436
+ yargs45.positional("directory", {
8133
8437
  describe: "Directory to read the labels from. If a filename is used, a package will be read instead.",
8134
8438
  type: "string"
8135
8439
  }).option("mode", {
@@ -8227,14 +8531,14 @@ var LabelPushModule = {
8227
8531
  var LabelModule = {
8228
8532
  command: "label <command>",
8229
8533
  describe: "Commands for label definitions",
8230
- builder: (yargs44) => yargs44.command(LabelPullModule).command(LabelPushModule),
8534
+ builder: (yargs45) => yargs45.command(LabelPullModule).command(LabelPushModule),
8231
8535
  handler: () => {
8232
- yargs16.help();
8536
+ yargs17.help();
8233
8537
  }
8234
8538
  };
8235
8539
 
8236
8540
  // src/commands/canvas/commands/locale.ts
8237
- import yargs17 from "yargs";
8541
+ import yargs18 from "yargs";
8238
8542
 
8239
8543
  // src/commands/canvas/localesEngineDataSource.ts
8240
8544
  function createLocaleEngineDataSource({
@@ -8276,12 +8580,12 @@ function getLocaleClient(options) {
8276
8580
  var LocalePullModule = {
8277
8581
  command: "pull <directory>",
8278
8582
  describe: "Pulls all locales to local files in a directory",
8279
- builder: (yargs44) => withConfiguration(
8583
+ builder: (yargs45) => withConfiguration(
8280
8584
  withDebugOptions(
8281
8585
  withApiOptions(
8282
8586
  withProjectOptions(
8283
8587
  withDiffOptions(
8284
- yargs44.positional("directory", {
8588
+ yargs45.positional("directory", {
8285
8589
  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.",
8286
8590
  type: "string"
8287
8591
  }).option("format", {
@@ -8361,12 +8665,12 @@ var LocalePullModule = {
8361
8665
  var LocalePushModule = {
8362
8666
  command: "push <directory>",
8363
8667
  describe: "Pushes all locales from files in a directory to Uniform",
8364
- builder: (yargs44) => withConfiguration(
8668
+ builder: (yargs45) => withConfiguration(
8365
8669
  withDebugOptions(
8366
8670
  withApiOptions(
8367
8671
  withProjectOptions(
8368
8672
  withDiffOptions(
8369
- yargs44.positional("directory", {
8673
+ yargs45.positional("directory", {
8370
8674
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
8371
8675
  type: "string"
8372
8676
  }).option("mode", {
@@ -8434,19 +8738,19 @@ var LocalePushModule = {
8434
8738
  var LocaleModule = {
8435
8739
  command: "locale <command>",
8436
8740
  describe: "Commands for locale definitions",
8437
- builder: (yargs44) => yargs44.command(LocalePullModule).command(LocalePushModule),
8741
+ builder: (yargs45) => yargs45.command(LocalePullModule).command(LocalePushModule),
8438
8742
  handler: () => {
8439
- yargs17.help();
8743
+ yargs18.help();
8440
8744
  }
8441
8745
  };
8442
8746
 
8443
8747
  // src/commands/canvas/commands/previewUrl.ts
8444
- import yargs18 from "yargs";
8748
+ import yargs19 from "yargs";
8445
8749
 
8446
8750
  // src/commands/canvas/commands/previewUrl/_util.ts
8447
8751
  import { PreviewClient } from "@uniformdev/canvas";
8448
- var selectIdentifier5 = (previewUrl) => previewUrl.id;
8449
- var selectDisplayName5 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8752
+ var selectIdentifier6 = (previewUrl) => previewUrl.id;
8753
+ var selectDisplayName6 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8450
8754
  function getPreviewClient(options) {
8451
8755
  return new PreviewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
8452
8756
  }
@@ -8455,12 +8759,12 @@ function getPreviewClient(options) {
8455
8759
  var PreviewUrlGetModule = {
8456
8760
  command: "get <id>",
8457
8761
  describe: "Fetch a preview URL",
8458
- builder: (yargs44) => withConfiguration(
8762
+ builder: (yargs45) => withConfiguration(
8459
8763
  withFormatOptions(
8460
8764
  withDebugOptions(
8461
8765
  withApiOptions(
8462
8766
  withProjectOptions(
8463
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8767
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8464
8768
  )
8465
8769
  )
8466
8770
  )
@@ -8484,8 +8788,8 @@ var PreviewUrlListModule = {
8484
8788
  command: "list",
8485
8789
  describe: "List preview URLs",
8486
8790
  aliases: ["ls"],
8487
- builder: (yargs44) => withConfiguration(
8488
- withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs44.options({})))))
8791
+ builder: (yargs45) => withConfiguration(
8792
+ withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs45.options({})))))
8489
8793
  ),
8490
8794
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8491
8795
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8503,8 +8807,8 @@ function createPreviewUrlEngineDataSource({
8503
8807
  const previewUrls = (await client.getPreviewUrls()).previewUrls;
8504
8808
  for await (const previewUrl of previewUrls) {
8505
8809
  const result = {
8506
- id: selectIdentifier5(previewUrl),
8507
- displayName: selectDisplayName5(previewUrl),
8810
+ id: selectIdentifier6(previewUrl),
8811
+ displayName: selectDisplayName6(previewUrl),
8508
8812
  providerId: previewUrl.id,
8509
8813
  object: previewUrl
8510
8814
  };
@@ -8527,12 +8831,12 @@ function createPreviewUrlEngineDataSource({
8527
8831
  var PreviewUrlPullModule = {
8528
8832
  command: "pull <directory>",
8529
8833
  describe: "Pulls all preview urls to local files in a directory",
8530
- builder: (yargs44) => withConfiguration(
8834
+ builder: (yargs45) => withConfiguration(
8531
8835
  withApiOptions(
8532
8836
  withProjectOptions(
8533
8837
  withDebugOptions(
8534
8838
  withDiffOptions(
8535
- yargs44.positional("directory", {
8839
+ yargs45.positional("directory", {
8536
8840
  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.",
8537
8841
  type: "string"
8538
8842
  }).option("format", {
@@ -8576,8 +8880,8 @@ var PreviewUrlPullModule = {
8576
8880
  target = await createArraySyncEngineDataSource({
8577
8881
  name: `Package file ${directory}`,
8578
8882
  objects: packageContents.previewUrls ?? [],
8579
- selectIdentifier: selectIdentifier5,
8580
- selectDisplayName: selectDisplayName5,
8883
+ selectIdentifier: selectIdentifier6,
8884
+ selectDisplayName: selectDisplayName6,
8581
8885
  onSyncComplete: async (_, synced) => {
8582
8886
  packageContents.previewUrls = synced;
8583
8887
  writeCanvasPackage(directory, packageContents);
@@ -8586,9 +8890,9 @@ var PreviewUrlPullModule = {
8586
8890
  } else {
8587
8891
  target = await createFileSyncEngineDataSource({
8588
8892
  directory,
8589
- selectIdentifier: selectIdentifier5,
8590
- selectDisplayName: selectDisplayName5,
8591
- format,
8893
+ selectIdentifier: selectIdentifier6,
8894
+ selectDisplayName: selectDisplayName6,
8895
+ format,
8592
8896
  verbose
8593
8897
  });
8594
8898
  }
@@ -8607,12 +8911,12 @@ var PreviewUrlPullModule = {
8607
8911
  var PreviewUrlPushModule = {
8608
8912
  command: "push <directory>",
8609
8913
  describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
8610
- builder: (yargs44) => withConfiguration(
8914
+ builder: (yargs45) => withConfiguration(
8611
8915
  withApiOptions(
8612
8916
  withProjectOptions(
8613
8917
  withDiffOptions(
8614
8918
  withDebugOptions(
8615
- yargs44.positional("directory", {
8919
+ yargs45.positional("directory", {
8616
8920
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8617
8921
  type: "string"
8618
8922
  }).option("mode", {
@@ -8648,14 +8952,14 @@ var PreviewUrlPushModule = {
8648
8952
  source = await createArraySyncEngineDataSource({
8649
8953
  name: `Package file ${directory}`,
8650
8954
  objects: packageContents.previewUrls ?? [],
8651
- selectIdentifier: selectIdentifier5,
8652
- selectDisplayName: selectDisplayName5
8955
+ selectIdentifier: selectIdentifier6,
8956
+ selectDisplayName: selectDisplayName6
8653
8957
  });
8654
8958
  } else {
8655
8959
  source = await createFileSyncEngineDataSource({
8656
8960
  directory,
8657
- selectIdentifier: selectIdentifier5,
8658
- selectDisplayName: selectDisplayName5,
8961
+ selectIdentifier: selectIdentifier6,
8962
+ selectDisplayName: selectDisplayName6,
8659
8963
  verbose
8660
8964
  });
8661
8965
  }
@@ -8676,11 +8980,11 @@ var PreviewUrlRemoveModule = {
8676
8980
  command: "remove <id>",
8677
8981
  aliases: ["delete", "rm"],
8678
8982
  describe: "Delete a preview URL",
8679
- builder: (yargs44) => withConfiguration(
8983
+ builder: (yargs45) => withConfiguration(
8680
8984
  withApiOptions(
8681
8985
  withDebugOptions(
8682
8986
  withProjectOptions(
8683
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8987
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8684
8988
  )
8685
8989
  )
8686
8990
  )
@@ -8701,11 +9005,11 @@ var PreviewUrlUpdateModule = {
8701
9005
  command: "update <filename>",
8702
9006
  aliases: ["put"],
8703
9007
  describe: "Insert or update a preview URL",
8704
- builder: (yargs44) => withConfiguration(
9008
+ builder: (yargs45) => withConfiguration(
8705
9009
  withDebugOptions(
8706
9010
  withApiOptions(
8707
9011
  withProjectOptions(
8708
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
9012
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
8709
9013
  )
8710
9014
  )
8711
9015
  )
@@ -8727,25 +9031,25 @@ var PreviewUrlModule = {
8727
9031
  command: "preview-url <command>",
8728
9032
  aliases: ["pu"],
8729
9033
  describe: "Commands for Canvas preview urls",
8730
- builder: (yargs44) => yargs44.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
9034
+ builder: (yargs45) => yargs45.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
8731
9035
  handler: () => {
8732
- yargs18.help();
9036
+ yargs19.help();
8733
9037
  }
8734
9038
  };
8735
9039
 
8736
9040
  // src/commands/canvas/commands/previewViewport.ts
8737
- import yargs19 from "yargs";
9041
+ import yargs20 from "yargs";
8738
9042
 
8739
9043
  // src/commands/canvas/commands/previewViewport/get.ts
8740
9044
  var PreviewViewportGetModule = {
8741
9045
  command: "get <id>",
8742
9046
  describe: "Fetch a preview viewport",
8743
- builder: (yargs44) => withConfiguration(
9047
+ builder: (yargs45) => withConfiguration(
8744
9048
  withFormatOptions(
8745
9049
  withDebugOptions(
8746
9050
  withApiOptions(
8747
9051
  withProjectOptions(
8748
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
9052
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
8749
9053
  )
8750
9054
  )
8751
9055
  )
@@ -8769,8 +9073,8 @@ var PreviewViewportListModule = {
8769
9073
  command: "list",
8770
9074
  describe: "List preview viewports",
8771
9075
  aliases: ["ls"],
8772
- builder: (yargs44) => withConfiguration(
8773
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
9076
+ builder: (yargs45) => withConfiguration(
9077
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
8774
9078
  ),
8775
9079
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8776
9080
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8781,8 +9085,8 @@ var PreviewViewportListModule = {
8781
9085
  };
8782
9086
 
8783
9087
  // src/commands/canvas/commands/previewViewport/_util.ts
8784
- var selectIdentifier6 = (previewViewport) => previewViewport.id;
8785
- var selectDisplayName6 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
9088
+ var selectIdentifier7 = (previewViewport) => previewViewport.id;
9089
+ var selectDisplayName7 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
8786
9090
 
8787
9091
  // src/commands/canvas/previewViewportEngineDataSource.ts
8788
9092
  function createPreviewViewportEngineDataSource({
@@ -8792,8 +9096,8 @@ function createPreviewViewportEngineDataSource({
8792
9096
  const previewViewports = (await client.getPreviewViewports()).previewViewports;
8793
9097
  for await (const previewViewport of previewViewports) {
8794
9098
  const result = {
8795
- id: selectIdentifier6(previewViewport),
8796
- displayName: selectDisplayName6(previewViewport),
9099
+ id: selectIdentifier7(previewViewport),
9100
+ displayName: selectDisplayName7(previewViewport),
8797
9101
  providerId: previewViewport.id,
8798
9102
  object: previewViewport
8799
9103
  };
@@ -8816,12 +9120,12 @@ function createPreviewViewportEngineDataSource({
8816
9120
  var PreviewViewportPullModule = {
8817
9121
  command: "pull <directory>",
8818
9122
  describe: "Pulls all preview viewports to local files in a directory",
8819
- builder: (yargs44) => withConfiguration(
9123
+ builder: (yargs45) => withConfiguration(
8820
9124
  withApiOptions(
8821
9125
  withProjectOptions(
8822
9126
  withDebugOptions(
8823
9127
  withDiffOptions(
8824
- yargs44.positional("directory", {
9128
+ yargs45.positional("directory", {
8825
9129
  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.",
8826
9130
  type: "string"
8827
9131
  }).option("format", {
@@ -8865,8 +9169,8 @@ var PreviewViewportPullModule = {
8865
9169
  target = await createArraySyncEngineDataSource({
8866
9170
  name: `Package file ${directory}`,
8867
9171
  objects: packageContents.previewViewports ?? [],
8868
- selectIdentifier: selectIdentifier6,
8869
- selectDisplayName: selectDisplayName6,
9172
+ selectIdentifier: selectIdentifier7,
9173
+ selectDisplayName: selectDisplayName7,
8870
9174
  onSyncComplete: async (_, synced) => {
8871
9175
  packageContents.previewViewports = synced;
8872
9176
  writeCanvasPackage(directory, packageContents);
@@ -8875,8 +9179,8 @@ var PreviewViewportPullModule = {
8875
9179
  } else {
8876
9180
  target = await createFileSyncEngineDataSource({
8877
9181
  directory,
8878
- selectIdentifier: selectIdentifier6,
8879
- selectDisplayName: selectDisplayName6,
9182
+ selectIdentifier: selectIdentifier7,
9183
+ selectDisplayName: selectDisplayName7,
8880
9184
  format,
8881
9185
  verbose
8882
9186
  });
@@ -8896,12 +9200,12 @@ var PreviewViewportPullModule = {
8896
9200
  var PreviewViewportPushModule = {
8897
9201
  command: "push <directory>",
8898
9202
  describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
8899
- builder: (yargs44) => withConfiguration(
9203
+ builder: (yargs45) => withConfiguration(
8900
9204
  withApiOptions(
8901
9205
  withProjectOptions(
8902
9206
  withDiffOptions(
8903
9207
  withDebugOptions(
8904
- yargs44.positional("directory", {
9208
+ yargs45.positional("directory", {
8905
9209
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8906
9210
  type: "string"
8907
9211
  }).option("mode", {
@@ -8937,14 +9241,14 @@ var PreviewViewportPushModule = {
8937
9241
  source = await createArraySyncEngineDataSource({
8938
9242
  name: `Package file ${directory}`,
8939
9243
  objects: packageContents.previewViewports ?? [],
8940
- selectIdentifier: selectIdentifier6,
8941
- selectDisplayName: selectDisplayName6
9244
+ selectIdentifier: selectIdentifier7,
9245
+ selectDisplayName: selectDisplayName7
8942
9246
  });
8943
9247
  } else {
8944
9248
  source = await createFileSyncEngineDataSource({
8945
9249
  directory,
8946
- selectIdentifier: selectIdentifier6,
8947
- selectDisplayName: selectDisplayName6,
9250
+ selectIdentifier: selectIdentifier7,
9251
+ selectDisplayName: selectDisplayName7,
8948
9252
  verbose
8949
9253
  });
8950
9254
  }
@@ -8965,11 +9269,11 @@ var PreviewViewportRemoveModule = {
8965
9269
  command: "remove <id>",
8966
9270
  aliases: ["delete", "rm"],
8967
9271
  describe: "Delete a preview viewport",
8968
- builder: (yargs44) => withConfiguration(
9272
+ builder: (yargs45) => withConfiguration(
8969
9273
  withApiOptions(
8970
9274
  withDebugOptions(
8971
9275
  withProjectOptions(
8972
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
9276
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
8973
9277
  )
8974
9278
  )
8975
9279
  )
@@ -8990,11 +9294,11 @@ var PreviewViewportUpdateModule = {
8990
9294
  command: "update <filename>",
8991
9295
  aliases: ["put"],
8992
9296
  describe: "Insert or update a preview viewport",
8993
- builder: (yargs44) => withConfiguration(
9297
+ builder: (yargs45) => withConfiguration(
8994
9298
  withDebugOptions(
8995
9299
  withApiOptions(
8996
9300
  withProjectOptions(
8997
- yargs44.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9301
+ yargs45.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
8998
9302
  )
8999
9303
  )
9000
9304
  )
@@ -9016,14 +9320,14 @@ var PreviewViewportModule = {
9016
9320
  command: "preview-viewport <command>",
9017
9321
  aliases: ["pv"],
9018
9322
  describe: "Commands for Canvas preview viewports",
9019
- builder: (yargs44) => yargs44.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9323
+ builder: (yargs45) => yargs45.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9020
9324
  handler: () => {
9021
- yargs19.help();
9325
+ yargs20.help();
9022
9326
  }
9023
9327
  };
9024
9328
 
9025
9329
  // src/commands/canvas/commands/prompts.ts
9026
- import yargs20 from "yargs";
9330
+ import yargs21 from "yargs";
9027
9331
 
9028
9332
  // src/commands/canvas/commands/prompts/_util.ts
9029
9333
  import { PromptClient } from "@uniformdev/canvas";
@@ -9035,12 +9339,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
9035
9339
  var PromptGetModule = {
9036
9340
  command: "get <id>",
9037
9341
  describe: "Get a prompt",
9038
- builder: (yargs44) => withConfiguration(
9342
+ builder: (yargs45) => withConfiguration(
9039
9343
  withDebugOptions(
9040
9344
  withFormatOptions(
9041
9345
  withApiOptions(
9042
9346
  withProjectOptions(
9043
- yargs44.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9347
+ yargs45.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9044
9348
  )
9045
9349
  )
9046
9350
  )
@@ -9061,7 +9365,7 @@ var PromptGetModule = {
9061
9365
  var PromptListModule = {
9062
9366
  command: "list",
9063
9367
  describe: "List prompts",
9064
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
9368
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
9065
9369
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
9066
9370
  const fetch2 = nodeFetchProxy(proxy, verbose);
9067
9371
  const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9102,13 +9406,13 @@ function createPromptEngineDataSource({
9102
9406
  var PromptPullModule = {
9103
9407
  command: "pull <directory>",
9104
9408
  describe: "Pulls all prompts to local files in a directory",
9105
- builder: (yargs44) => withConfiguration(
9409
+ builder: (yargs45) => withConfiguration(
9106
9410
  withDebugOptions(
9107
9411
  withApiOptions(
9108
9412
  withProjectOptions(
9109
9413
  withStateOptions(
9110
9414
  withDiffOptions(
9111
- yargs44.positional("directory", {
9415
+ yargs45.positional("directory", {
9112
9416
  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.",
9113
9417
  type: "string"
9114
9418
  }).option("format", {
@@ -9189,12 +9493,12 @@ var PromptPullModule = {
9189
9493
  var PromptPushModule = {
9190
9494
  command: "push <directory>",
9191
9495
  describe: "Pushes all prompts from files in a directory to Uniform",
9192
- builder: (yargs44) => withConfiguration(
9496
+ builder: (yargs45) => withConfiguration(
9193
9497
  withApiOptions(
9194
9498
  withProjectOptions(
9195
9499
  withStateOptions(
9196
9500
  withDiffOptions(
9197
- yargs44.positional("directory", {
9501
+ yargs45.positional("directory", {
9198
9502
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
9199
9503
  type: "string"
9200
9504
  }).option("mode", {
@@ -9263,10 +9567,10 @@ var PromptRemoveModule = {
9263
9567
  command: "remove <id>",
9264
9568
  aliases: ["delete", "rm"],
9265
9569
  describe: "Delete a prompt",
9266
- builder: (yargs44) => withConfiguration(
9570
+ builder: (yargs45) => withConfiguration(
9267
9571
  withDebugOptions(
9268
9572
  withApiOptions(
9269
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9573
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9270
9574
  )
9271
9575
  )
9272
9576
  ),
@@ -9286,11 +9590,11 @@ var PromptUpdateModule = {
9286
9590
  command: "update <filename>",
9287
9591
  aliases: ["put"],
9288
9592
  describe: "Insert or update a prompt",
9289
- builder: (yargs44) => withConfiguration(
9593
+ builder: (yargs45) => withConfiguration(
9290
9594
  withDebugOptions(
9291
9595
  withApiOptions(
9292
9596
  withProjectOptions(
9293
- yargs44.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9597
+ yargs45.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9294
9598
  )
9295
9599
  )
9296
9600
  )
@@ -9311,19 +9615,19 @@ var PromptUpdateModule = {
9311
9615
  var PromptModule = {
9312
9616
  command: "prompt <command>",
9313
9617
  describe: "Commands for AI Prompt definitions",
9314
- builder: (yargs44) => yargs44.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9618
+ builder: (yargs45) => yargs45.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9315
9619
  handler: () => {
9316
- yargs20.help();
9620
+ yargs21.help();
9317
9621
  }
9318
9622
  };
9319
9623
 
9320
9624
  // src/commands/canvas/commands/workflow.ts
9321
- import yargs21 from "yargs";
9625
+ import yargs22 from "yargs";
9322
9626
 
9323
9627
  // src/commands/canvas/commands/workflow/_util.ts
9324
9628
  import { WorkflowClient } from "@uniformdev/canvas";
9325
- var selectIdentifier7 = (workflow) => workflow.id;
9326
- var selectDisplayName7 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9629
+ var selectIdentifier8 = (workflow) => workflow.id;
9630
+ var selectDisplayName8 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9327
9631
  var getWorkflowClient = (options) => new WorkflowClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9328
9632
 
9329
9633
  // src/commands/canvas/workflowEngineDataSource.ts
@@ -9341,8 +9645,8 @@ function createWorkflowEngineDataSource({
9341
9645
  for await (const workflow of workflows) {
9342
9646
  const { modified, modifiedBy, created, createdBy, ...workflowWithoutStatistics } = workflow;
9343
9647
  const result = {
9344
- id: selectIdentifier7(workflow),
9345
- displayName: selectDisplayName7(workflow),
9648
+ id: selectIdentifier8(workflow),
9649
+ displayName: selectDisplayName8(workflow),
9346
9650
  providerId: workflow.id,
9347
9651
  object: workflowWithoutStatistics
9348
9652
  };
@@ -9365,13 +9669,13 @@ function createWorkflowEngineDataSource({
9365
9669
  var WorkflowPullModule = {
9366
9670
  command: "pull <directory>",
9367
9671
  describe: "Pulls all workflows to local files in a directory",
9368
- builder: (yargs44) => withConfiguration(
9672
+ builder: (yargs45) => withConfiguration(
9369
9673
  withApiOptions(
9370
9674
  withDebugOptions(
9371
9675
  withProjectOptions(
9372
9676
  withDiffOptions(
9373
9677
  withBatchSizeOptions(
9374
- yargs44.positional("directory", {
9678
+ yargs45.positional("directory", {
9375
9679
  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.",
9376
9680
  type: "string"
9377
9681
  }).option("format", {
@@ -9422,8 +9726,8 @@ var WorkflowPullModule = {
9422
9726
  target = await createArraySyncEngineDataSource({
9423
9727
  name: `Package file ${directory}`,
9424
9728
  objects: packageContents.workflows ?? [],
9425
- selectIdentifier: selectIdentifier7,
9426
- selectDisplayName: selectDisplayName7,
9729
+ selectIdentifier: selectIdentifier8,
9730
+ selectDisplayName: selectDisplayName8,
9427
9731
  onSyncComplete: async (_, synced) => {
9428
9732
  packageContents.workflows = synced;
9429
9733
  writeCanvasPackage(directory, packageContents);
@@ -9432,8 +9736,8 @@ var WorkflowPullModule = {
9432
9736
  } else {
9433
9737
  target = await createFileSyncEngineDataSource({
9434
9738
  directory,
9435
- selectIdentifier: selectIdentifier7,
9436
- selectDisplayName: selectDisplayName7,
9739
+ selectIdentifier: selectIdentifier8,
9740
+ selectDisplayName: selectDisplayName8,
9437
9741
  format,
9438
9742
  verbose
9439
9743
  });
@@ -9453,13 +9757,13 @@ var WorkflowPullModule = {
9453
9757
  var WorkflowPushModule = {
9454
9758
  command: "push <directory>",
9455
9759
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
9456
- builder: (yargs44) => withConfiguration(
9760
+ builder: (yargs45) => withConfiguration(
9457
9761
  withDebugOptions(
9458
9762
  withApiOptions(
9459
9763
  withProjectOptions(
9460
9764
  withDiffOptions(
9461
9765
  withBatchSizeOptions(
9462
- yargs44.positional("directory", {
9766
+ yargs45.positional("directory", {
9463
9767
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
9464
9768
  type: "string"
9465
9769
  }).option("mode", {
@@ -9498,14 +9802,14 @@ var WorkflowPushModule = {
9498
9802
  source = await createArraySyncEngineDataSource({
9499
9803
  name: `Package file ${directory}`,
9500
9804
  objects: packageContents.workflows ?? [],
9501
- selectIdentifier: selectIdentifier7,
9502
- selectDisplayName: selectDisplayName7
9805
+ selectIdentifier: selectIdentifier8,
9806
+ selectDisplayName: selectDisplayName8
9503
9807
  });
9504
9808
  } else {
9505
9809
  source = await createFileSyncEngineDataSource({
9506
9810
  directory,
9507
- selectIdentifier: selectIdentifier7,
9508
- selectDisplayName: selectDisplayName7,
9811
+ selectIdentifier: selectIdentifier8,
9812
+ selectDisplayName: selectDisplayName8,
9509
9813
  verbose
9510
9814
  });
9511
9815
  }
@@ -9530,9 +9834,9 @@ var WorkflowModule = {
9530
9834
  command: "workflow <command>",
9531
9835
  aliases: ["wf"],
9532
9836
  describe: "Commands for Canvas workflows",
9533
- builder: (yargs44) => yargs44.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9837
+ builder: (yargs45) => yargs45.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9534
9838
  handler: () => {
9535
- yargs21.help();
9839
+ yargs22.help();
9536
9840
  }
9537
9841
  };
9538
9842
 
@@ -9541,33 +9845,33 @@ var CanvasCommand = {
9541
9845
  command: "canvas <command>",
9542
9846
  aliases: ["cv", "pm", "presentation"],
9543
9847
  describe: "Uniform Canvas commands",
9544
- 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(),
9848
+ 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(),
9545
9849
  handler: () => {
9546
- yargs22.showHelp();
9850
+ yargs23.showHelp();
9547
9851
  }
9548
9852
  };
9549
9853
 
9550
9854
  // src/commands/context/index.ts
9551
- import yargs29 from "yargs";
9855
+ import yargs30 from "yargs";
9552
9856
 
9553
9857
  // src/commands/context/commands/aggregate.ts
9554
- import yargs23 from "yargs";
9858
+ import yargs24 from "yargs";
9555
9859
 
9556
9860
  // src/commands/context/commands/aggregate/_util.ts
9557
9861
  import { AggregateClient } from "@uniformdev/context/api";
9558
- var selectIdentifier8 = (source) => source.id;
9559
- var selectDisplayName8 = (source) => `${source.name} (pid: ${source.id})`;
9862
+ var selectIdentifier9 = (source) => source.id;
9863
+ var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
9560
9864
  var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9561
9865
 
9562
9866
  // src/commands/context/commands/aggregate/get.ts
9563
9867
  var AggregateGetModule = {
9564
9868
  command: "get <id>",
9565
9869
  describe: "Fetch an aggregate",
9566
- builder: (yargs44) => withConfiguration(
9870
+ builder: (yargs45) => withConfiguration(
9567
9871
  withFormatOptions(
9568
9872
  withApiOptions(
9569
9873
  withProjectOptions(
9570
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9874
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9571
9875
  )
9572
9876
  )
9573
9877
  )
@@ -9590,7 +9894,7 @@ var AggregateListModule = {
9590
9894
  command: "list",
9591
9895
  describe: "List aggregates",
9592
9896
  aliases: ["ls"],
9593
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
9897
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9594
9898
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9595
9899
  const fetch2 = nodeFetchProxy(proxy);
9596
9900
  const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9608,8 +9912,8 @@ function createAggregateEngineDataSource({
9608
9912
  const aggregates = (await client.get({ type })).aggregates;
9609
9913
  for await (const def of aggregates) {
9610
9914
  const result = {
9611
- id: selectIdentifier8(def),
9612
- displayName: selectDisplayName8(def),
9915
+ id: selectIdentifier9(def),
9916
+ displayName: selectDisplayName9(def),
9613
9917
  providerId: def.id,
9614
9918
  object: def
9615
9919
  };
@@ -9653,12 +9957,12 @@ function writeContextPackage(filename, packageContents) {
9653
9957
  var AggregatePullModule = {
9654
9958
  command: "pull <directory>",
9655
9959
  describe: "Pulls all aggregates to local files in a directory",
9656
- builder: (yargs44) => withConfiguration(
9960
+ builder: (yargs45) => withConfiguration(
9657
9961
  withApiOptions(
9658
9962
  withDebugOptions(
9659
9963
  withProjectOptions(
9660
9964
  withDiffOptions(
9661
- yargs44.positional("directory", {
9965
+ yargs45.positional("directory", {
9662
9966
  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.",
9663
9967
  type: "string"
9664
9968
  }).option("format", {
@@ -9702,8 +10006,8 @@ var AggregatePullModule = {
9702
10006
  target = await createArraySyncEngineDataSource({
9703
10007
  name: `Package file ${directory}`,
9704
10008
  objects: packageContents.aggregates ?? [],
9705
- selectIdentifier: selectIdentifier8,
9706
- selectDisplayName: selectDisplayName8,
10009
+ selectIdentifier: selectIdentifier9,
10010
+ selectDisplayName: selectDisplayName9,
9707
10011
  onSyncComplete: async (_, synced) => {
9708
10012
  packageContents.aggregates = synced;
9709
10013
  writeContextPackage(directory, packageContents);
@@ -9712,8 +10016,8 @@ var AggregatePullModule = {
9712
10016
  } else {
9713
10017
  target = await createFileSyncEngineDataSource({
9714
10018
  directory,
9715
- selectIdentifier: selectIdentifier8,
9716
- selectDisplayName: selectDisplayName8,
10019
+ selectIdentifier: selectIdentifier9,
10020
+ selectDisplayName: selectDisplayName9,
9717
10021
  format,
9718
10022
  verbose
9719
10023
  });
@@ -9733,12 +10037,12 @@ var AggregatePullModule = {
9733
10037
  var AggregatePushModule = {
9734
10038
  command: "push <directory>",
9735
10039
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
9736
- builder: (yargs44) => withConfiguration(
10040
+ builder: (yargs45) => withConfiguration(
9737
10041
  withApiOptions(
9738
10042
  withProjectOptions(
9739
10043
  withDiffOptions(
9740
10044
  withDebugOptions(
9741
- yargs44.positional("directory", {
10045
+ yargs45.positional("directory", {
9742
10046
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
9743
10047
  type: "string"
9744
10048
  }).option("mode", {
@@ -9774,14 +10078,14 @@ var AggregatePushModule = {
9774
10078
  source = await createArraySyncEngineDataSource({
9775
10079
  name: `Package file ${directory}`,
9776
10080
  objects: packageContents.aggregates ?? [],
9777
- selectIdentifier: selectIdentifier8,
9778
- selectDisplayName: selectDisplayName8
10081
+ selectIdentifier: selectIdentifier9,
10082
+ selectDisplayName: selectDisplayName9
9779
10083
  });
9780
10084
  } else {
9781
10085
  source = await createFileSyncEngineDataSource({
9782
10086
  directory,
9783
- selectIdentifier: selectIdentifier8,
9784
- selectDisplayName: selectDisplayName8,
10087
+ selectIdentifier: selectIdentifier9,
10088
+ selectDisplayName: selectDisplayName9,
9785
10089
  verbose
9786
10090
  });
9787
10091
  }
@@ -9803,10 +10107,10 @@ var AggregateRemoveModule = {
9803
10107
  command: "remove <id>",
9804
10108
  aliases: ["delete", "rm"],
9805
10109
  describe: "Delete an aggregate",
9806
- builder: (yargs44) => withConfiguration(
10110
+ builder: (yargs45) => withConfiguration(
9807
10111
  withApiOptions(
9808
10112
  withProjectOptions(
9809
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
10113
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
9810
10114
  )
9811
10115
  )
9812
10116
  ),
@@ -9822,10 +10126,10 @@ var AggregateUpdateModule = {
9822
10126
  command: "update <filename>",
9823
10127
  aliases: ["put"],
9824
10128
  describe: "Insert or update an aggregate",
9825
- builder: (yargs44) => withConfiguration(
10129
+ builder: (yargs45) => withConfiguration(
9826
10130
  withApiOptions(
9827
10131
  withProjectOptions(
9828
- yargs44.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
10132
+ yargs45.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
9829
10133
  )
9830
10134
  )
9831
10135
  ),
@@ -9842,19 +10146,19 @@ var AggregateModule = {
9842
10146
  command: "aggregate <command>",
9843
10147
  aliases: ["agg", "intent", "audience"],
9844
10148
  describe: "Commands for Context aggregates (intents, audiences)",
9845
- builder: (yargs44) => yargs44.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
10149
+ builder: (yargs45) => yargs45.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
9846
10150
  handler: () => {
9847
- yargs23.help();
10151
+ yargs24.help();
9848
10152
  }
9849
10153
  };
9850
10154
 
9851
10155
  // src/commands/context/commands/enrichment.ts
9852
- import yargs24 from "yargs";
10156
+ import yargs25 from "yargs";
9853
10157
 
9854
10158
  // src/commands/context/commands/enrichment/_util.ts
9855
10159
  import { EnrichmentClient } from "@uniformdev/context/api";
9856
- var selectIdentifier9 = (source) => source.id;
9857
- var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
10160
+ var selectIdentifier10 = (source) => source.id;
10161
+ var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
9858
10162
  function getEnrichmentClient(options) {
9859
10163
  return new EnrichmentClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
9860
10164
  }
@@ -9863,11 +10167,11 @@ function getEnrichmentClient(options) {
9863
10167
  var EnrichmentGetModule = {
9864
10168
  command: "get <id>",
9865
10169
  describe: "Fetch an enrichment category and its values",
9866
- builder: (yargs44) => withFormatOptions(
10170
+ builder: (yargs45) => withFormatOptions(
9867
10171
  withConfiguration(
9868
10172
  withApiOptions(
9869
10173
  withProjectOptions(
9870
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
10174
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
9871
10175
  )
9872
10176
  )
9873
10177
  )
@@ -9890,7 +10194,7 @@ var EnrichmentListModule = {
9890
10194
  command: "list",
9891
10195
  describe: "List enrichments",
9892
10196
  aliases: ["ls"],
9893
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10197
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9894
10198
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9895
10199
  const fetch2 = nodeFetchProxy(proxy);
9896
10200
  const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9907,8 +10211,8 @@ function createEnrichmentEngineDataSource({
9907
10211
  const enrichments = (await client.get()).enrichments;
9908
10212
  for await (const def of enrichments) {
9909
10213
  const result = {
9910
- id: selectIdentifier9(def),
9911
- displayName: selectDisplayName9(def),
10214
+ id: selectIdentifier10(def),
10215
+ displayName: selectDisplayName10(def),
9912
10216
  providerId: def.id,
9913
10217
  object: def
9914
10218
  };
@@ -9985,12 +10289,12 @@ var createEnrichmentValueEngineDataSource = ({
9985
10289
  var EnrichmentPullModule = {
9986
10290
  command: "pull <directory>",
9987
10291
  describe: "Pulls all enrichments to local files in a directory",
9988
- builder: (yargs44) => withConfiguration(
10292
+ builder: (yargs45) => withConfiguration(
9989
10293
  withDebugOptions(
9990
10294
  withApiOptions(
9991
10295
  withProjectOptions(
9992
10296
  withDiffOptions(
9993
- yargs44.positional("directory", {
10297
+ yargs45.positional("directory", {
9994
10298
  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.",
9995
10299
  type: "string"
9996
10300
  }).option("format", {
@@ -10034,8 +10338,8 @@ var EnrichmentPullModule = {
10034
10338
  target = await createArraySyncEngineDataSource({
10035
10339
  name: `Package file ${directory}`,
10036
10340
  objects: packageContents.enrichments ?? [],
10037
- selectIdentifier: selectIdentifier9,
10038
- selectDisplayName: selectDisplayName9,
10341
+ selectIdentifier: selectIdentifier10,
10342
+ selectDisplayName: selectDisplayName10,
10039
10343
  onSyncComplete: async (_, synced) => {
10040
10344
  packageContents.enrichments = synced;
10041
10345
  writeContextPackage(directory, packageContents);
@@ -10044,8 +10348,8 @@ var EnrichmentPullModule = {
10044
10348
  } else {
10045
10349
  target = await createFileSyncEngineDataSource({
10046
10350
  directory,
10047
- selectIdentifier: selectIdentifier9,
10048
- selectDisplayName: selectDisplayName9,
10351
+ selectIdentifier: selectIdentifier10,
10352
+ selectDisplayName: selectDisplayName10,
10049
10353
  format,
10050
10354
  verbose
10051
10355
  });
@@ -10065,11 +10369,11 @@ var EnrichmentPullModule = {
10065
10369
  var EnrichmentPushModule = {
10066
10370
  command: "push <directory>",
10067
10371
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
10068
- builder: (yargs44) => withConfiguration(
10372
+ builder: (yargs45) => withConfiguration(
10069
10373
  withApiOptions(
10070
10374
  withProjectOptions(
10071
10375
  withDiffOptions(
10072
- yargs44.positional("directory", {
10376
+ yargs45.positional("directory", {
10073
10377
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
10074
10378
  type: "string"
10075
10379
  }).option("mode", {
@@ -10104,14 +10408,14 @@ var EnrichmentPushModule = {
10104
10408
  source = await createArraySyncEngineDataSource({
10105
10409
  name: `Package file ${directory}`,
10106
10410
  objects: packageContents.enrichments ?? [],
10107
- selectIdentifier: selectIdentifier9,
10108
- selectDisplayName: selectDisplayName9
10411
+ selectIdentifier: selectIdentifier10,
10412
+ selectDisplayName: selectDisplayName10
10109
10413
  });
10110
10414
  } else {
10111
10415
  source = await createFileSyncEngineDataSource({
10112
10416
  directory,
10113
- selectIdentifier: selectIdentifier9,
10114
- selectDisplayName: selectDisplayName9,
10417
+ selectIdentifier: selectIdentifier10,
10418
+ selectDisplayName: selectDisplayName10,
10115
10419
  verbose
10116
10420
  });
10117
10421
  }
@@ -10132,10 +10436,10 @@ var EnrichmentRemoveModule = {
10132
10436
  command: "remove <id>",
10133
10437
  aliases: ["delete", "rm"],
10134
10438
  describe: "Delete an enrichment category and its values",
10135
- builder: (yargs44) => withConfiguration(
10439
+ builder: (yargs45) => withConfiguration(
10136
10440
  withApiOptions(
10137
10441
  withProjectOptions(
10138
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10442
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10139
10443
  )
10140
10444
  )
10141
10445
  ),
@@ -10151,14 +10455,14 @@ var EnrichmentModule = {
10151
10455
  command: "enrichment <command>",
10152
10456
  aliases: ["enr"],
10153
10457
  describe: "Commands for Context enrichments",
10154
- builder: (yargs44) => yargs44.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10458
+ builder: (yargs45) => yargs45.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10155
10459
  handler: () => {
10156
- yargs24.help();
10460
+ yargs25.help();
10157
10461
  }
10158
10462
  };
10159
10463
 
10160
10464
  // src/commands/context/commands/manifest.ts
10161
- import yargs25 from "yargs";
10465
+ import yargs26 from "yargs";
10162
10466
 
10163
10467
  // src/commands/context/commands/manifest/get.ts
10164
10468
  import { ApiClientError as ApiClientError5, ManifestClient } from "@uniformdev/context/api";
@@ -10169,10 +10473,10 @@ var ManifestGetModule = {
10169
10473
  command: "get [output]",
10170
10474
  aliases: ["dl", "download"],
10171
10475
  describe: "Download the Uniform Context manifest for a project",
10172
- builder: (yargs44) => withConfiguration(
10476
+ builder: (yargs45) => withConfiguration(
10173
10477
  withApiOptions(
10174
10478
  withProjectOptions(
10175
- yargs44.option("preview", {
10479
+ yargs45.option("preview", {
10176
10480
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
10177
10481
  default: false,
10178
10482
  type: "boolean",
@@ -10235,7 +10539,7 @@ import { exit as exit2 } from "process";
10235
10539
  var ManifestPublishModule = {
10236
10540
  command: "publish",
10237
10541
  describe: "Publish the Uniform Context manifest for a project",
10238
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
10542
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
10239
10543
  handler: async ({ apiKey, apiHost, proxy, project }) => {
10240
10544
  const fetch2 = nodeFetchProxy(proxy);
10241
10545
  try {
@@ -10269,25 +10573,25 @@ var ManifestModule = {
10269
10573
  command: "manifest <command>",
10270
10574
  describe: "Commands for context manifests",
10271
10575
  aliases: ["man"],
10272
- builder: (yargs44) => yargs44.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10576
+ builder: (yargs45) => yargs45.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10273
10577
  handler: () => {
10274
- yargs25.help();
10578
+ yargs26.help();
10275
10579
  }
10276
10580
  };
10277
10581
 
10278
10582
  // src/commands/context/commands/quirk.ts
10279
- import yargs26 from "yargs";
10583
+ import yargs27 from "yargs";
10280
10584
 
10281
10585
  // src/commands/context/commands/quirk/get.ts
10282
10586
  import { QuirkClient } from "@uniformdev/context/api";
10283
10587
  var QuirkGetModule = {
10284
10588
  command: "get <id>",
10285
10589
  describe: "Fetch a quirk",
10286
- builder: (yargs44) => withConfiguration(
10590
+ builder: (yargs45) => withConfiguration(
10287
10591
  withFormatOptions(
10288
10592
  withApiOptions(
10289
10593
  withProjectOptions(
10290
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10594
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10291
10595
  )
10292
10596
  )
10293
10597
  )
@@ -10311,11 +10615,11 @@ var QuirkListModule = {
10311
10615
  command: "list",
10312
10616
  describe: "List quirks",
10313
10617
  aliases: ["ls"],
10314
- builder: (yargs44) => withConfiguration(
10618
+ builder: (yargs45) => withConfiguration(
10315
10619
  withFormatOptions(
10316
10620
  withApiOptions(
10317
10621
  withProjectOptions(
10318
- yargs44.option("withIntegrations", {
10622
+ yargs45.option("withIntegrations", {
10319
10623
  alias: ["i"],
10320
10624
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
10321
10625
  type: "boolean"
@@ -10336,8 +10640,8 @@ var QuirkListModule = {
10336
10640
  import { QuirkClient as QuirkClient3 } from "@uniformdev/context/api";
10337
10641
 
10338
10642
  // src/commands/context/commands/quirk/_util.ts
10339
- var selectIdentifier10 = (source) => source.id;
10340
- var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
10643
+ var selectIdentifier11 = (source) => source.id;
10644
+ var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10341
10645
 
10342
10646
  // src/commands/context/quirkEngineDataSource.ts
10343
10647
  function createQuirkEngineDataSource({
@@ -10347,8 +10651,8 @@ function createQuirkEngineDataSource({
10347
10651
  const quirks = (await client.get({ withIntegrations: false })).quirks;
10348
10652
  for await (const def of quirks) {
10349
10653
  const result = {
10350
- id: selectIdentifier10(def),
10351
- displayName: selectDisplayName10(def),
10654
+ id: selectIdentifier11(def),
10655
+ displayName: selectDisplayName11(def),
10352
10656
  providerId: def.id,
10353
10657
  object: def
10354
10658
  };
@@ -10373,12 +10677,12 @@ function createQuirkEngineDataSource({
10373
10677
  var QuirkPullModule = {
10374
10678
  command: "pull <directory>",
10375
10679
  describe: "Pulls all quirks to local files in a directory",
10376
- builder: (yargs44) => withConfiguration(
10680
+ builder: (yargs45) => withConfiguration(
10377
10681
  withDebugOptions(
10378
10682
  withApiOptions(
10379
10683
  withProjectOptions(
10380
10684
  withDiffOptions(
10381
- yargs44.positional("directory", {
10685
+ yargs45.positional("directory", {
10382
10686
  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.",
10383
10687
  type: "string"
10384
10688
  }).option("format", {
@@ -10422,8 +10726,8 @@ var QuirkPullModule = {
10422
10726
  target = await createArraySyncEngineDataSource({
10423
10727
  name: `Package file ${directory}`,
10424
10728
  objects: packageContents.quirks ?? [],
10425
- selectIdentifier: selectIdentifier10,
10426
- selectDisplayName: selectDisplayName10,
10729
+ selectIdentifier: selectIdentifier11,
10730
+ selectDisplayName: selectDisplayName11,
10427
10731
  onSyncComplete: async (_, synced) => {
10428
10732
  packageContents.quirks = synced;
10429
10733
  writeContextPackage(directory, packageContents);
@@ -10432,8 +10736,8 @@ var QuirkPullModule = {
10432
10736
  } else {
10433
10737
  target = await createFileSyncEngineDataSource({
10434
10738
  directory,
10435
- selectIdentifier: selectIdentifier10,
10436
- selectDisplayName: selectDisplayName10,
10739
+ selectIdentifier: selectIdentifier11,
10740
+ selectDisplayName: selectDisplayName11,
10437
10741
  format,
10438
10742
  verbose
10439
10743
  });
@@ -10454,12 +10758,12 @@ import { QuirkClient as QuirkClient4 } from "@uniformdev/context/api";
10454
10758
  var QuirkPushModule = {
10455
10759
  command: "push <directory>",
10456
10760
  describe: "Pushes all quirks from files in a directory or package to Uniform",
10457
- builder: (yargs44) => withConfiguration(
10761
+ builder: (yargs45) => withConfiguration(
10458
10762
  withDebugOptions(
10459
10763
  withApiOptions(
10460
10764
  withProjectOptions(
10461
10765
  withDiffOptions(
10462
- yargs44.positional("directory", {
10766
+ yargs45.positional("directory", {
10463
10767
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
10464
10768
  type: "string"
10465
10769
  }).option("mode", {
@@ -10495,14 +10799,14 @@ var QuirkPushModule = {
10495
10799
  source = await createArraySyncEngineDataSource({
10496
10800
  name: `Package file ${directory}`,
10497
10801
  objects: packageContents.quirks ?? [],
10498
- selectIdentifier: selectIdentifier10,
10499
- selectDisplayName: selectDisplayName10
10802
+ selectIdentifier: selectIdentifier11,
10803
+ selectDisplayName: selectDisplayName11
10500
10804
  });
10501
10805
  } else {
10502
10806
  source = await createFileSyncEngineDataSource({
10503
10807
  directory,
10504
- selectIdentifier: selectIdentifier10,
10505
- selectDisplayName: selectDisplayName10,
10808
+ selectIdentifier: selectIdentifier11,
10809
+ selectDisplayName: selectDisplayName11,
10506
10810
  verbose
10507
10811
  });
10508
10812
  }
@@ -10524,10 +10828,10 @@ var QuirkRemoveModule = {
10524
10828
  command: "remove <id>",
10525
10829
  aliases: ["delete", "rm"],
10526
10830
  describe: "Delete a quirk",
10527
- builder: (yargs44) => withConfiguration(
10831
+ builder: (yargs45) => withConfiguration(
10528
10832
  withApiOptions(
10529
10833
  withProjectOptions(
10530
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10834
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10531
10835
  )
10532
10836
  )
10533
10837
  ),
@@ -10544,10 +10848,10 @@ var QuirkUpdateModule = {
10544
10848
  command: "update <filename>",
10545
10849
  aliases: ["put"],
10546
10850
  describe: "Insert or update a quirk",
10547
- builder: (yargs44) => withConfiguration(
10851
+ builder: (yargs45) => withConfiguration(
10548
10852
  withApiOptions(
10549
10853
  withProjectOptions(
10550
- yargs44.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10854
+ yargs45.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10551
10855
  )
10552
10856
  )
10553
10857
  ),
@@ -10564,25 +10868,25 @@ var QuirkModule = {
10564
10868
  command: "quirk <command>",
10565
10869
  aliases: ["qk"],
10566
10870
  describe: "Commands for Context quirks",
10567
- builder: (yargs44) => yargs44.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10871
+ builder: (yargs45) => yargs45.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10568
10872
  handler: () => {
10569
- yargs26.help();
10873
+ yargs27.help();
10570
10874
  }
10571
10875
  };
10572
10876
 
10573
10877
  // src/commands/context/commands/signal.ts
10574
- import yargs27 from "yargs";
10878
+ import yargs28 from "yargs";
10575
10879
 
10576
10880
  // src/commands/context/commands/signal/get.ts
10577
10881
  import { SignalClient } from "@uniformdev/context/api";
10578
10882
  var SignalGetModule = {
10579
10883
  command: "get <id>",
10580
10884
  describe: "Fetch a signal",
10581
- builder: (yargs44) => withConfiguration(
10885
+ builder: (yargs45) => withConfiguration(
10582
10886
  withFormatOptions(
10583
10887
  withApiOptions(
10584
10888
  withProjectOptions(
10585
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10889
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10586
10890
  )
10587
10891
  )
10588
10892
  )
@@ -10606,7 +10910,7 @@ var SignalListModule = {
10606
10910
  command: "list",
10607
10911
  describe: "List signals",
10608
10912
  aliases: ["ls"],
10609
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10913
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10610
10914
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10611
10915
  const fetch2 = nodeFetchProxy(proxy);
10612
10916
  const client = new SignalClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10619,8 +10923,8 @@ var SignalListModule = {
10619
10923
  import { SignalClient as SignalClient3 } from "@uniformdev/context/api";
10620
10924
 
10621
10925
  // src/commands/context/commands/signal/_util.ts
10622
- var selectIdentifier11 = (source) => source.id;
10623
- var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10926
+ var selectIdentifier12 = (source) => source.id;
10927
+ var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
10624
10928
 
10625
10929
  // src/commands/context/signalEngineDataSource.ts
10626
10930
  function createSignalEngineDataSource({
@@ -10630,8 +10934,8 @@ function createSignalEngineDataSource({
10630
10934
  const signals = (await client.get()).signals;
10631
10935
  for await (const def of signals) {
10632
10936
  const result = {
10633
- id: selectIdentifier11(def),
10634
- displayName: selectDisplayName11(def),
10937
+ id: selectIdentifier12(def),
10938
+ displayName: selectDisplayName12(def),
10635
10939
  providerId: def.id,
10636
10940
  object: def
10637
10941
  };
@@ -10656,12 +10960,12 @@ function createSignalEngineDataSource({
10656
10960
  var SignalPullModule = {
10657
10961
  command: "pull <directory>",
10658
10962
  describe: "Pulls all signals to local files in a directory",
10659
- builder: (yargs44) => withConfiguration(
10963
+ builder: (yargs45) => withConfiguration(
10660
10964
  withDebugOptions(
10661
10965
  withApiOptions(
10662
10966
  withProjectOptions(
10663
10967
  withDiffOptions(
10664
- yargs44.positional("directory", {
10968
+ yargs45.positional("directory", {
10665
10969
  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.",
10666
10970
  type: "string"
10667
10971
  }).option("format", {
@@ -10705,8 +11009,8 @@ var SignalPullModule = {
10705
11009
  target = await createArraySyncEngineDataSource({
10706
11010
  name: `Package file ${directory}`,
10707
11011
  objects: packageContents.signals ?? [],
10708
- selectIdentifier: selectIdentifier11,
10709
- selectDisplayName: selectDisplayName11,
11012
+ selectIdentifier: selectIdentifier12,
11013
+ selectDisplayName: selectDisplayName12,
10710
11014
  onSyncComplete: async (_, synced) => {
10711
11015
  packageContents.signals = synced;
10712
11016
  writeContextPackage(directory, packageContents);
@@ -10715,8 +11019,8 @@ var SignalPullModule = {
10715
11019
  } else {
10716
11020
  target = await createFileSyncEngineDataSource({
10717
11021
  directory,
10718
- selectIdentifier: selectIdentifier11,
10719
- selectDisplayName: selectDisplayName11,
11022
+ selectIdentifier: selectIdentifier12,
11023
+ selectDisplayName: selectDisplayName12,
10720
11024
  format,
10721
11025
  verbose
10722
11026
  });
@@ -10737,12 +11041,12 @@ import { SignalClient as SignalClient4 } from "@uniformdev/context/api";
10737
11041
  var SignalPushModule = {
10738
11042
  command: "push <directory>",
10739
11043
  describe: "Pushes all signals from files in a directory or package to Uniform",
10740
- builder: (yargs44) => withConfiguration(
11044
+ builder: (yargs45) => withConfiguration(
10741
11045
  withDebugOptions(
10742
11046
  withApiOptions(
10743
11047
  withProjectOptions(
10744
11048
  withDiffOptions(
10745
- yargs44.positional("directory", {
11049
+ yargs45.positional("directory", {
10746
11050
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
10747
11051
  type: "string"
10748
11052
  }).option("mode", {
@@ -10778,14 +11082,14 @@ var SignalPushModule = {
10778
11082
  source = await createArraySyncEngineDataSource({
10779
11083
  name: `Package file ${directory}`,
10780
11084
  objects: packageContents.signals ?? [],
10781
- selectIdentifier: selectIdentifier11,
10782
- selectDisplayName: selectDisplayName11
11085
+ selectIdentifier: selectIdentifier12,
11086
+ selectDisplayName: selectDisplayName12
10783
11087
  });
10784
11088
  } else {
10785
11089
  source = await createFileSyncEngineDataSource({
10786
11090
  directory,
10787
- selectIdentifier: selectIdentifier11,
10788
- selectDisplayName: selectDisplayName11,
11091
+ selectIdentifier: selectIdentifier12,
11092
+ selectDisplayName: selectDisplayName12,
10789
11093
  verbose
10790
11094
  });
10791
11095
  }
@@ -10807,10 +11111,10 @@ var SignalRemoveModule = {
10807
11111
  command: "remove <id>",
10808
11112
  aliases: ["delete", "rm"],
10809
11113
  describe: "Delete a signal",
10810
- builder: (yargs44) => withConfiguration(
11114
+ builder: (yargs45) => withConfiguration(
10811
11115
  withApiOptions(
10812
11116
  withProjectOptions(
10813
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
11117
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
10814
11118
  )
10815
11119
  )
10816
11120
  ),
@@ -10827,10 +11131,10 @@ var SignalUpdateModule = {
10827
11131
  command: "update <filename>",
10828
11132
  aliases: ["put"],
10829
11133
  describe: "Insert or update a signal",
10830
- builder: (yargs44) => withConfiguration(
11134
+ builder: (yargs45) => withConfiguration(
10831
11135
  withApiOptions(
10832
11136
  withProjectOptions(
10833
- yargs44.positional("filename", { demandOption: true, describe: "Signal file to put" })
11137
+ yargs45.positional("filename", { demandOption: true, describe: "Signal file to put" })
10834
11138
  )
10835
11139
  )
10836
11140
  ),
@@ -10847,25 +11151,25 @@ var SignalModule = {
10847
11151
  command: "signal <command>",
10848
11152
  aliases: ["sig"],
10849
11153
  describe: "Commands for Context signals",
10850
- builder: (yargs44) => yargs44.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
11154
+ builder: (yargs45) => yargs45.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
10851
11155
  handler: () => {
10852
- yargs27.help();
11156
+ yargs28.help();
10853
11157
  }
10854
11158
  };
10855
11159
 
10856
11160
  // src/commands/context/commands/test.ts
10857
- import yargs28 from "yargs";
11161
+ import yargs29 from "yargs";
10858
11162
 
10859
11163
  // src/commands/context/commands/test/get.ts
10860
11164
  import { TestClient } from "@uniformdev/context/api";
10861
11165
  var TestGetModule = {
10862
11166
  command: "get <id>",
10863
11167
  describe: "Fetch a test",
10864
- builder: (yargs44) => withConfiguration(
11168
+ builder: (yargs45) => withConfiguration(
10865
11169
  withFormatOptions(
10866
11170
  withApiOptions(
10867
11171
  withProjectOptions(
10868
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
11172
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
10869
11173
  )
10870
11174
  )
10871
11175
  )
@@ -10889,7 +11193,7 @@ var TestListModule = {
10889
11193
  command: "list",
10890
11194
  describe: "List tests",
10891
11195
  aliases: ["ls"],
10892
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
11196
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10893
11197
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10894
11198
  const fetch2 = nodeFetchProxy(proxy);
10895
11199
  const client = new TestClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10902,8 +11206,8 @@ var TestListModule = {
10902
11206
  import { TestClient as TestClient3 } from "@uniformdev/context/api";
10903
11207
 
10904
11208
  // src/commands/context/commands/test/_util.ts
10905
- var selectIdentifier12 = (source) => source.id;
10906
- var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
11209
+ var selectIdentifier13 = (source) => source.id;
11210
+ var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
10907
11211
 
10908
11212
  // src/commands/context/testEngineDataSource.ts
10909
11213
  function createTestEngineDataSource({
@@ -10913,8 +11217,8 @@ function createTestEngineDataSource({
10913
11217
  const tests = (await client.get()).tests;
10914
11218
  for await (const def of tests) {
10915
11219
  const result = {
10916
- id: selectIdentifier12(def),
10917
- displayName: selectDisplayName12(def),
11220
+ id: selectIdentifier13(def),
11221
+ displayName: selectDisplayName13(def),
10918
11222
  providerId: def.id,
10919
11223
  object: def
10920
11224
  };
@@ -10939,12 +11243,12 @@ function createTestEngineDataSource({
10939
11243
  var TestPullModule = {
10940
11244
  command: "pull <directory>",
10941
11245
  describe: "Pulls all tests to local files in a directory",
10942
- builder: (yargs44) => withConfiguration(
11246
+ builder: (yargs45) => withConfiguration(
10943
11247
  withDebugOptions(
10944
11248
  withApiOptions(
10945
11249
  withProjectOptions(
10946
11250
  withDiffOptions(
10947
- yargs44.positional("directory", {
11251
+ yargs45.positional("directory", {
10948
11252
  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.",
10949
11253
  type: "string"
10950
11254
  }).option("format", {
@@ -10988,8 +11292,8 @@ var TestPullModule = {
10988
11292
  target = await createArraySyncEngineDataSource({
10989
11293
  name: `Package file ${directory}`,
10990
11294
  objects: packageContents.tests ?? [],
10991
- selectIdentifier: selectIdentifier12,
10992
- selectDisplayName: selectDisplayName12,
11295
+ selectIdentifier: selectIdentifier13,
11296
+ selectDisplayName: selectDisplayName13,
10993
11297
  onSyncComplete: async (_, synced) => {
10994
11298
  packageContents.tests = synced;
10995
11299
  writeContextPackage(directory, packageContents);
@@ -10998,8 +11302,8 @@ var TestPullModule = {
10998
11302
  } else {
10999
11303
  target = await createFileSyncEngineDataSource({
11000
11304
  directory,
11001
- selectIdentifier: selectIdentifier12,
11002
- selectDisplayName: selectDisplayName12,
11305
+ selectIdentifier: selectIdentifier13,
11306
+ selectDisplayName: selectDisplayName13,
11003
11307
  format,
11004
11308
  verbose
11005
11309
  });
@@ -11020,12 +11324,12 @@ import { TestClient as TestClient4 } from "@uniformdev/context/api";
11020
11324
  var TestPushModule = {
11021
11325
  command: "push <directory>",
11022
11326
  describe: "Pushes all tests from files in a directory or package to Uniform",
11023
- builder: (yargs44) => withConfiguration(
11327
+ builder: (yargs45) => withConfiguration(
11024
11328
  withDebugOptions(
11025
11329
  withApiOptions(
11026
11330
  withProjectOptions(
11027
11331
  withDiffOptions(
11028
- yargs44.positional("directory", {
11332
+ yargs45.positional("directory", {
11029
11333
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
11030
11334
  type: "string"
11031
11335
  }).option("mode", {
@@ -11061,14 +11365,14 @@ var TestPushModule = {
11061
11365
  source = await createArraySyncEngineDataSource({
11062
11366
  name: `Package file ${directory}`,
11063
11367
  objects: packageContents.tests ?? [],
11064
- selectIdentifier: selectIdentifier12,
11065
- selectDisplayName: selectDisplayName12
11368
+ selectIdentifier: selectIdentifier13,
11369
+ selectDisplayName: selectDisplayName13
11066
11370
  });
11067
11371
  } else {
11068
11372
  source = await createFileSyncEngineDataSource({
11069
11373
  directory,
11070
- selectIdentifier: selectIdentifier12,
11071
- selectDisplayName: selectDisplayName12,
11374
+ selectIdentifier: selectIdentifier13,
11375
+ selectDisplayName: selectDisplayName13,
11072
11376
  verbose
11073
11377
  });
11074
11378
  }
@@ -11090,10 +11394,10 @@ var TestRemoveModule = {
11090
11394
  command: "remove <id>",
11091
11395
  aliases: ["delete", "rm"],
11092
11396
  describe: "Delete a test",
11093
- builder: (yargs44) => withConfiguration(
11397
+ builder: (yargs45) => withConfiguration(
11094
11398
  withApiOptions(
11095
11399
  withProjectOptions(
11096
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11400
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11097
11401
  )
11098
11402
  )
11099
11403
  ),
@@ -11110,9 +11414,9 @@ var TestUpdateModule = {
11110
11414
  command: "update <filename>",
11111
11415
  aliases: ["put"],
11112
11416
  describe: "Insert or update a test",
11113
- builder: (yargs44) => withConfiguration(
11417
+ builder: (yargs45) => withConfiguration(
11114
11418
  withApiOptions(
11115
- withProjectOptions(yargs44.positional("filename", { demandOption: true, describe: "Test file to put" }))
11419
+ withProjectOptions(yargs45.positional("filename", { demandOption: true, describe: "Test file to put" }))
11116
11420
  )
11117
11421
  ),
11118
11422
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -11127,9 +11431,9 @@ var TestUpdateModule = {
11127
11431
  var TestModule = {
11128
11432
  command: "test <command>",
11129
11433
  describe: "Commands for Context A/B tests",
11130
- builder: (yargs44) => yargs44.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11434
+ builder: (yargs45) => yargs45.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11131
11435
  handler: () => {
11132
- yargs28.help();
11436
+ yargs29.help();
11133
11437
  }
11134
11438
  };
11135
11439
 
@@ -11138,29 +11442,29 @@ var ContextCommand = {
11138
11442
  command: "context <command>",
11139
11443
  aliases: ["ctx"],
11140
11444
  describe: "Uniform Context commands",
11141
- builder: (yargs44) => yargs44.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11445
+ builder: (yargs45) => yargs45.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11142
11446
  handler: () => {
11143
- yargs29.showHelp();
11447
+ yargs30.showHelp();
11144
11448
  }
11145
11449
  };
11146
11450
 
11147
11451
  // src/commands/integration/index.ts
11148
- import yargs34 from "yargs";
11452
+ import yargs35 from "yargs";
11149
11453
 
11150
11454
  // src/commands/integration/commands/definition.ts
11151
- import yargs33 from "yargs";
11455
+ import yargs34 from "yargs";
11152
11456
 
11153
11457
  // src/commands/integration/commands/definition/dataResourceEditor/dataResourceEditor.ts
11154
- import yargs30 from "yargs";
11458
+ import yargs31 from "yargs";
11155
11459
 
11156
11460
  // src/commands/integration/commands/definition/dataResourceEditor/deploy.ts
11157
11461
  import { readFileSync as readFileSync3 } from "fs";
11158
11462
 
11159
11463
  // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
11160
11464
  import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
11161
- import { ApiClient } from "@uniformdev/context/api";
11465
+ import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11162
11466
  var ENDPOINT = "/api/v1/integration-edgehancers";
11163
- var EdgehancerClient = class extends ApiClient {
11467
+ var EdgehancerClient = class extends ApiClient2 {
11164
11468
  constructor(options) {
11165
11469
  if (!options.limitPolicy) {
11166
11470
  options.limitPolicy = createLimitPolicy2({});
@@ -11189,8 +11493,8 @@ var EdgehancerClient = class extends ApiClient {
11189
11493
  };
11190
11494
 
11191
11495
  // src/commands/integration/commands/definition/dataResourceEditor/util.ts
11192
- function withDataResourceEditorIdOptions(yargs44) {
11193
- return yargs44.option("connectorType", {
11496
+ function withDataResourceEditorIdOptions(yargs45) {
11497
+ return yargs45.option("connectorType", {
11194
11498
  describe: "Integration data connector type to attach the data resource editor to, as defined in the integration manifest file.",
11195
11499
  demandOption: true,
11196
11500
  type: "string"
@@ -11210,11 +11514,11 @@ function withDataResourceEditorIdOptions(yargs44) {
11210
11514
  var IntegrationDataResourceEditorDeployModule = {
11211
11515
  command: "deploy <filename>",
11212
11516
  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.",
11213
- builder: (yargs44) => withConfiguration(
11517
+ builder: (yargs45) => withConfiguration(
11214
11518
  withApiOptions(
11215
11519
  withTeamOptions(
11216
11520
  withDataResourceEditorIdOptions(
11217
- yargs44.positional("filename", {
11521
+ yargs45.positional("filename", {
11218
11522
  demandOption: true,
11219
11523
  describe: "ESM code file to run for the target data resource editor hook. Refer to the documentation for expected types."
11220
11524
  }).option("compatibilityDate", {
@@ -11257,7 +11561,7 @@ var IntegrationDataResourceEditorDeployModule = {
11257
11561
  var IntegrationDataResourceEditorRemoveModule = {
11258
11562
  command: "remove",
11259
11563
  describe: "Removes a custom AI data resource editor hook from a data resource archetype. The API key used must have team admin permissions.",
11260
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs44)))),
11564
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs45)))),
11261
11565
  handler: async ({ apiHost, apiKey, proxy, team: teamId, connectorType, archetype, hook }) => {
11262
11566
  const fetch2 = nodeFetchProxy(proxy);
11263
11567
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11269,21 +11573,21 @@ var IntegrationDataResourceEditorRemoveModule = {
11269
11573
  var IntegrationDataResourceEditorModule = {
11270
11574
  command: "dataResourceEditor <command>",
11271
11575
  describe: "Commands for managing custom AI data resource editors at the team level.",
11272
- builder: (yargs44) => yargs44.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11576
+ builder: (yargs45) => yargs45.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11273
11577
  handler: () => {
11274
- yargs30.help();
11578
+ yargs31.help();
11275
11579
  }
11276
11580
  };
11277
11581
 
11278
11582
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
11279
- import yargs31 from "yargs";
11583
+ import yargs32 from "yargs";
11280
11584
 
11281
11585
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
11282
11586
  import { readFileSync as readFileSync4 } from "fs";
11283
11587
 
11284
11588
  // src/commands/integration/commands/definition/edgehancer/util.ts
11285
- function withEdgehancerIdOptions(yargs44) {
11286
- return yargs44.option("connectorType", {
11589
+ function withEdgehancerIdOptions(yargs45) {
11590
+ return yargs45.option("connectorType", {
11287
11591
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
11288
11592
  demandOption: true,
11289
11593
  type: "string"
@@ -11303,11 +11607,11 @@ function withEdgehancerIdOptions(yargs44) {
11303
11607
  var IntegrationEdgehancerDeployModule = {
11304
11608
  command: "deploy <filename>",
11305
11609
  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.",
11306
- builder: (yargs44) => withConfiguration(
11610
+ builder: (yargs45) => withConfiguration(
11307
11611
  withApiOptions(
11308
11612
  withTeamOptions(
11309
11613
  withEdgehancerIdOptions(
11310
- yargs44.positional("filename", {
11614
+ yargs45.positional("filename", {
11311
11615
  demandOption: true,
11312
11616
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
11313
11617
  }).option("compatibilityDate", {
@@ -11350,7 +11654,7 @@ var IntegrationEdgehancerDeployModule = {
11350
11654
  var IntegrationEdgehancerRemoveModule = {
11351
11655
  command: "remove",
11352
11656
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
11353
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs44)))),
11657
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs45)))),
11354
11658
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
11355
11659
  const fetch2 = nodeFetchProxy(proxy);
11356
11660
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11362,22 +11666,22 @@ var IntegrationEdgehancerRemoveModule = {
11362
11666
  var IntegrationEdgehancerModule = {
11363
11667
  command: "edgehancer <command>",
11364
11668
  describe: "Commands for managing custom integration edgehancers at the team level.",
11365
- builder: (yargs44) => yargs44.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11669
+ builder: (yargs45) => yargs45.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11366
11670
  handler: () => {
11367
- yargs31.help();
11671
+ yargs32.help();
11368
11672
  }
11369
11673
  };
11370
11674
 
11371
11675
  // src/commands/integration/commands/definition/propertyEditor/propertyEditor.ts
11372
- import yargs32 from "yargs";
11676
+ import yargs33 from "yargs";
11373
11677
 
11374
11678
  // src/commands/integration/commands/definition/propertyEditor/deploy.ts
11375
11679
  import { IntegrationPropertyEditorsClient } from "@uniformdev/canvas";
11376
11680
  import { readFileSync as readFileSync5 } from "fs";
11377
11681
 
11378
11682
  // src/commands/integration/commands/definition/propertyEditor/util.ts
11379
- function withPropertyEditorIdOptions(yargs44) {
11380
- return yargs44.option("propertyType", {
11683
+ function withPropertyEditorIdOptions(yargs45) {
11684
+ return yargs45.option("propertyType", {
11381
11685
  describe: "Property type to attach the editor to.",
11382
11686
  demandOption: true,
11383
11687
  type: "string"
@@ -11393,11 +11697,11 @@ function withPropertyEditorIdOptions(yargs44) {
11393
11697
  var IntegrationPropertyEditorDeployModule = {
11394
11698
  command: "deploy <filename>",
11395
11699
  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.",
11396
- builder: (yargs44) => withConfiguration(
11700
+ builder: (yargs45) => withConfiguration(
11397
11701
  withApiOptions(
11398
11702
  withTeamOptions(
11399
11703
  withPropertyEditorIdOptions(
11400
- yargs44.positional("filename", {
11704
+ yargs45.positional("filename", {
11401
11705
  demandOption: true,
11402
11706
  describe: "ESM code file to run for the target property editor hook. Refer to the documentation for expected types."
11403
11707
  }).option("compatibilityDate", {
@@ -11440,7 +11744,7 @@ import { IntegrationPropertyEditorsClient as IntegrationPropertyEditorsClient2 }
11440
11744
  var IntegrationPropertyEditorRemoveModule = {
11441
11745
  command: "remove",
11442
11746
  describe: "Deletes a custom AI property editor hook from a property type. The API key used must have team admin permissions.",
11443
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs44)))),
11747
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs45)))),
11444
11748
  handler: async ({ apiHost, apiKey, proxy, team: teamId, propertyType, hook }) => {
11445
11749
  const fetch2 = nodeFetchProxy(proxy);
11446
11750
  const client = new IntegrationPropertyEditorsClient2({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11452,17 +11756,17 @@ var IntegrationPropertyEditorRemoveModule = {
11452
11756
  var IntegrationPropertyEditorModule = {
11453
11757
  command: "propertyEditor <command>",
11454
11758
  describe: "Commands for managing custom AI property editors at the team level.",
11455
- builder: (yargs44) => yargs44.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11759
+ builder: (yargs45) => yargs45.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11456
11760
  handler: () => {
11457
- yargs32.help();
11761
+ yargs33.help();
11458
11762
  }
11459
11763
  };
11460
11764
 
11461
11765
  // src/commands/integration/commands/definition/DefinitionClient.ts
11462
11766
  import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
11463
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11767
+ import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11464
11768
  var ENDPOINT2 = "/api/v1/integration-definitions";
11465
- var DefinitionClient = class extends ApiClient2 {
11769
+ var DefinitionClient = class extends ApiClient3 {
11466
11770
  constructor(options) {
11467
11771
  if (!options.limitPolicy) {
11468
11772
  options.limitPolicy = createLimitPolicy3({});
@@ -11494,10 +11798,10 @@ var DefinitionClient = class extends ApiClient2 {
11494
11798
  var IntegrationDefinitionRegisterModule = {
11495
11799
  command: "register <filename>",
11496
11800
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
11497
- builder: (yargs44) => withConfiguration(
11801
+ builder: (yargs45) => withConfiguration(
11498
11802
  withApiOptions(
11499
11803
  withTeamOptions(
11500
- yargs44.positional("filename", {
11804
+ yargs45.positional("filename", {
11501
11805
  demandOption: true,
11502
11806
  describe: "Integration definition manifest to register"
11503
11807
  })
@@ -11516,10 +11820,10 @@ var IntegrationDefinitionRegisterModule = {
11516
11820
  var IntegrationDefinitionRemoveModule = {
11517
11821
  command: "remove <type>",
11518
11822
  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.",
11519
- builder: (yargs44) => withConfiguration(
11823
+ builder: (yargs45) => withConfiguration(
11520
11824
  withApiOptions(
11521
11825
  withTeamOptions(
11522
- yargs44.positional("type", {
11826
+ yargs45.positional("type", {
11523
11827
  demandOption: true,
11524
11828
  describe: "Integration type (from its manifest) to remove."
11525
11829
  })
@@ -11537,17 +11841,17 @@ var IntegrationDefinitionRemoveModule = {
11537
11841
  var IntegrationDefinitionModule = {
11538
11842
  command: "definition <command>",
11539
11843
  describe: "Commands for managing custom integration definitions at the team level.",
11540
- builder: (yargs44) => yargs44.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11844
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11541
11845
  handler: () => {
11542
- yargs33.help();
11846
+ yargs34.help();
11543
11847
  }
11544
11848
  };
11545
11849
 
11546
11850
  // src/commands/integration/commands/InstallClient.ts
11547
11851
  import { createLimitPolicy as createLimitPolicy4 } from "@uniformdev/canvas";
11548
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11852
+ import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
11549
11853
  var ENDPOINT3 = "/api/v1/integration-installations";
11550
- var InstallClient = class extends ApiClient3 {
11854
+ var InstallClient = class extends ApiClient4 {
11551
11855
  constructor(options) {
11552
11856
  if (!options.limitPolicy) {
11553
11857
  options.limitPolicy = createLimitPolicy4({});
@@ -11579,10 +11883,10 @@ var InstallClient = class extends ApiClient3 {
11579
11883
  var IntegrationInstallModule = {
11580
11884
  command: "install <type>",
11581
11885
  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.",
11582
- builder: (yargs44) => withConfiguration(
11886
+ builder: (yargs45) => withConfiguration(
11583
11887
  withApiOptions(
11584
11888
  withProjectOptions(
11585
- yargs44.positional("type", {
11889
+ yargs45.positional("type", {
11586
11890
  demandOption: true,
11587
11891
  describe: "Integration type to install (as defined in its manifest)"
11588
11892
  }).option("configuration", {
@@ -11604,10 +11908,10 @@ var IntegrationInstallModule = {
11604
11908
  var IntegrationUninstallModule = {
11605
11909
  command: "uninstall <type>",
11606
11910
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
11607
- builder: (yargs44) => withConfiguration(
11911
+ builder: (yargs45) => withConfiguration(
11608
11912
  withApiOptions(
11609
11913
  withProjectOptions(
11610
- yargs44.positional("type", {
11914
+ yargs45.positional("type", {
11611
11915
  demandOption: true,
11612
11916
  describe: "Integration type to uninstall (as defined in its manifest)"
11613
11917
  })
@@ -11625,9 +11929,9 @@ var IntegrationUninstallModule = {
11625
11929
  var IntegrationCommand = {
11626
11930
  command: "integration <command>",
11627
11931
  describe: "Integration management commands",
11628
- builder: (yargs44) => yargs44.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11932
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11629
11933
  handler: () => {
11630
- yargs34.showHelp();
11934
+ yargs35.showHelp();
11631
11935
  }
11632
11936
  };
11633
11937
 
@@ -11655,7 +11959,7 @@ ${err.message}`);
11655
11959
  };
11656
11960
 
11657
11961
  // src/projects/cloneStarter.ts
11658
- import crypto2 from "crypto";
11962
+ import crypto3 from "crypto";
11659
11963
  import fs7 from "fs";
11660
11964
  import fsj5 from "fs-jetpack";
11661
11965
  import * as git from "isomorphic-git";
@@ -11670,7 +11974,7 @@ async function cloneStarter({
11670
11974
  githubBranch
11671
11975
  }) {
11672
11976
  const done = await spin("Fetching starter code...");
11673
- const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
11977
+ const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto3.randomBytes(20).toString("hex")}`);
11674
11978
  const [user, repo, ...pathSegments] = githubPath.split("/");
11675
11979
  try {
11676
11980
  await git.clone({
@@ -12092,14 +12396,14 @@ var NewMeshCmd = {
12092
12396
  };
12093
12397
 
12094
12398
  // src/commands/policy-documents/index.ts
12095
- import yargs35 from "yargs";
12399
+ import yargs36 from "yargs";
12096
12400
 
12097
12401
  // src/commands/policy-documents/commands/list.ts
12098
12402
  var PolicyDocumentsListModule = {
12099
12403
  command: "list",
12100
12404
  describe: "List policy documents for a project",
12101
12405
  aliases: ["ls"],
12102
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12406
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12103
12407
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
12104
12408
  const fetch2 = nodeFetchProxy(proxy, verbose);
12105
12409
  const url = new URL(`/api/v1/policy-documents`, apiHost);
@@ -12177,19 +12481,19 @@ ${errorText}`
12177
12481
  }
12178
12482
 
12179
12483
  // src/commands/policy-documents/commands/_util.ts
12180
- var selectIdentifier13 = (policyDoc) => policyDoc.roleId;
12181
- var selectDisplayName13 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12484
+ var selectIdentifier14 = (policyDoc) => policyDoc.roleId;
12485
+ var selectDisplayName14 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12182
12486
 
12183
12487
  // src/commands/policy-documents/commands/pull.ts
12184
12488
  var PolicyDocumentsPullModule = {
12185
12489
  command: "pull <directory>",
12186
12490
  describe: "Pulls all policy documents to local files in a directory",
12187
- builder: (yargs44) => withConfiguration(
12491
+ builder: (yargs45) => withConfiguration(
12188
12492
  withApiOptions(
12189
12493
  withDebugOptions(
12190
12494
  withProjectOptions(
12191
12495
  withDiffOptions(
12192
- yargs44.positional("directory", {
12496
+ yargs45.positional("directory", {
12193
12497
  describe: "Directory to save to. Each policy document will be saved as a separate file named by role ID.",
12194
12498
  type: "string"
12195
12499
  }).option("format", {
@@ -12227,8 +12531,8 @@ var PolicyDocumentsPullModule = {
12227
12531
  const source = createPolicyDocumentsEngineDataSource({ apiKey, apiHost, fetch: fetch2, projectId });
12228
12532
  const target = await createFileSyncEngineDataSource({
12229
12533
  directory,
12230
- selectIdentifier: selectIdentifier13,
12231
- selectDisplayName: selectDisplayName13,
12534
+ selectIdentifier: selectIdentifier14,
12535
+ selectDisplayName: selectDisplayName14,
12232
12536
  format,
12233
12537
  verbose
12234
12538
  });
@@ -12323,12 +12627,12 @@ function mergePolicyDocuments(localDocs, remoteDocs, mode) {
12323
12627
  var PolicyDocumentsPushModule = {
12324
12628
  command: "push <directory>",
12325
12629
  describe: "Pushes policy documents from local files to Uniform",
12326
- builder: (yargs44) => withConfiguration(
12630
+ builder: (yargs45) => withConfiguration(
12327
12631
  withApiOptions(
12328
12632
  withDebugOptions(
12329
12633
  withProjectOptions(
12330
12634
  withDiffOptions(
12331
- yargs44.positional("directory", {
12635
+ yargs45.positional("directory", {
12332
12636
  describe: "Directory containing policy document files (one file per role ID).",
12333
12637
  type: "string"
12334
12638
  }).option("format", {
@@ -12377,8 +12681,8 @@ var PolicyDocumentsPushModule = {
12377
12681
  const finalDocs = mergePolicyDocuments(localDocs, remoteDocs, mode);
12378
12682
  const source = await createFileSyncEngineDataSource({
12379
12683
  directory,
12380
- selectIdentifier: selectIdentifier13,
12381
- selectDisplayName: selectDisplayName13,
12684
+ selectIdentifier: selectIdentifier14,
12685
+ selectDisplayName: selectDisplayName14,
12382
12686
  format,
12383
12687
  verbose
12384
12688
  });
@@ -12424,22 +12728,22 @@ var PolicyDocumentsCommand = {
12424
12728
  command: "policy-documents <command>",
12425
12729
  aliases: ["policy", "policies"],
12426
12730
  describe: "Uniform Policy Documents commands",
12427
- builder: (yargs44) => yargs44.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12731
+ builder: (yargs45) => yargs45.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12428
12732
  handler: () => {
12429
- yargs35.showHelp();
12733
+ yargs36.showHelp();
12430
12734
  }
12431
12735
  };
12432
12736
 
12433
12737
  // src/commands/project-map/index.ts
12434
- import yargs38 from "yargs";
12738
+ import yargs39 from "yargs";
12435
12739
 
12436
12740
  // src/commands/project-map/commands/projectMapDefinition.ts
12437
- import yargs36 from "yargs";
12741
+ import yargs37 from "yargs";
12438
12742
 
12439
12743
  // src/commands/project-map/commands/ProjectMapDefinition/_util.ts
12440
12744
  import { ProjectMapClient } from "@uniformdev/project-map";
12441
- var selectIdentifier14 = (source) => source.id;
12442
- var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
12745
+ var selectIdentifier15 = (source) => source.id;
12746
+ var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
12443
12747
  function getProjectMapClient(options) {
12444
12748
  return new ProjectMapClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
12445
12749
  }
@@ -12448,11 +12752,11 @@ function getProjectMapClient(options) {
12448
12752
  var ProjectMapDefinitionGetModule = {
12449
12753
  command: "get <id>",
12450
12754
  describe: "Fetch a project map",
12451
- builder: (yargs44) => withFormatOptions(
12755
+ builder: (yargs45) => withFormatOptions(
12452
12756
  withConfiguration(
12453
12757
  withApiOptions(
12454
12758
  withProjectOptions(
12455
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12759
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12456
12760
  )
12457
12761
  )
12458
12762
  )
@@ -12475,7 +12779,7 @@ var ProjectMapDefinitionListModule = {
12475
12779
  command: "list",
12476
12780
  describe: "List of project maps",
12477
12781
  aliases: ["ls"],
12478
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12782
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12479
12783
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
12480
12784
  const fetch2 = nodeFetchProxy(proxy);
12481
12785
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -12503,9 +12807,9 @@ function createProjectMapDefinitionEngineDataSource({
12503
12807
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
12504
12808
  for await (const def of projectMaps) {
12505
12809
  const result = {
12506
- id: selectIdentifier14(def),
12507
- displayName: selectDisplayName14(def),
12508
- providerId: selectIdentifier14(def),
12810
+ id: selectIdentifier15(def),
12811
+ displayName: selectDisplayName15(def),
12812
+ providerId: selectIdentifier15(def),
12509
12813
  object: def
12510
12814
  };
12511
12815
  yield result;
@@ -12529,12 +12833,12 @@ function createProjectMapDefinitionEngineDataSource({
12529
12833
  var ProjectMapDefinitionPullModule = {
12530
12834
  command: "pull <directory>",
12531
12835
  describe: "Pulls all project maps to local files in a directory",
12532
- builder: (yargs44) => withConfiguration(
12836
+ builder: (yargs45) => withConfiguration(
12533
12837
  withDebugOptions(
12534
12838
  withApiOptions(
12535
12839
  withProjectOptions(
12536
12840
  withDiffOptions(
12537
- yargs44.positional("directory", {
12841
+ yargs45.positional("directory", {
12538
12842
  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.",
12539
12843
  type: "string"
12540
12844
  }).option("format", {
@@ -12578,8 +12882,8 @@ var ProjectMapDefinitionPullModule = {
12578
12882
  target = await createArraySyncEngineDataSource({
12579
12883
  name: `Package file ${directory}`,
12580
12884
  objects: packageContents.projectMaps ?? [],
12581
- selectIdentifier: selectIdentifier14,
12582
- selectDisplayName: selectDisplayName14,
12885
+ selectIdentifier: selectIdentifier15,
12886
+ selectDisplayName: selectDisplayName15,
12583
12887
  onSyncComplete: async (_, synced) => {
12584
12888
  packageContents.projectMaps = synced;
12585
12889
  writeContextPackage2(directory, packageContents);
@@ -12588,8 +12892,8 @@ var ProjectMapDefinitionPullModule = {
12588
12892
  } else {
12589
12893
  target = await createFileSyncEngineDataSource({
12590
12894
  directory,
12591
- selectIdentifier: selectIdentifier14,
12592
- selectDisplayName: selectDisplayName14,
12895
+ selectIdentifier: selectIdentifier15,
12896
+ selectDisplayName: selectDisplayName15,
12593
12897
  format,
12594
12898
  verbose
12595
12899
  });
@@ -12609,12 +12913,12 @@ var ProjectMapDefinitionPullModule = {
12609
12913
  var ProjectMapDefinitionPushModule = {
12610
12914
  command: "push <directory>",
12611
12915
  describe: "Pushes all project maps from files in a directory or package to Uniform",
12612
- builder: (yargs44) => withConfiguration(
12916
+ builder: (yargs45) => withConfiguration(
12613
12917
  withDebugOptions(
12614
12918
  withApiOptions(
12615
12919
  withProjectOptions(
12616
12920
  withDiffOptions(
12617
- yargs44.positional("directory", {
12921
+ yargs45.positional("directory", {
12618
12922
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12619
12923
  type: "string"
12620
12924
  }).option("mode", {
@@ -12650,14 +12954,14 @@ var ProjectMapDefinitionPushModule = {
12650
12954
  source = await createArraySyncEngineDataSource({
12651
12955
  name: `Package file ${directory}`,
12652
12956
  objects: packageContents.projectMaps ?? [],
12653
- selectIdentifier: selectIdentifier14,
12654
- selectDisplayName: selectDisplayName14
12957
+ selectIdentifier: selectIdentifier15,
12958
+ selectDisplayName: selectDisplayName15
12655
12959
  });
12656
12960
  } else {
12657
12961
  source = await createFileSyncEngineDataSource({
12658
12962
  directory,
12659
- selectIdentifier: selectIdentifier14,
12660
- selectDisplayName: selectDisplayName14,
12963
+ selectIdentifier: selectIdentifier15,
12964
+ selectDisplayName: selectDisplayName15,
12661
12965
  verbose
12662
12966
  });
12663
12967
  }
@@ -12678,9 +12982,9 @@ var ProjectMapDefinitionRemoveModule = {
12678
12982
  command: "remove <id>",
12679
12983
  aliases: ["delete", "rm"],
12680
12984
  describe: "Delete a project map",
12681
- builder: (yargs44) => withConfiguration(
12985
+ builder: (yargs45) => withConfiguration(
12682
12986
  withApiOptions(
12683
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
12987
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
12684
12988
  )
12685
12989
  ),
12686
12990
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -12695,10 +12999,10 @@ var ProjectMapDefinitionUpdateModule = {
12695
12999
  command: "update <filename>",
12696
13000
  aliases: ["put"],
12697
13001
  describe: "Insert or update a project map",
12698
- builder: (yargs44) => withConfiguration(
13002
+ builder: (yargs45) => withConfiguration(
12699
13003
  withApiOptions(
12700
13004
  withProjectOptions(
12701
- yargs44.positional("filename", { demandOption: true, describe: "Project map file to put" })
13005
+ yargs45.positional("filename", { demandOption: true, describe: "Project map file to put" })
12702
13006
  )
12703
13007
  )
12704
13008
  ),
@@ -12714,24 +13018,24 @@ var ProjectMapDefinitionUpdateModule = {
12714
13018
  var ProjectMapDefinitionModule = {
12715
13019
  command: "definition <command>",
12716
13020
  describe: "Commands for ProjectMap Definitions",
12717
- builder: (yargs44) => yargs44.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
13021
+ builder: (yargs45) => yargs45.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
12718
13022
  handler: () => {
12719
- yargs36.help();
13023
+ yargs37.help();
12720
13024
  }
12721
13025
  };
12722
13026
 
12723
13027
  // src/commands/project-map/commands/projectMapNode.ts
12724
- import yargs37 from "yargs";
13028
+ import yargs38 from "yargs";
12725
13029
 
12726
13030
  // src/commands/project-map/commands/ProjectMapNode/get.ts
12727
13031
  var ProjectMapNodeGetModule = {
12728
13032
  command: "get <id> <projectMapId>",
12729
13033
  describe: "Fetch a project map node",
12730
- builder: (yargs44) => withConfiguration(
13034
+ builder: (yargs45) => withConfiguration(
12731
13035
  withFormatOptions(
12732
13036
  withApiOptions(
12733
13037
  withProjectOptions(
12734
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
13038
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
12735
13039
  )
12736
13040
  )
12737
13041
  )
@@ -12754,12 +13058,12 @@ var ProjectMapNodeListModule = {
12754
13058
  command: "list <projectMapId>",
12755
13059
  describe: "List project map nodes",
12756
13060
  aliases: ["ls"],
12757
- builder: (yargs44) => withConfiguration(
13061
+ builder: (yargs45) => withConfiguration(
12758
13062
  withFormatOptions(
12759
13063
  withApiOptions(
12760
13064
  withProjectOptions(
12761
13065
  withStateOptions(
12762
- yargs44.positional("projectMapId", {
13066
+ yargs45.positional("projectMapId", {
12763
13067
  demandOption: true,
12764
13068
  describe: "ProjectMap UUID to fetch from"
12765
13069
  })
@@ -12777,13 +13081,13 @@ var ProjectMapNodeListModule = {
12777
13081
  };
12778
13082
 
12779
13083
  // src/commands/project-map/commands/ProjectMapNode/_util.ts
12780
- var selectIdentifier15 = (source, projectId) => [
13084
+ var selectIdentifier16 = (source, projectId) => [
12781
13085
  projectId + source.projectMapId + source.id,
12782
13086
  projectId + source.projectMapId + source.path
12783
13087
  ];
12784
13088
  var selectNodeDepth = (source) => source.path.split("/").filter((segment) => segment.length > 0).length;
12785
13089
  var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
12786
- var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
13090
+ var selectDisplayName16 = (source) => `${source.name} (pid: ${source.id})`;
12787
13091
  function alignProjectMapNodeWithTargetIdentifier(sourceObject, targetObject) {
12788
13092
  if (!targetObject) {
12789
13093
  return sourceObject;
@@ -12811,9 +13115,9 @@ function createProjectMapNodeEngineDataSource({
12811
13115
  for await (const node of nodes ?? []) {
12812
13116
  if (node) {
12813
13117
  const result = {
12814
- id: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId),
12815
- displayName: selectDisplayName15(node),
12816
- providerId: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId)[0],
13118
+ id: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId),
13119
+ displayName: selectDisplayName16(node),
13120
+ providerId: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId)[0],
12817
13121
  object: { ...node, projectMapId: projectMap.id }
12818
13122
  };
12819
13123
  yield result;
@@ -12852,12 +13156,12 @@ function createProjectMapNodeEngineDataSource({
12852
13156
  var ProjectMapNodePullModule = {
12853
13157
  command: "pull <directory>",
12854
13158
  describe: "Pulls all project maps nodes to local files in a directory",
12855
- builder: (yargs44) => withConfiguration(
13159
+ builder: (yargs45) => withConfiguration(
12856
13160
  withDebugOptions(
12857
13161
  withApiOptions(
12858
13162
  withProjectOptions(
12859
13163
  withDiffOptions(
12860
- yargs44.positional("directory", {
13164
+ yargs45.positional("directory", {
12861
13165
  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.",
12862
13166
  type: "string"
12863
13167
  }).option("format", {
@@ -12897,7 +13201,7 @@ var ProjectMapNodePullModule = {
12897
13201
  let target;
12898
13202
  const isPackage = isPathAPackageFile(directory);
12899
13203
  const expandedSelectIdentifier = (object4) => {
12900
- return selectIdentifier15(object4, projectId);
13204
+ return selectIdentifier16(object4, projectId);
12901
13205
  };
12902
13206
  if (isPackage) {
12903
13207
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -12905,7 +13209,7 @@ var ProjectMapNodePullModule = {
12905
13209
  name: `Package file ${directory}`,
12906
13210
  objects: packageContents.projectMapNodes ?? [],
12907
13211
  selectIdentifier: expandedSelectIdentifier,
12908
- selectDisplayName: selectDisplayName15,
13212
+ selectDisplayName: selectDisplayName16,
12909
13213
  onSyncComplete: async (_, synced) => {
12910
13214
  packageContents.projectMapNodes = synced;
12911
13215
  writeContextPackage2(directory, packageContents);
@@ -12915,7 +13219,7 @@ var ProjectMapNodePullModule = {
12915
13219
  target = await createFileSyncEngineDataSource({
12916
13220
  directory,
12917
13221
  selectIdentifier: expandedSelectIdentifier,
12918
- selectDisplayName: selectDisplayName15,
13222
+ selectDisplayName: selectDisplayName16,
12919
13223
  format,
12920
13224
  selectFilename,
12921
13225
  verbose
@@ -12939,12 +13243,12 @@ import {
12939
13243
  var ProjectMapNodePushModule = {
12940
13244
  command: "push <directory>",
12941
13245
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
12942
- builder: (yargs44) => withConfiguration(
13246
+ builder: (yargs45) => withConfiguration(
12943
13247
  withDebugOptions(
12944
13248
  withApiOptions(
12945
13249
  withProjectOptions(
12946
13250
  withDiffOptions(
12947
- yargs44.positional("directory", {
13251
+ yargs45.positional("directory", {
12948
13252
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12949
13253
  type: "string"
12950
13254
  }).option("mode", {
@@ -12981,7 +13285,7 @@ var ProjectMapNodePushModule = {
12981
13285
  let source;
12982
13286
  const isPackage = isPathAPackageFile(directory);
12983
13287
  const expandedSelectIdentifier = (object4) => {
12984
- return selectIdentifier15(object4, projectId);
13288
+ return selectIdentifier16(object4, projectId);
12985
13289
  };
12986
13290
  if (isPackage) {
12987
13291
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -12991,13 +13295,13 @@ var ProjectMapNodePushModule = {
12991
13295
  return selectNodeDepth(a) - selectNodeDepth(b);
12992
13296
  }) ?? [],
12993
13297
  selectIdentifier: expandedSelectIdentifier,
12994
- selectDisplayName: selectDisplayName15
13298
+ selectDisplayName: selectDisplayName16
12995
13299
  });
12996
13300
  } else {
12997
13301
  source = await createFileSyncEngineDataSource({
12998
13302
  directory,
12999
13303
  selectIdentifier: expandedSelectIdentifier,
13000
- selectDisplayName: selectDisplayName15,
13304
+ selectDisplayName: selectDisplayName16,
13001
13305
  selectFilename,
13002
13306
  verbose
13003
13307
  });
@@ -13038,7 +13342,7 @@ var ProjectMapNodePushModule = {
13038
13342
  name: `Nodes re-push from ${directory}`,
13039
13343
  objects: Array.from(nodesFailedDueToMissingParent),
13040
13344
  selectIdentifier: expandedSelectIdentifier,
13041
- selectDisplayName: selectDisplayName15
13345
+ selectDisplayName: selectDisplayName16
13042
13346
  });
13043
13347
  await attemptSync();
13044
13348
  } else {
@@ -13055,10 +13359,10 @@ var ProjectMapNodeRemoveModule = {
13055
13359
  command: "remove <id> <projectMapId>",
13056
13360
  aliases: ["delete", "rm"],
13057
13361
  describe: "Delete a project map node",
13058
- builder: (yargs44) => withConfiguration(
13362
+ builder: (yargs45) => withConfiguration(
13059
13363
  withApiOptions(
13060
13364
  withProjectOptions(
13061
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13365
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13062
13366
  )
13063
13367
  )
13064
13368
  ),
@@ -13074,10 +13378,10 @@ var ProjectMapNodeUpdateModule = {
13074
13378
  command: "update <filename> <projectMapId>",
13075
13379
  aliases: ["put"],
13076
13380
  describe: "Insert or update a project map node",
13077
- builder: (yargs44) => withConfiguration(
13381
+ builder: (yargs45) => withConfiguration(
13078
13382
  withApiOptions(
13079
13383
  withProjectOptions(
13080
- yargs44.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13384
+ yargs45.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13081
13385
  )
13082
13386
  )
13083
13387
  ),
@@ -13093,9 +13397,9 @@ var ProjectMapNodeUpdateModule = {
13093
13397
  var ProjectMapNodeModule = {
13094
13398
  command: "node <command>",
13095
13399
  describe: "Commands for ProjectMap Nodes",
13096
- builder: (yargs44) => yargs44.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13400
+ builder: (yargs45) => yargs45.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13097
13401
  handler: () => {
13098
- yargs37.help();
13402
+ yargs38.help();
13099
13403
  }
13100
13404
  };
13101
13405
 
@@ -13104,26 +13408,26 @@ var ProjectMapCommand = {
13104
13408
  command: "project-map <command>",
13105
13409
  aliases: ["prm"],
13106
13410
  describe: "Uniform ProjectMap commands",
13107
- builder: (yargs44) => yargs44.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13411
+ builder: (yargs45) => yargs45.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13108
13412
  handler: () => {
13109
- yargs38.showHelp();
13413
+ yargs39.showHelp();
13110
13414
  }
13111
13415
  };
13112
13416
 
13113
13417
  // src/commands/redirect/index.ts
13114
- import yargs40 from "yargs";
13418
+ import yargs41 from "yargs";
13115
13419
 
13116
13420
  // src/commands/redirect/commands/redirect.ts
13117
- import yargs39 from "yargs";
13421
+ import yargs40 from "yargs";
13118
13422
 
13119
13423
  // src/commands/redirect/commands/RedirectDefinition/_util.ts
13120
13424
  import { RedirectClient } from "@uniformdev/redirect";
13121
- var selectIdentifier16 = (source) => source.id;
13425
+ var selectIdentifier17 = (source) => source.id;
13122
13426
  var selectFilename2 = (source) => {
13123
13427
  const index = source.sourceUrl.lastIndexOf("/");
13124
13428
  return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
13125
13429
  };
13126
- var selectDisplayName16 = (source) => {
13430
+ var selectDisplayName17 = (source) => {
13127
13431
  let pathName = source.sourceUrl;
13128
13432
  if (pathName.length > 30) {
13129
13433
  const slashIndex = source.sourceUrl.indexOf("/", source.sourceUrl.length - 30);
@@ -13139,11 +13443,11 @@ function getRedirectClient(options) {
13139
13443
  var RedirectDefinitionGetModule = {
13140
13444
  command: "get <id>",
13141
13445
  describe: "Fetch a redirect",
13142
- builder: (yargs44) => withConfiguration(
13446
+ builder: (yargs45) => withConfiguration(
13143
13447
  withFormatOptions(
13144
13448
  withApiOptions(
13145
13449
  withProjectOptions(
13146
- yargs44.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13450
+ yargs45.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13147
13451
  )
13148
13452
  )
13149
13453
  )
@@ -13166,7 +13470,7 @@ var RedirectDefinitionListModule = {
13166
13470
  command: "list",
13167
13471
  describe: "List of redirects",
13168
13472
  aliases: ["ls"],
13169
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
13473
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
13170
13474
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
13171
13475
  const fetch2 = nodeFetchProxy(proxy);
13172
13476
  const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -13194,9 +13498,9 @@ function createRedirectDefinitionEngineDataSource({
13194
13498
  const redirects = client.getAllRedirects();
13195
13499
  for await (const redirect of redirects) {
13196
13500
  const result = {
13197
- id: selectIdentifier16(redirect.redirect),
13198
- displayName: selectDisplayName16(redirect.redirect),
13199
- providerId: selectIdentifier16(redirect.redirect),
13501
+ id: selectIdentifier17(redirect.redirect),
13502
+ displayName: selectDisplayName17(redirect.redirect),
13503
+ providerId: selectIdentifier17(redirect.redirect),
13200
13504
  object: redirect.redirect
13201
13505
  };
13202
13506
  yield result;
@@ -13218,12 +13522,12 @@ function createRedirectDefinitionEngineDataSource({
13218
13522
  var RedirectDefinitionPullModule = {
13219
13523
  command: "pull <directory>",
13220
13524
  describe: "Pulls all redirects to local files in a directory",
13221
- builder: (yargs44) => withConfiguration(
13525
+ builder: (yargs45) => withConfiguration(
13222
13526
  withDebugOptions(
13223
13527
  withApiOptions(
13224
13528
  withProjectOptions(
13225
13529
  withDiffOptions(
13226
- yargs44.positional("directory", {
13530
+ yargs45.positional("directory", {
13227
13531
  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.",
13228
13532
  type: "string"
13229
13533
  }).option("format", {
@@ -13267,8 +13571,8 @@ var RedirectDefinitionPullModule = {
13267
13571
  target = await createArraySyncEngineDataSource({
13268
13572
  name: `Package file ${directory}`,
13269
13573
  objects: packageContents.redirects ?? [],
13270
- selectIdentifier: selectIdentifier16,
13271
- selectDisplayName: selectDisplayName16,
13574
+ selectIdentifier: selectIdentifier17,
13575
+ selectDisplayName: selectDisplayName17,
13272
13576
  onSyncComplete: async (_, synced) => {
13273
13577
  packageContents.redirects = synced;
13274
13578
  writeContextPackage3(directory, packageContents);
@@ -13278,8 +13582,8 @@ var RedirectDefinitionPullModule = {
13278
13582
  target = await createFileSyncEngineDataSource({
13279
13583
  directory,
13280
13584
  selectFilename: selectFilename2,
13281
- selectIdentifier: selectIdentifier16,
13282
- selectDisplayName: selectDisplayName16,
13585
+ selectIdentifier: selectIdentifier17,
13586
+ selectDisplayName: selectDisplayName17,
13283
13587
  format,
13284
13588
  verbose
13285
13589
  });
@@ -13299,12 +13603,12 @@ var RedirectDefinitionPullModule = {
13299
13603
  var RedirectDefinitionPushModule = {
13300
13604
  command: "push <directory>",
13301
13605
  describe: "Pushes all redirects from files in a directory or package to Uniform",
13302
- builder: (yargs44) => withConfiguration(
13606
+ builder: (yargs45) => withConfiguration(
13303
13607
  withDebugOptions(
13304
13608
  withApiOptions(
13305
13609
  withProjectOptions(
13306
13610
  withDiffOptions(
13307
- yargs44.positional("directory", {
13611
+ yargs45.positional("directory", {
13308
13612
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
13309
13613
  type: "string"
13310
13614
  }).option("mode", {
@@ -13340,14 +13644,14 @@ var RedirectDefinitionPushModule = {
13340
13644
  source = await createArraySyncEngineDataSource({
13341
13645
  name: `Package file ${directory}`,
13342
13646
  objects: packageContents.redirects ?? [],
13343
- selectIdentifier: selectIdentifier16,
13344
- selectDisplayName: selectDisplayName16
13647
+ selectIdentifier: selectIdentifier17,
13648
+ selectDisplayName: selectDisplayName17
13345
13649
  });
13346
13650
  } else {
13347
13651
  source = await createFileSyncEngineDataSource({
13348
13652
  directory,
13349
- selectIdentifier: selectIdentifier16,
13350
- selectDisplayName: selectDisplayName16,
13653
+ selectIdentifier: selectIdentifier17,
13654
+ selectDisplayName: selectDisplayName17,
13351
13655
  verbose
13352
13656
  });
13353
13657
  }
@@ -13368,9 +13672,9 @@ var RedirectDefinitionRemoveModule = {
13368
13672
  command: "remove <id>",
13369
13673
  aliases: ["delete", "rm"],
13370
13674
  describe: "Delete a redirect",
13371
- builder: (yargs44) => withConfiguration(
13675
+ builder: (yargs45) => withConfiguration(
13372
13676
  withApiOptions(
13373
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
13677
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
13374
13678
  )
13375
13679
  ),
13376
13680
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -13385,10 +13689,10 @@ var RedirectDefinitionUpdateModule = {
13385
13689
  command: "update <filename>",
13386
13690
  aliases: ["put"],
13387
13691
  describe: "Insert or update a redirect",
13388
- builder: (yargs44) => withConfiguration(
13692
+ builder: (yargs45) => withConfiguration(
13389
13693
  withApiOptions(
13390
13694
  withProjectOptions(
13391
- yargs44.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13695
+ yargs45.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13392
13696
  )
13393
13697
  )
13394
13698
  ),
@@ -13404,9 +13708,9 @@ var RedirectDefinitionUpdateModule = {
13404
13708
  var RedirectDefinitionModule = {
13405
13709
  command: "definition <command>",
13406
13710
  describe: "Commands for Redirect Definitions",
13407
- builder: (yargs44) => yargs44.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13711
+ builder: (yargs45) => yargs45.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13408
13712
  handler: () => {
13409
- yargs39.help();
13713
+ yargs40.help();
13410
13714
  }
13411
13715
  };
13412
13716
 
@@ -13415,22 +13719,22 @@ var RedirectCommand = {
13415
13719
  command: "redirect <command>",
13416
13720
  aliases: ["red"],
13417
13721
  describe: "Uniform Redirect commands",
13418
- builder: (yargs44) => yargs44.command(RedirectDefinitionModule).demandCommand(),
13722
+ builder: (yargs45) => yargs45.command(RedirectDefinitionModule).demandCommand(),
13419
13723
  handler: () => {
13420
- yargs40.showHelp();
13724
+ yargs41.showHelp();
13421
13725
  }
13422
13726
  };
13423
13727
 
13424
13728
  // src/commands/sync/index.ts
13425
- import yargs41 from "yargs";
13729
+ import yargs42 from "yargs";
13426
13730
 
13427
13731
  // src/webhooksClient.ts
13428
- import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
13732
+ import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
13429
13733
  import PQueue4 from "p-queue";
13430
13734
  import { Svix } from "svix";
13431
13735
  import * as z4 from "zod";
13432
13736
  var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
13433
- var WebhooksClient = class extends ApiClient4 {
13737
+ var WebhooksClient = class extends ApiClient5 {
13434
13738
  constructor(options) {
13435
13739
  super(options);
13436
13740
  }
@@ -13556,8 +13860,8 @@ var WebhooksClient = class extends ApiClient4 {
13556
13860
  };
13557
13861
 
13558
13862
  // src/commands/webhook/commands/_util.ts
13559
- var selectIdentifier17 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13560
- var selectDisplayName17 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13863
+ var selectIdentifier18 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13864
+ var selectDisplayName18 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13561
13865
  var getWebhooksClient = (options) => new WebhooksClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
13562
13866
  var compareWebhooks = (source, target) => {
13563
13867
  const { endpoint: sourceEndpoint, ...sourceWithoutEndpoint } = source.object;
@@ -13592,8 +13896,8 @@ function createWebhookEngineDataSource({
13592
13896
  const webhooks = await client.get();
13593
13897
  for await (const webhook of webhooks) {
13594
13898
  const result = {
13595
- id: selectIdentifier17(webhook),
13596
- displayName: selectDisplayName17(webhook),
13899
+ id: selectIdentifier18(webhook),
13900
+ displayName: selectDisplayName18(webhook),
13597
13901
  providerId: webhook.endpoint.id,
13598
13902
  object: webhook
13599
13903
  };
@@ -13616,12 +13920,12 @@ function createWebhookEngineDataSource({
13616
13920
  var WebhookPullModule = {
13617
13921
  command: "pull <directory>",
13618
13922
  describe: "Pulls all webhooks to local files in a directory",
13619
- builder: (yargs44) => withConfiguration(
13923
+ builder: (yargs45) => withConfiguration(
13620
13924
  withApiOptions(
13621
13925
  withDebugOptions(
13622
13926
  withProjectOptions(
13623
13927
  withDiffOptions(
13624
- yargs44.positional("directory", {
13928
+ yargs45.positional("directory", {
13625
13929
  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.",
13626
13930
  type: "string"
13627
13931
  }).option("format", {
@@ -13665,8 +13969,8 @@ var WebhookPullModule = {
13665
13969
  target = await createArraySyncEngineDataSource({
13666
13970
  name: `Package file ${directory}`,
13667
13971
  objects: packageContents.webhooks ?? [],
13668
- selectIdentifier: selectIdentifier17,
13669
- selectDisplayName: selectDisplayName17,
13972
+ selectIdentifier: selectIdentifier18,
13973
+ selectDisplayName: selectDisplayName18,
13670
13974
  onSyncComplete: async (_, synced) => {
13671
13975
  packageContents.webhooks = synced;
13672
13976
  writeCanvasPackage(directory, packageContents);
@@ -13675,8 +13979,8 @@ var WebhookPullModule = {
13675
13979
  } else {
13676
13980
  target = await createFileSyncEngineDataSource({
13677
13981
  directory,
13678
- selectIdentifier: selectIdentifier17,
13679
- selectDisplayName: selectDisplayName17,
13982
+ selectIdentifier: selectIdentifier18,
13983
+ selectDisplayName: selectDisplayName18,
13680
13984
  format,
13681
13985
  verbose
13682
13986
  });
@@ -13808,7 +14112,7 @@ function numPad(num, spaces = 6) {
13808
14112
  var SyncPullModule = {
13809
14113
  command: "pull",
13810
14114
  describe: "Pulls whole project to local files in a directory",
13811
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs44))))),
14115
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs45))))),
13812
14116
  handler: async ({ serialization, ...otherParams }) => {
13813
14117
  const config2 = serialization;
13814
14118
  const enabledEntities = Object.entries({
@@ -13834,6 +14138,7 @@ var SyncPullModule = {
13834
14138
  entry: EntryPullModule,
13835
14139
  entryPattern: EntryPatternPullModule,
13836
14140
  contentType: ContentTypePullModule,
14141
+ customView: CustomViewPullModule,
13837
14142
  previewUrl: PreviewUrlPullModule,
13838
14143
  previewViewport: PreviewViewportPullModule,
13839
14144
  policyDocument: PolicyDocumentsPullModule,
@@ -13909,12 +14214,12 @@ var getFormat = (entityType, config2) => {
13909
14214
  var WebhookPushModule = {
13910
14215
  command: "push <directory>",
13911
14216
  describe: "Pushes all webhooks from files in a directory to Uniform",
13912
- builder: (yargs44) => withConfiguration(
14217
+ builder: (yargs45) => withConfiguration(
13913
14218
  withDebugOptions(
13914
14219
  withApiOptions(
13915
14220
  withProjectOptions(
13916
14221
  withDiffOptions(
13917
- yargs44.positional("directory", {
14222
+ yargs45.positional("directory", {
13918
14223
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
13919
14224
  type: "string"
13920
14225
  }).option("mode", {
@@ -13950,14 +14255,14 @@ var WebhookPushModule = {
13950
14255
  source = await createArraySyncEngineDataSource({
13951
14256
  name: `Package file ${directory}`,
13952
14257
  objects: packageContents.webhooks ?? [],
13953
- selectIdentifier: selectIdentifier17,
13954
- selectDisplayName: selectDisplayName17
14258
+ selectIdentifier: selectIdentifier18,
14259
+ selectDisplayName: selectDisplayName18
13955
14260
  });
13956
14261
  } else {
13957
14262
  source = await createFileSyncEngineDataSource({
13958
14263
  directory,
13959
- selectIdentifier: selectIdentifier17,
13960
- selectDisplayName: selectDisplayName17,
14264
+ selectIdentifier: selectIdentifier18,
14265
+ selectDisplayName: selectDisplayName18,
13961
14266
  verbose
13962
14267
  });
13963
14268
  }
@@ -13978,7 +14283,7 @@ var WebhookPushModule = {
13978
14283
  var SyncPushModule = {
13979
14284
  command: "push",
13980
14285
  describe: "Pushes whole project data from files in a directory or package to Uniform",
13981
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs44))))),
14286
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs45))))),
13982
14287
  handler: async ({ serialization, ...otherParams }) => {
13983
14288
  const config2 = serialization;
13984
14289
  const enabledEntities = Object.entries({
@@ -14002,6 +14307,7 @@ var SyncPushModule = {
14002
14307
  projectMapNode: ProjectMapNodePushModule,
14003
14308
  redirect: RedirectDefinitionPushModule,
14004
14309
  contentType: ContentTypePushModule,
14310
+ customView: CustomViewPushModule,
14005
14311
  entry: EntryPushModule,
14006
14312
  entryPattern: EntryPatternPushModule,
14007
14313
  previewUrl: PreviewUrlPushModule,
@@ -14155,21 +14461,21 @@ var getFormat2 = (entityType, config2) => {
14155
14461
  var SyncCommand = {
14156
14462
  command: "sync <command>",
14157
14463
  describe: "Uniform Sync commands",
14158
- builder: (yargs44) => yargs44.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14464
+ builder: (yargs45) => yargs45.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14159
14465
  handler: () => {
14160
- yargs41.showHelp();
14466
+ yargs42.showHelp();
14161
14467
  }
14162
14468
  };
14163
14469
 
14164
14470
  // src/commands/webhook/index.ts
14165
- import yargs42 from "yargs";
14471
+ import yargs43 from "yargs";
14166
14472
  var WebhookCommand = {
14167
14473
  command: "webhook <command>",
14168
14474
  aliases: ["wh"],
14169
14475
  describe: "Commands for webhooks",
14170
- builder: (yargs44) => yargs44.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14476
+ builder: (yargs45) => yargs45.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14171
14477
  handler: () => {
14172
- yargs42.help();
14478
+ yargs43.help();
14173
14479
  }
14174
14480
  };
14175
14481
 
@@ -14178,8 +14484,8 @@ import { ProjectClient as ProjectClient2 } from "@uniformdev/canvas";
14178
14484
  var WhoamiCommand = {
14179
14485
  command: "whoami",
14180
14486
  describe: "Prints configured identity and connection context.",
14181
- builder: (yargs44) => withConfiguration(
14182
- withFormatOptions(withApiOptions(yargs44, { includeEdgeApiHost: true })).option("project", {
14487
+ builder: (yargs45) => withConfiguration(
14488
+ withFormatOptions(withApiOptions(yargs45, { includeEdgeApiHost: true })).option("project", {
14183
14489
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
14184
14490
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? process.env.UNIFORM_PROJECT_ID,
14185
14491
  type: "string",
@@ -14446,7 +14752,7 @@ First found was: v${firstVersion}`;
14446
14752
 
14447
14753
  // src/index.ts
14448
14754
  dotenv.config({ quiet: true });
14449
- var yarggery = yargs43(hideBin(process.argv));
14755
+ var yarggery = yargs44(hideBin(process.argv));
14450
14756
  var useDefaultConfig = !process.argv.includes("--config");
14451
14757
  var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
14452
14758
  yarggery.option("verbose", {