@uniformdev/cli 20.80.0 → 20.80.1-alpha.12.sha-2a38a40cfe

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-ACIL44HT.mjs";
28
+ } from "./chunk-TPPKSV6B.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"])
@@ -1205,7 +1205,8 @@ async function fetchMemberProfile({
1205
1205
  }
1206
1206
  var getUserInfo = async (baseUrl, authToken) => {
1207
1207
  try {
1208
- const projectClient = new ProjectClient({ apiHost: baseUrl, bearerToken: authToken });
1208
+ const cliFetch = (input3, init) => fetch(input3, { ...init, headers: { ...init?.headers, "User-Agent": CLI_USER_AGENT } });
1209
+ const projectClient = new ProjectClient({ apiHost: baseUrl, bearerToken: authToken, fetch: cliFetch });
1209
1210
  const [profile, projectsRes] = await Promise.all([
1210
1211
  fetchMemberProfile({ baseUrl, bearerToken: authToken }),
1211
1212
  projectClient.list()
@@ -1241,13 +1242,13 @@ async function fetchUserAndEnsureFirstTeamExists({
1241
1242
  }
1242
1243
 
1243
1244
  // src/telemetry/telemetry.ts
1244
- import crypto from "crypto";
1245
+ import crypto2 from "crypto";
1245
1246
  import { PostHog } from "posthog-node";
1246
1247
  var POSTHOG_WRITE_ONLY_KEY = "phc_c8YoKI9984KOHBfNrCRfIKvL56aYd5OpYxOdYexRzH7";
1247
1248
  var Telemetry = class {
1248
1249
  constructor(prefix, disable = false) {
1249
1250
  this.prefix = prefix;
1250
- this.distinctId = crypto.randomBytes(20).toString("hex");
1251
+ this.distinctId = crypto2.randomBytes(20).toString("hex");
1251
1252
  if (!disable) {
1252
1253
  this.posthog = new PostHog(POSTHOG_WRITE_ONLY_KEY, {
1253
1254
  flushAt: 1,
@@ -1438,8 +1439,8 @@ function getExistingServers(config2) {
1438
1439
  var InstallMcpCommand = {
1439
1440
  command: "install",
1440
1441
  describe: "Install Uniform MCP server configuration (use --team, --project, and --apiKey for non-interactive mode)",
1441
- builder: (yargs44) => withConfiguration(
1442
- yargs44.option("agent", {
1442
+ builder: (yargs45) => withConfiguration(
1443
+ yargs45.option("agent", {
1443
1444
  alias: "a",
1444
1445
  describe: "Specify agent type (cursor, claude, copilot, other)",
1445
1446
  type: "string",
@@ -1639,7 +1640,7 @@ Selected agent: ${agentType}`));
1639
1640
  var McpCommand = {
1640
1641
  command: "mcp <command>",
1641
1642
  describe: "Uniform MCP server management commands",
1642
- builder: (yargs44) => yargs44.command(InstallMcpCommand).demandCommand(),
1643
+ builder: (yargs45) => yargs45.command(InstallMcpCommand).demandCommand(),
1643
1644
  handler: () => {
1644
1645
  yargs.showHelp();
1645
1646
  }
@@ -2114,8 +2115,8 @@ ${gray2("Rules source:")} https://github.com/uniformdev/ai-rules`);
2114
2115
  var InstallRulesCommand = {
2115
2116
  command: "install",
2116
2117
  describe: "Install Uniform AI rules for your development assistant",
2117
- builder: (yargs44) => withConfiguration(
2118
- yargs44.option("agent", {
2118
+ builder: (yargs45) => withConfiguration(
2119
+ yargs45.option("agent", {
2119
2120
  alias: "a",
2120
2121
  describe: "Specify agent type (cursor, claude, copilot, other)",
2121
2122
  type: "string",
@@ -2153,7 +2154,7 @@ import { blue as blue4, bold as bold2, gray as gray3, green as green5, red as re
2153
2154
  var ListRulesCommand = {
2154
2155
  command: "list",
2155
2156
  describe: "List available Uniform AI rules",
2156
- builder: (yargs44) => withConfiguration(yargs44),
2157
+ builder: (yargs45) => withConfiguration(yargs45),
2157
2158
  handler: async function() {
2158
2159
  const { stopAllSpinners, spin } = makeSpinner();
2159
2160
  try {
@@ -2182,7 +2183,7 @@ var ListRulesCommand = {
2182
2183
  var RulesCommand = {
2183
2184
  command: "rules <command>",
2184
2185
  describe: "Uniform AI rules management commands",
2185
- builder: (yargs44) => yargs44.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2186
+ builder: (yargs45) => yargs45.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2186
2187
  handler: () => {
2187
2188
  yargs2.showHelp();
2188
2189
  }
@@ -2192,7 +2193,7 @@ var RulesCommand = {
2192
2193
  var AiCommand = {
2193
2194
  command: "ai <command>",
2194
2195
  describe: "Uniform AI development assistant commands",
2195
- builder: (yargs44) => yargs44.command(RulesCommand).command(McpCommand).demandCommand(),
2196
+ builder: (yargs45) => yargs45.command(RulesCommand).command(McpCommand).demandCommand(),
2196
2197
  handler: () => {
2197
2198
  yargs3.showHelp();
2198
2199
  }
@@ -2277,10 +2278,10 @@ function resolveDeleteTargets(identifiers) {
2277
2278
  var AutomationDeleteModule = {
2278
2279
  command: "delete <identifiers..>",
2279
2280
  describe: "Deletes one or more automations from a project.",
2280
- builder: (yargs44) => withConfiguration(
2281
+ builder: (yargs45) => withConfiguration(
2281
2282
  withApiOptions(
2282
2283
  withProjectOptions(
2283
- yargs44.positional("identifiers", {
2284
+ yargs45.positional("identifiers", {
2284
2285
  array: true,
2285
2286
  type: "string",
2286
2287
  demandOption: true,
@@ -2504,10 +2505,10 @@ function assertUniquePublicIds(files) {
2504
2505
  var AutomationDeployModule = {
2505
2506
  command: "deploy <paths..>",
2506
2507
  describe: "Deploys one or more automations to a project.",
2507
- builder: (yargs44) => withConfiguration(
2508
+ builder: (yargs45) => withConfiguration(
2508
2509
  withApiOptions(
2509
2510
  withProjectOptions(
2510
- yargs44.positional("paths", {
2511
+ yargs45.positional("paths", {
2511
2512
  array: true,
2512
2513
  type: "string",
2513
2514
  demandOption: true,
@@ -2575,7 +2576,7 @@ var AutomationListModule = {
2575
2576
  command: "list",
2576
2577
  aliases: ["ls"],
2577
2578
  describe: "Lists the automations in a project.",
2578
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
2579
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
2579
2580
  handler: async ({ apiHost, apiKey, proxy, project: projectId }) => {
2580
2581
  const fetch2 = nodeFetchProxy(proxy);
2581
2582
  const client = new AutomationsClient3({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2606,14 +2607,14 @@ var AutomationCommand = {
2606
2607
  command: "automation <command>",
2607
2608
  aliases: ["automations"],
2608
2609
  describe: "Commands for managing Uniform Automations",
2609
- builder: (yargs44) => yargs44.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2610
+ builder: (yargs45) => yargs45.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2610
2611
  handler: () => {
2611
2612
  yargs4.showHelp();
2612
2613
  }
2613
2614
  };
2614
2615
 
2615
2616
  // src/commands/canvas/index.ts
2616
- import yargs22 from "yargs";
2617
+ import yargs23 from "yargs";
2617
2618
 
2618
2619
  // src/commands/canvas/commands/asset.ts
2619
2620
  import yargs5 from "yargs";
@@ -2634,12 +2635,12 @@ function getFileClient(options) {
2634
2635
  var AssetGetModule = {
2635
2636
  command: "get <id>",
2636
2637
  describe: "Get an asset",
2637
- builder: (yargs44) => withConfiguration(
2638
+ builder: (yargs45) => withConfiguration(
2638
2639
  withDebugOptions(
2639
2640
  withFormatOptions(
2640
2641
  withApiOptions(
2641
2642
  withProjectOptions(
2642
- yargs44.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2643
+ yargs45.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2643
2644
  )
2644
2645
  )
2645
2646
  )
@@ -2660,7 +2661,7 @@ var AssetGetModule = {
2660
2661
  var AssetListModule = {
2661
2662
  command: "list",
2662
2663
  describe: "List assets",
2663
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
2664
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
2664
2665
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
2665
2666
  const fetch2 = nodeFetchProxy(proxy, verbose);
2666
2667
  const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2879,18 +2880,6 @@ import PQueue2 from "p-queue";
2879
2880
  import { join as join11 } from "path";
2880
2881
  var uploadQueueByKey = /* @__PURE__ */ new Map();
2881
2882
  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
- ]);
2894
2883
  var uploadFile = async ({
2895
2884
  fileClient,
2896
2885
  fileUrl,
@@ -2955,7 +2944,7 @@ var uploadFile = async ({
2955
2944
  uploadBody = createReadStream(expectedFilePath);
2956
2945
  }
2957
2946
  const { width, height } = await (async () => {
2958
- if (!IMAGE_SIZE_SAFE_MEDIA_TYPES.has(mimeType)) {
2947
+ if (!mimeType.startsWith("image/")) {
2959
2948
  return {
2960
2949
  width: void 0,
2961
2950
  height: void 0
@@ -3337,8 +3326,8 @@ function prepCompositionForDisk(composition) {
3337
3326
  delete prepped.state;
3338
3327
  return prepped;
3339
3328
  }
3340
- function withStateOptions(yargs44, defaultState = "preview") {
3341
- return yargs44.option("state", {
3329
+ function withStateOptions(yargs45, defaultState = "preview") {
3330
+ return yargs45.option("state", {
3342
3331
  type: "string",
3343
3332
  describe: `State to fetch.`,
3344
3333
  choices: ["preview", "published"],
@@ -3436,13 +3425,13 @@ var prepareAssetForPull = async ({
3436
3425
  var AssetPullModule = {
3437
3426
  command: "pull <directory>",
3438
3427
  describe: "Pulls all assets to local files in a directory",
3439
- builder: (yargs44) => withConfiguration(
3428
+ builder: (yargs45) => withConfiguration(
3440
3429
  withApiOptions(
3441
3430
  withDebugOptions(
3442
3431
  withProjectOptions(
3443
3432
  withDiffOptions(
3444
3433
  withBatchSizeOptions(
3445
- yargs44.positional("directory", {
3434
+ yargs45.positional("directory", {
3446
3435
  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.",
3447
3436
  type: "string"
3448
3437
  }).option("format", {
@@ -3606,13 +3595,13 @@ var prepareAssetForPush = async ({
3606
3595
  var AssetPushModule = {
3607
3596
  command: "push <directory>",
3608
3597
  describe: "Pushes all assets from files in a directory to Uniform",
3609
- builder: (yargs44) => withConfiguration(
3598
+ builder: (yargs45) => withConfiguration(
3610
3599
  withApiOptions(
3611
3600
  withDebugOptions(
3612
3601
  withProjectOptions(
3613
3602
  withDiffOptions(
3614
3603
  withBatchSizeOptions(
3615
- yargs44.positional("directory", {
3604
+ yargs45.positional("directory", {
3616
3605
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
3617
3606
  type: "string"
3618
3607
  }).option("mode", {
@@ -3729,10 +3718,10 @@ var AssetRemoveModule = {
3729
3718
  command: "remove <id>",
3730
3719
  aliases: ["delete", "rm"],
3731
3720
  describe: "Delete an asset",
3732
- builder: (yargs44) => withConfiguration(
3721
+ builder: (yargs45) => withConfiguration(
3733
3722
  withDebugOptions(
3734
3723
  withApiOptions(
3735
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3724
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3736
3725
  )
3737
3726
  )
3738
3727
  ),
@@ -3753,11 +3742,11 @@ var AssetUpdateModule = {
3753
3742
  command: "update <filename>",
3754
3743
  aliases: ["put"],
3755
3744
  describe: "Insert or update an asset",
3756
- builder: (yargs44) => withConfiguration(
3745
+ builder: (yargs45) => withConfiguration(
3757
3746
  withDebugOptions(
3758
3747
  withApiOptions(
3759
3748
  withProjectOptions(
3760
- yargs44.positional("filename", { demandOption: true, describe: "Asset file to put" })
3749
+ yargs45.positional("filename", { demandOption: true, describe: "Asset file to put" })
3761
3750
  )
3762
3751
  )
3763
3752
  )
@@ -3783,7 +3772,7 @@ var AssetUpdateModule = {
3783
3772
  var AssetModule = {
3784
3773
  command: "asset <command>",
3785
3774
  describe: "Commands for Assets",
3786
- builder: (yargs44) => yargs44.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3775
+ builder: (yargs45) => yargs45.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3787
3776
  handler: () => {
3788
3777
  yargs5.help();
3789
3778
  }
@@ -3804,12 +3793,12 @@ function getCategoryClient(options) {
3804
3793
  var CategoryGetModule = {
3805
3794
  command: "get <id>",
3806
3795
  describe: "Fetch a category",
3807
- builder: (yargs44) => withConfiguration(
3796
+ builder: (yargs45) => withConfiguration(
3808
3797
  withFormatOptions(
3809
3798
  withDebugOptions(
3810
3799
  withApiOptions(
3811
3800
  withProjectOptions(
3812
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3801
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3813
3802
  )
3814
3803
  )
3815
3804
  )
@@ -3834,8 +3823,8 @@ var CategoryListModule = {
3834
3823
  command: "list",
3835
3824
  describe: "List categories",
3836
3825
  aliases: ["ls"],
3837
- builder: (yargs44) => withConfiguration(
3838
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
3826
+ builder: (yargs45) => withConfiguration(
3827
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
3839
3828
  ),
3840
3829
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3841
3830
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3877,12 +3866,12 @@ function createCategoriesEngineDataSource({
3877
3866
  var CategoryPullModule = {
3878
3867
  command: "pull <directory>",
3879
3868
  describe: "Pulls all categories to local files in a directory",
3880
- builder: (yargs44) => withConfiguration(
3869
+ builder: (yargs45) => withConfiguration(
3881
3870
  withApiOptions(
3882
3871
  withProjectOptions(
3883
3872
  withDiffOptions(
3884
3873
  withDebugOptions(
3885
- yargs44.positional("directory", {
3874
+ yargs45.positional("directory", {
3886
3875
  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.",
3887
3876
  type: "string"
3888
3877
  }).option("format", {
@@ -3957,12 +3946,12 @@ var CategoryPullModule = {
3957
3946
  var CategoryPushModule = {
3958
3947
  command: "push <directory>",
3959
3948
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
3960
- builder: (yargs44) => withConfiguration(
3949
+ builder: (yargs45) => withConfiguration(
3961
3950
  withApiOptions(
3962
3951
  withDebugOptions(
3963
3952
  withProjectOptions(
3964
3953
  withDiffOptions(
3965
- yargs44.positional("directory", {
3954
+ yargs45.positional("directory", {
3966
3955
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
3967
3956
  type: "string"
3968
3957
  }).option("mode", {
@@ -4026,11 +4015,11 @@ var CategoryRemoveModule = {
4026
4015
  command: "remove <id>",
4027
4016
  aliases: ["delete", "rm"],
4028
4017
  describe: "Delete a category",
4029
- builder: (yargs44) => withConfiguration(
4018
+ builder: (yargs45) => withConfiguration(
4030
4019
  withApiOptions(
4031
4020
  withDebugOptions(
4032
4021
  withProjectOptions(
4033
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4022
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4034
4023
  )
4035
4024
  )
4036
4025
  )
@@ -4051,11 +4040,11 @@ var CategoryUpdateModule = {
4051
4040
  command: "update <filename>",
4052
4041
  aliases: ["put"],
4053
4042
  describe: "Insert or update a category",
4054
- builder: (yargs44) => withConfiguration(
4043
+ builder: (yargs45) => withConfiguration(
4055
4044
  withApiOptions(
4056
4045
  withDebugOptions(
4057
4046
  withProjectOptions(
4058
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
4047
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
4059
4048
  )
4060
4049
  )
4061
4050
  )
@@ -4077,7 +4066,7 @@ var CategoryModule = {
4077
4066
  command: "category <command>",
4078
4067
  aliases: ["cat"],
4079
4068
  describe: "Commands for Canvas categories",
4080
- builder: (yargs44) => yargs44.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4069
+ builder: (yargs45) => yargs45.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4081
4070
  handler: () => {
4082
4071
  yargs6.help();
4083
4072
  }
@@ -4109,12 +4098,12 @@ function getCompositionDeliveryClient(options) {
4109
4098
  var ComponentGetModule = {
4110
4099
  command: "get <id>",
4111
4100
  describe: "Fetch a component definition",
4112
- builder: (yargs44) => withConfiguration(
4101
+ builder: (yargs45) => withConfiguration(
4113
4102
  withFormatOptions(
4114
4103
  withDebugOptions(
4115
4104
  withApiOptions(
4116
4105
  withProjectOptions(
4117
- yargs44.positional("id", {
4106
+ yargs45.positional("id", {
4118
4107
  demandOption: true,
4119
4108
  describe: "Component definition public ID to fetch"
4120
4109
  })
@@ -4148,12 +4137,12 @@ var ComponentListModule = {
4148
4137
  command: "list",
4149
4138
  describe: "List component definitions",
4150
4139
  aliases: ["ls"],
4151
- builder: (yargs44) => withConfiguration(
4140
+ builder: (yargs45) => withConfiguration(
4152
4141
  withFormatOptions(
4153
4142
  withDebugOptions(
4154
4143
  withApiOptions(
4155
4144
  withProjectOptions(
4156
- yargs44.options({
4145
+ yargs45.options({
4157
4146
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4158
4147
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
4159
4148
  })
@@ -4224,13 +4213,13 @@ function createComponentDefinitionEngineDataSource({
4224
4213
  var ComponentPullModule = {
4225
4214
  command: "pull <directory>",
4226
4215
  describe: "Pulls all component definitions to local files in a directory",
4227
- builder: (yargs44) => withConfiguration(
4216
+ builder: (yargs45) => withConfiguration(
4228
4217
  withApiOptions(
4229
4218
  withDebugOptions(
4230
4219
  withProjectOptions(
4231
4220
  withDiffOptions(
4232
4221
  withBatchSizeOptions(
4233
- yargs44.positional("directory", {
4222
+ yargs45.positional("directory", {
4234
4223
  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.",
4235
4224
  type: "string"
4236
4225
  }).option("format", {
@@ -4313,13 +4302,13 @@ var ComponentPullModule = {
4313
4302
  var ComponentPushModule = {
4314
4303
  command: "push <directory>",
4315
4304
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
4316
- builder: (yargs44) => withConfiguration(
4305
+ builder: (yargs45) => withConfiguration(
4317
4306
  withApiOptions(
4318
4307
  withDebugOptions(
4319
4308
  withProjectOptions(
4320
4309
  withDiffOptions(
4321
4310
  withBatchSizeOptions(
4322
- yargs44.positional("directory", {
4311
+ yargs45.positional("directory", {
4323
4312
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
4324
4313
  type: "string"
4325
4314
  }).option("mode", {
@@ -4391,11 +4380,11 @@ var ComponentRemoveModule = {
4391
4380
  command: "remove <id>",
4392
4381
  aliases: ["delete", "rm"],
4393
4382
  describe: "Delete a component definition",
4394
- builder: (yargs44) => withConfiguration(
4383
+ builder: (yargs45) => withConfiguration(
4395
4384
  withDebugOptions(
4396
4385
  withApiOptions(
4397
4386
  withProjectOptions(
4398
- yargs44.positional("id", {
4387
+ yargs45.positional("id", {
4399
4388
  demandOption: true,
4400
4389
  describe: "Component definition public ID to delete"
4401
4390
  })
@@ -4419,11 +4408,11 @@ var ComponentUpdateModule = {
4419
4408
  command: "update <filename>",
4420
4409
  aliases: ["put"],
4421
4410
  describe: "Insert or update a component definition",
4422
- builder: (yargs44) => withConfiguration(
4411
+ builder: (yargs45) => withConfiguration(
4423
4412
  withApiOptions(
4424
4413
  withDebugOptions(
4425
4414
  withProjectOptions(
4426
- yargs44.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4415
+ yargs45.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4427
4416
  )
4428
4417
  )
4429
4418
  )
@@ -4445,7 +4434,7 @@ var ComponentModule = {
4445
4434
  command: "component <command>",
4446
4435
  aliases: ["def"],
4447
4436
  describe: "Commands for Canvas component definitions",
4448
- builder: (yargs44) => yargs44.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4437
+ builder: (yargs45) => yargs45.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4449
4438
  handler: () => {
4450
4439
  yargs7.help();
4451
4440
  }
@@ -4608,13 +4597,13 @@ function createCompositionGetHandler(expectedType) {
4608
4597
  var CompositionGetModule = {
4609
4598
  command: "get <id>",
4610
4599
  describe: "Fetch a composition",
4611
- builder: (yargs44) => withFormatOptions(
4600
+ builder: (yargs45) => withFormatOptions(
4612
4601
  withConfiguration(
4613
4602
  withApiOptions(
4614
4603
  withProjectOptions(
4615
4604
  withStateOptions(
4616
4605
  withDebugOptions(
4617
- yargs44.positional("id", {
4606
+ yargs45.positional("id", {
4618
4607
  demandOption: true,
4619
4608
  describe: "Composition public ID to fetch"
4620
4609
  }).option({
@@ -4666,13 +4655,13 @@ var CompositionListModule = {
4666
4655
  command: "list",
4667
4656
  describe: "List compositions",
4668
4657
  aliases: ["ls"],
4669
- builder: (yargs44) => withFormatOptions(
4658
+ builder: (yargs45) => withFormatOptions(
4670
4659
  withConfiguration(
4671
4660
  withApiOptions(
4672
4661
  withProjectOptions(
4673
4662
  withDebugOptions(
4674
4663
  withStateOptions(
4675
- yargs44.options({
4664
+ yargs45.options({
4676
4665
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4677
4666
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4678
4667
  search: { describe: "Search query", type: "string", default: "" },
@@ -4746,13 +4735,13 @@ var CompositionListModule = {
4746
4735
  var ComponentPatternListModule = {
4747
4736
  ...CompositionListModule,
4748
4737
  describe: "List component patterns",
4749
- builder: (yargs44) => withFormatOptions(
4738
+ builder: (yargs45) => withFormatOptions(
4750
4739
  withConfiguration(
4751
4740
  withApiOptions(
4752
4741
  withDebugOptions(
4753
4742
  withProjectOptions(
4754
4743
  withStateOptions(
4755
- yargs44.options({
4744
+ yargs45.options({
4756
4745
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4757
4746
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4758
4747
  resolvePatterns: {
@@ -4891,13 +4880,13 @@ function createComponentInstanceEngineDataSource({
4891
4880
  var CompositionPublishModule = {
4892
4881
  command: "publish [ids]",
4893
4882
  describe: "Publishes composition(s)",
4894
- builder: (yargs44) => withConfiguration(
4883
+ builder: (yargs45) => withConfiguration(
4895
4884
  withApiOptions(
4896
4885
  withProjectOptions(
4897
4886
  withDebugOptions(
4898
4887
  withDiffOptions(
4899
4888
  withBatchSizeOptions(
4900
- yargs44.positional("ids", {
4889
+ yargs45.positional("ids", {
4901
4890
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4902
4891
  type: "string"
4903
4892
  }).option("all", {
@@ -4989,13 +4978,13 @@ var CompositionPublishModule = {
4989
4978
  var ComponentPatternPublishModule = {
4990
4979
  ...CompositionPublishModule,
4991
4980
  describe: "Publishes component pattern(s)",
4992
- builder: (yargs44) => withConfiguration(
4981
+ builder: (yargs45) => withConfiguration(
4993
4982
  withApiOptions(
4994
4983
  withDebugOptions(
4995
4984
  withProjectOptions(
4996
4985
  withDiffOptions(
4997
4986
  withBatchSizeOptions(
4998
- yargs44.positional("ids", {
4987
+ yargs45.positional("ids", {
4999
4988
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5000
4989
  type: "string"
5001
4990
  }).option("all", {
@@ -5037,14 +5026,14 @@ function componentInstancePullModuleFactory(type, entityType) {
5037
5026
  return {
5038
5027
  command: "pull <directory>",
5039
5028
  describe: "Pulls all compositions to local files in a directory",
5040
- builder: (yargs44) => withConfiguration(
5029
+ builder: (yargs45) => withConfiguration(
5041
5030
  withApiOptions(
5042
5031
  withProjectOptions(
5043
5032
  withStateOptions(
5044
5033
  withDebugOptions(
5045
5034
  withDiffOptions(
5046
5035
  withBatchSizeOptions(
5047
- yargs44.positional("directory", {
5036
+ yargs45.positional("directory", {
5048
5037
  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.",
5049
5038
  type: "string"
5050
5039
  }).option("format", {
@@ -5163,13 +5152,13 @@ function componentInstancePullModuleFactory(type, entityType) {
5163
5152
  var ComponentPatternPullModule = {
5164
5153
  ...componentInstancePullModuleFactory("componentPatterns", "componentPattern"),
5165
5154
  describe: "Pulls all component patterns to local files in a directory",
5166
- builder: (yargs44) => withConfiguration(
5155
+ builder: (yargs45) => withConfiguration(
5167
5156
  withApiOptions(
5168
5157
  withProjectOptions(
5169
5158
  withDebugOptions(
5170
5159
  withStateOptions(
5171
5160
  withDiffOptions(
5172
- yargs44.positional("directory", {
5161
+ yargs45.positional("directory", {
5173
5162
  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.",
5174
5163
  type: "string"
5175
5164
  }).option("format", {
@@ -5243,14 +5232,14 @@ function componentInstancePushModuleFactory(type, entityType) {
5243
5232
  return {
5244
5233
  command: "push <directory>",
5245
5234
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
5246
- builder: (yargs44) => withConfiguration(
5235
+ builder: (yargs45) => withConfiguration(
5247
5236
  withApiOptions(
5248
5237
  withProjectOptions(
5249
5238
  withStateOptions(
5250
5239
  withDebugOptions(
5251
5240
  withDiffOptions(
5252
5241
  withBatchSizeOptions(
5253
- yargs44.positional("directory", {
5242
+ yargs45.positional("directory", {
5254
5243
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
5255
5244
  type: "string"
5256
5245
  }).option("mode", {
@@ -5368,13 +5357,13 @@ function componentInstancePushModuleFactory(type, entityType) {
5368
5357
  var ComponentPatternPushModule = {
5369
5358
  ...componentInstancePushModuleFactory("componentPatterns", "componentPattern"),
5370
5359
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
5371
- builder: (yargs44) => withConfiguration(
5360
+ builder: (yargs45) => withConfiguration(
5372
5361
  withApiOptions(
5373
5362
  withProjectOptions(
5374
5363
  withStateOptions(
5375
5364
  withDiffOptions(
5376
5365
  withDebugOptions(
5377
- yargs44.positional("directory", {
5366
+ yargs45.positional("directory", {
5378
5367
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
5379
5368
  type: "string"
5380
5369
  }).option("mode", {
@@ -5439,11 +5428,11 @@ var CompositionRemoveModule = {
5439
5428
  command: "remove <id>",
5440
5429
  aliases: ["delete", "rm"],
5441
5430
  describe: "Delete a composition",
5442
- builder: (yargs44) => withConfiguration(
5431
+ builder: (yargs45) => withConfiguration(
5443
5432
  withApiOptions(
5444
5433
  withDebugOptions(
5445
5434
  withProjectOptions(
5446
- yargs44.positional("id", {
5435
+ yargs45.positional("id", {
5447
5436
  demandOption: true,
5448
5437
  describe: "Composition public ID to delete"
5449
5438
  })
@@ -5467,12 +5456,12 @@ import { diffJson as diffJson2 } from "diff";
5467
5456
  var CompositionUnpublishModule = {
5468
5457
  command: "unpublish [ids]",
5469
5458
  describe: "Unpublish a composition(s)",
5470
- builder: (yargs44) => withConfiguration(
5459
+ builder: (yargs45) => withConfiguration(
5471
5460
  withApiOptions(
5472
5461
  withDebugOptions(
5473
5462
  withProjectOptions(
5474
5463
  withBatchSizeOptions(
5475
- yargs44.positional("ids", {
5464
+ yargs45.positional("ids", {
5476
5465
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5477
5466
  type: "string"
5478
5467
  }).option("all", {
@@ -5593,11 +5582,11 @@ var CompositionUnpublishModule = {
5593
5582
  var ComponentPatternUnpublishModule = {
5594
5583
  command: "unpublish [ids]",
5595
5584
  describe: "Unpublish a component pattern(s)",
5596
- builder: (yargs44) => withConfiguration(
5585
+ builder: (yargs45) => withConfiguration(
5597
5586
  withApiOptions(
5598
5587
  withDebugOptions(
5599
5588
  withProjectOptions(
5600
- yargs44.positional("ids", {
5589
+ yargs45.positional("ids", {
5601
5590
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5602
5591
  type: "string"
5603
5592
  }).option("all", {
@@ -5665,12 +5654,12 @@ var CompositionUpdateModule = {
5665
5654
  command: "update <filename>",
5666
5655
  aliases: ["put"],
5667
5656
  describe: "Insert or update a composition",
5668
- builder: (yargs44) => withConfiguration(
5657
+ builder: (yargs45) => withConfiguration(
5669
5658
  withApiOptions(
5670
5659
  withProjectOptions(
5671
5660
  withDebugOptions(
5672
5661
  withStateOptions(
5673
- yargs44.positional("filename", {
5662
+ yargs45.positional("filename", {
5674
5663
  demandOption: true,
5675
5664
  describe: "Composition/pattern file to put"
5676
5665
  })
@@ -5693,7 +5682,7 @@ var ComponentPatternUpdateModule = {
5693
5682
  var ComponentPatternModule = {
5694
5683
  command: "component-pattern <command>",
5695
5684
  describe: "Commands for Canvas component patterns",
5696
- builder: (yargs44) => yargs44.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5685
+ builder: (yargs45) => yargs45.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5697
5686
  handler: () => {
5698
5687
  yargs8.help();
5699
5688
  }
@@ -5705,7 +5694,7 @@ var CompositionModule = {
5705
5694
  command: "composition <command>",
5706
5695
  describe: "Commands for Canvas compositions",
5707
5696
  aliases: ["comp"],
5708
- builder: (yargs44) => yargs44.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5697
+ builder: (yargs45) => yargs45.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5709
5698
  handler: () => {
5710
5699
  yargs9.help();
5711
5700
  }
@@ -5725,13 +5714,13 @@ var CompositionPatternGetModule = {
5725
5714
  var CompositionPatternListModule = {
5726
5715
  ...CompositionListModule,
5727
5716
  describe: "List composition patterns",
5728
- builder: (yargs44) => withFormatOptions(
5717
+ builder: (yargs45) => withFormatOptions(
5729
5718
  withConfiguration(
5730
5719
  withApiOptions(
5731
5720
  withDebugOptions(
5732
5721
  withProjectOptions(
5733
5722
  withStateOptions(
5734
- yargs44.options({
5723
+ yargs45.options({
5735
5724
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
5736
5725
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
5737
5726
  resolvePatterns: {
@@ -5769,13 +5758,13 @@ var CompositionPatternListModule = {
5769
5758
  var CompositionPatternPublishModule = {
5770
5759
  ...CompositionPublishModule,
5771
5760
  describe: "Publishes composition pattern(s)",
5772
- builder: (yargs44) => withConfiguration(
5761
+ builder: (yargs45) => withConfiguration(
5773
5762
  withApiOptions(
5774
5763
  withDebugOptions(
5775
5764
  withProjectOptions(
5776
5765
  withDiffOptions(
5777
5766
  withBatchSizeOptions(
5778
- yargs44.positional("ids", {
5767
+ yargs45.positional("ids", {
5779
5768
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5780
5769
  type: "string"
5781
5770
  }).option("all", {
@@ -5816,13 +5805,13 @@ var CompositionPatternPublishModule = {
5816
5805
  var CompositionPatternPullModule = {
5817
5806
  ...componentInstancePullModuleFactory("compositionPatterns", "compositionPattern"),
5818
5807
  describe: "Pulls all composition patterns to local files in a directory",
5819
- builder: (yargs44) => withConfiguration(
5808
+ builder: (yargs45) => withConfiguration(
5820
5809
  withApiOptions(
5821
5810
  withDebugOptions(
5822
5811
  withProjectOptions(
5823
5812
  withStateOptions(
5824
5813
  withDiffOptions(
5825
- yargs44.positional("directory", {
5814
+ yargs45.positional("directory", {
5826
5815
  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.",
5827
5816
  type: "string"
5828
5817
  }).option("format", {
@@ -5860,13 +5849,13 @@ var CompositionPatternPullModule = {
5860
5849
  var CompositionPatternPushModule = {
5861
5850
  ...componentInstancePushModuleFactory("compositionPatterns", "compositionPattern"),
5862
5851
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
5863
- builder: (yargs44) => withConfiguration(
5852
+ builder: (yargs45) => withConfiguration(
5864
5853
  withApiOptions(
5865
5854
  withDebugOptions(
5866
5855
  withProjectOptions(
5867
5856
  withStateOptions(
5868
5857
  withDiffOptions(
5869
- yargs44.positional("directory", {
5858
+ yargs45.positional("directory", {
5870
5859
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
5871
5860
  type: "string"
5872
5861
  }).option("mode", {
@@ -5906,11 +5895,11 @@ var CompositionPatternRemoveModule = {
5906
5895
  var CompositionPatternUnpublishModule = {
5907
5896
  command: "unpublish [ids]",
5908
5897
  describe: "Unpublish a composition pattern(s)",
5909
- builder: (yargs44) => withConfiguration(
5898
+ builder: (yargs45) => withConfiguration(
5910
5899
  withApiOptions(
5911
5900
  withDebugOptions(
5912
5901
  withProjectOptions(
5913
- yargs44.positional("ids", {
5902
+ yargs45.positional("ids", {
5914
5903
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5915
5904
  type: "string"
5916
5905
  }).option("all", {
@@ -5947,7 +5936,7 @@ var CompositionPatternUpdateModule = {
5947
5936
  var CompositionPatternModule = {
5948
5937
  command: "composition-pattern <command>",
5949
5938
  describe: "Commands for Canvas composition patterns",
5950
- builder: (yargs44) => yargs44.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5939
+ builder: (yargs45) => yargs45.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5951
5940
  handler: () => {
5952
5941
  yargs10.help();
5953
5942
  }
@@ -5978,12 +5967,12 @@ function getEntryDeliveryClient(options) {
5978
5967
  var ContentTypeGetModule = {
5979
5968
  command: "get <id>",
5980
5969
  describe: "Get a content type",
5981
- builder: (yargs44) => withConfiguration(
5970
+ builder: (yargs45) => withConfiguration(
5982
5971
  withDebugOptions(
5983
5972
  withFormatOptions(
5984
5973
  withApiOptions(
5985
5974
  withProjectOptions(
5986
- yargs44.positional("id", {
5975
+ yargs45.positional("id", {
5987
5976
  demandOption: true,
5988
5977
  describe: "Content type public ID to fetch"
5989
5978
  })
@@ -6004,7 +5993,7 @@ var ContentTypeGetModule = {
6004
5993
  var ContentTypeListModule = {
6005
5994
  command: "list",
6006
5995
  describe: "List content types",
6007
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
5996
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6008
5997
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6009
5998
  const fetch2 = nodeFetchProxy(proxy, verbose);
6010
5999
  const client = getContentTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6050,13 +6039,13 @@ function createContentTypeEngineDataSource({
6050
6039
  var ContentTypePullModule = {
6051
6040
  command: "pull <directory>",
6052
6041
  describe: "Pulls all content types to local files in a directory",
6053
- builder: (yargs44) => withConfiguration(
6042
+ builder: (yargs45) => withConfiguration(
6054
6043
  withApiOptions(
6055
6044
  withDebugOptions(
6056
6045
  withProjectOptions(
6057
6046
  withDiffOptions(
6058
6047
  withBatchSizeOptions(
6059
- yargs44.positional("directory", {
6048
+ yargs45.positional("directory", {
6060
6049
  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.",
6061
6050
  type: "string"
6062
6051
  }).option("format", {
@@ -6143,13 +6132,13 @@ var ContentTypePullModule = {
6143
6132
  var ContentTypePushModule = {
6144
6133
  command: "push <directory>",
6145
6134
  describe: "Pushes all content types from files in a directory to Uniform",
6146
- builder: (yargs44) => withConfiguration(
6135
+ builder: (yargs45) => withConfiguration(
6147
6136
  withApiOptions(
6148
6137
  withDebugOptions(
6149
6138
  withProjectOptions(
6150
6139
  withDiffOptions(
6151
6140
  withBatchSizeOptions(
6152
- yargs44.positional("directory", {
6141
+ yargs45.positional("directory", {
6153
6142
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
6154
6143
  type: "string"
6155
6144
  }).option("what-if", {
@@ -6230,11 +6219,11 @@ var ContentTypeRemoveModule = {
6230
6219
  command: "remove <id>",
6231
6220
  aliases: ["delete", "rm"],
6232
6221
  describe: "Delete a content type",
6233
- builder: (yargs44) => withConfiguration(
6222
+ builder: (yargs45) => withConfiguration(
6234
6223
  withDebugOptions(
6235
6224
  withApiOptions(
6236
6225
  withProjectOptions(
6237
- yargs44.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6226
+ yargs45.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6238
6227
  )
6239
6228
  )
6240
6229
  )
@@ -6255,11 +6244,11 @@ var ContentTypeUpdateModule = {
6255
6244
  command: "update <filename>",
6256
6245
  aliases: ["put"],
6257
6246
  describe: "Insert or update a content type",
6258
- builder: (yargs44) => withConfiguration(
6247
+ builder: (yargs45) => withConfiguration(
6259
6248
  withDebugOptions(
6260
6249
  withApiOptions(
6261
6250
  withProjectOptions(
6262
- yargs44.positional("filename", { demandOption: true, describe: "Content type file to put" })
6251
+ yargs45.positional("filename", { demandOption: true, describe: "Content type file to put" })
6263
6252
  )
6264
6253
  )
6265
6254
  )
@@ -6281,15 +6270,307 @@ var ContentTypeModule = {
6281
6270
  command: "contenttype <command>",
6282
6271
  aliases: ["ct"],
6283
6272
  describe: "Commands for Content Types",
6284
- builder: (yargs44) => yargs44.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6273
+ builder: (yargs45) => yargs45.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6285
6274
  handler: () => {
6286
6275
  yargs11.help();
6287
6276
  }
6288
6277
  };
6289
6278
 
6290
- // src/commands/canvas/commands/dataSource.ts
6279
+ // src/commands/canvas/commands/customView.ts
6291
6280
  import yargs12 from "yargs";
6292
6281
 
6282
+ // src/commands/canvas/commands/customView/customViewClient.ts
6283
+ import { ApiClient } from "@uniformdev/context/api";
6284
+ var VIEWS_URL = "/api/v1/views";
6285
+ var CANVAS_RESOURCE_TYPES = [
6286
+ "composition",
6287
+ "compositionPattern",
6288
+ "component",
6289
+ "componentPattern",
6290
+ "entry",
6291
+ "entryPattern",
6292
+ "contentType",
6293
+ "blockType",
6294
+ "release",
6295
+ "signal",
6296
+ "intent",
6297
+ "audience",
6298
+ "asset"
6299
+ ];
6300
+ var CustomViewClient = class extends ApiClient {
6301
+ /** Lists saved views visible to the current caller (shared + own private). */
6302
+ async list(options) {
6303
+ const { projectId } = this.options;
6304
+ const fetchUri = this.createUrl(VIEWS_URL, { ...options, projectId });
6305
+ return await this.apiClient(fetchUri);
6306
+ }
6307
+ /**
6308
+ * Create-or-replace a saved view (`PUT`). When `id` is omitted a UUID is minted.
6309
+ */
6310
+ async put(body) {
6311
+ const { projectId } = this.options;
6312
+ const fetchUri = this.createUrl(VIEWS_URL);
6313
+ const id = body.id ?? crypto.randomUUID();
6314
+ return await this.apiClient(fetchUri, {
6315
+ method: "PUT",
6316
+ body: JSON.stringify({ ...body, id, projectId })
6317
+ });
6318
+ }
6319
+ /** Deletes a saved view by id (`DELETE`). */
6320
+ async remove(id) {
6321
+ const { projectId } = this.options;
6322
+ const fetchUri = this.createUrl(VIEWS_URL);
6323
+ await this.apiClient(fetchUri, {
6324
+ method: "DELETE",
6325
+ body: JSON.stringify({ id, projectId }),
6326
+ expectNoContent: true
6327
+ });
6328
+ }
6329
+ };
6330
+
6331
+ // src/commands/canvas/commands/customView/_util.ts
6332
+ var selectIdentifier4 = (view) => view.id;
6333
+ var selectDisplayName4 = (view) => `${view.name} (${view.resourceType})`;
6334
+ function getCustomViewClient(options) {
6335
+ return new CustomViewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6336
+ }
6337
+
6338
+ // src/commands/canvas/customViewEngineDataSource.ts
6339
+ function normalizeCustomViewForSync(view) {
6340
+ const {
6341
+ projectId: _projectId,
6342
+ createdBy: _createdBy,
6343
+ created: _created,
6344
+ modified: _modified,
6345
+ ...rest
6346
+ } = view;
6347
+ return rest;
6348
+ }
6349
+ function createCustomViewEngineDataSource({
6350
+ client,
6351
+ batchSize,
6352
+ verbose
6353
+ }) {
6354
+ async function* getObjects() {
6355
+ const pageSize = batchSize ?? 100;
6356
+ for (const resourceType of CANVAS_RESOURCE_TYPES) {
6357
+ const views = paginateAsync(
6358
+ async (offset, limit2) => (await client.list({ resourceType, offset, limit: limit2 })).views,
6359
+ {
6360
+ pageSize,
6361
+ verbose,
6362
+ entityName: `custom views (${resourceType})`
6363
+ }
6364
+ );
6365
+ for await (const view of views) {
6366
+ if (!view.shared) {
6367
+ continue;
6368
+ }
6369
+ const object4 = normalizeCustomViewForSync(view);
6370
+ const result = {
6371
+ id: selectIdentifier4(object4),
6372
+ displayName: selectDisplayName4(object4),
6373
+ providerId: object4.id,
6374
+ object: object4
6375
+ };
6376
+ yield result;
6377
+ }
6378
+ }
6379
+ }
6380
+ return {
6381
+ name: "Uniform API",
6382
+ objects: getObjects(),
6383
+ deleteObject: async (providerId) => {
6384
+ await client.remove(providerId);
6385
+ },
6386
+ writeObject: async ({ object: object4 }) => {
6387
+ if (!object4.shared) {
6388
+ throw new Error(
6389
+ `Custom view "${object4.name}" (${object4.id}) is personal and cannot be pushed. Only shared views are supported.`
6390
+ );
6391
+ }
6392
+ await client.put(object4);
6393
+ }
6394
+ };
6395
+ }
6396
+
6397
+ // src/commands/canvas/commands/customView/pull.ts
6398
+ var CustomViewPullModule = {
6399
+ command: "pull <directory>",
6400
+ describe: "Pulls all shared custom views to local files in a directory",
6401
+ builder: (yargs45) => withConfiguration(
6402
+ withApiOptions(
6403
+ withDebugOptions(
6404
+ withProjectOptions(
6405
+ withDiffOptions(
6406
+ withBatchSizeOptions(
6407
+ yargs45.positional("directory", {
6408
+ 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.",
6409
+ type: "string"
6410
+ }).option("format", {
6411
+ alias: ["f"],
6412
+ describe: "Output format",
6413
+ default: "yaml",
6414
+ choices: ["yaml", "json"],
6415
+ type: "string"
6416
+ }).option("mode", {
6417
+ alias: ["m"],
6418
+ 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',
6419
+ choices: ["create", "createOrUpdate", "mirror"],
6420
+ default: "mirror",
6421
+ type: "string"
6422
+ }),
6423
+ "customView"
6424
+ )
6425
+ )
6426
+ )
6427
+ )
6428
+ )
6429
+ ),
6430
+ handler: async ({
6431
+ apiHost,
6432
+ apiKey,
6433
+ proxy,
6434
+ directory,
6435
+ format,
6436
+ mode,
6437
+ whatIf,
6438
+ project: projectId,
6439
+ diff: diffMode,
6440
+ allowEmptySource,
6441
+ verbose,
6442
+ resolvedBatchSize
6443
+ }) => {
6444
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6445
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6446
+ const source = createCustomViewEngineDataSource({
6447
+ client,
6448
+ verbose,
6449
+ batchSize: resolvedBatchSize
6450
+ });
6451
+ let target;
6452
+ const isPackage = isPathAPackageFile(directory);
6453
+ if (isPackage) {
6454
+ const packageContents = readCanvasPackage(directory, false, verbose);
6455
+ target = await createArraySyncEngineDataSource({
6456
+ name: `Package file ${directory}`,
6457
+ objects: packageContents.customViews ?? [],
6458
+ selectIdentifier: selectIdentifier4,
6459
+ selectDisplayName: selectDisplayName4,
6460
+ onSyncComplete: async (_, synced) => {
6461
+ packageContents.customViews = synced;
6462
+ writeCanvasPackage(directory, packageContents);
6463
+ }
6464
+ });
6465
+ } else {
6466
+ target = await createFileSyncEngineDataSource({
6467
+ directory,
6468
+ selectIdentifier: selectIdentifier4,
6469
+ selectDisplayName: selectDisplayName4,
6470
+ format,
6471
+ verbose
6472
+ });
6473
+ }
6474
+ await syncEngine({
6475
+ source,
6476
+ target,
6477
+ mode,
6478
+ whatIf,
6479
+ allowEmptySource: allowEmptySource ?? true,
6480
+ log: createSyncEngineConsoleLogger({ diffMode })
6481
+ });
6482
+ }
6483
+ };
6484
+
6485
+ // src/commands/canvas/commands/customView/push.ts
6486
+ var CustomViewPushModule = {
6487
+ command: "push <directory>",
6488
+ describe: "Pushes all shared custom views from files in a directory to Uniform",
6489
+ builder: (yargs45) => withConfiguration(
6490
+ withDebugOptions(
6491
+ withApiOptions(
6492
+ withProjectOptions(
6493
+ withDiffOptions(
6494
+ withBatchSizeOptions(
6495
+ yargs45.positional("directory", {
6496
+ describe: "Directory to read from. If a filename is used, a package will be read instead.",
6497
+ type: "string"
6498
+ }).option("mode", {
6499
+ alias: ["m"],
6500
+ 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',
6501
+ choices: ["create", "createOrUpdate", "mirror"],
6502
+ default: "mirror",
6503
+ type: "string"
6504
+ }),
6505
+ "customView"
6506
+ )
6507
+ )
6508
+ )
6509
+ )
6510
+ )
6511
+ ),
6512
+ handler: async ({
6513
+ apiHost,
6514
+ apiKey,
6515
+ proxy,
6516
+ directory,
6517
+ mode,
6518
+ whatIf,
6519
+ project: projectId,
6520
+ diff: diffMode,
6521
+ allowEmptySource,
6522
+ verbose,
6523
+ resolvedBatchSize
6524
+ }) => {
6525
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6526
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6527
+ let source;
6528
+ const isPackage = isPathAPackageFile(directory);
6529
+ if (isPackage) {
6530
+ const packageContents = readCanvasPackage(directory, true, verbose);
6531
+ source = await createArraySyncEngineDataSource({
6532
+ name: `Package file ${directory}`,
6533
+ objects: packageContents.customViews ?? [],
6534
+ selectIdentifier: selectIdentifier4,
6535
+ selectDisplayName: selectDisplayName4
6536
+ });
6537
+ } else {
6538
+ source = await createFileSyncEngineDataSource({
6539
+ directory,
6540
+ selectIdentifier: selectIdentifier4,
6541
+ selectDisplayName: selectDisplayName4,
6542
+ verbose
6543
+ });
6544
+ }
6545
+ const target = createCustomViewEngineDataSource({
6546
+ client,
6547
+ verbose,
6548
+ batchSize: resolvedBatchSize
6549
+ });
6550
+ await syncEngine({
6551
+ source,
6552
+ target,
6553
+ mode,
6554
+ whatIf,
6555
+ allowEmptySource,
6556
+ log: createSyncEngineConsoleLogger({ diffMode })
6557
+ });
6558
+ }
6559
+ };
6560
+
6561
+ // src/commands/canvas/commands/customView.ts
6562
+ var CustomViewModule = {
6563
+ command: "custom-view <command>",
6564
+ describe: "Commands for shared custom views",
6565
+ builder: (yargs45) => yargs45.command(CustomViewPullModule).command(CustomViewPushModule).demandCommand(),
6566
+ handler: () => {
6567
+ yargs12.help();
6568
+ }
6569
+ };
6570
+
6571
+ // src/commands/canvas/commands/dataSource.ts
6572
+ import yargs13 from "yargs";
6573
+
6293
6574
  // src/commands/canvas/commands/dataSource/_util.ts
6294
6575
  import { DataSourceClient } from "@uniformdev/canvas";
6295
6576
  function getDataSourceClient(options) {
@@ -6300,11 +6581,11 @@ function getDataSourceClient(options) {
6300
6581
  var DataSourceGetModule = {
6301
6582
  command: "get <id>",
6302
6583
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
6303
- builder: (yargs44) => withConfiguration(
6584
+ builder: (yargs45) => withConfiguration(
6304
6585
  withApiOptions(
6305
6586
  withDebugOptions(
6306
6587
  withProjectOptions(
6307
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6588
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6308
6589
  )
6309
6590
  )
6310
6591
  )
@@ -6322,11 +6603,11 @@ var DataSourceRemoveModule = {
6322
6603
  command: "remove <id>",
6323
6604
  aliases: ["delete", "rm"],
6324
6605
  describe: "Delete a data source",
6325
- builder: (yargs44) => withConfiguration(
6606
+ builder: (yargs45) => withConfiguration(
6326
6607
  withDebugOptions(
6327
6608
  withApiOptions(
6328
6609
  withProjectOptions(
6329
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6610
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6330
6611
  )
6331
6612
  )
6332
6613
  )
@@ -6347,11 +6628,11 @@ var DataSourceUpdateModule = {
6347
6628
  command: "update <dataSource>",
6348
6629
  aliases: ["put"],
6349
6630
  describe: "Insert or update a data source",
6350
- builder: (yargs44) => withConfiguration(
6631
+ builder: (yargs45) => withConfiguration(
6351
6632
  withApiOptions(
6352
6633
  withDebugOptions(
6353
6634
  withProjectOptions(
6354
- yargs44.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6635
+ yargs45.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6355
6636
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
6356
6637
  type: "string",
6357
6638
  demandOption: true
@@ -6386,19 +6667,19 @@ var DataSourceModule = {
6386
6667
  command: "datasource <command>",
6387
6668
  aliases: ["ds"],
6388
6669
  describe: "Commands for Data Source definitions",
6389
- builder: (yargs44) => yargs44.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6670
+ builder: (yargs45) => yargs45.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6390
6671
  handler: () => {
6391
- yargs12.help();
6672
+ yargs13.help();
6392
6673
  }
6393
6674
  };
6394
6675
 
6395
6676
  // src/commands/canvas/commands/dataType.ts
6396
- import yargs13 from "yargs";
6677
+ import yargs14 from "yargs";
6397
6678
 
6398
6679
  // src/commands/canvas/commands/dataType/_util.ts
6399
6680
  import { DataTypeClient } from "@uniformdev/canvas";
6400
- var selectIdentifier4 = (dataType) => dataType.id;
6401
- var selectDisplayName4 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6681
+ var selectIdentifier5 = (dataType) => dataType.id;
6682
+ var selectDisplayName5 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6402
6683
  function getDataTypeClient(options) {
6403
6684
  return new DataTypeClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
6404
6685
  }
@@ -6408,12 +6689,12 @@ var DataTypeGetModule = {
6408
6689
  command: "get <id>",
6409
6690
  describe: "Get a data type",
6410
6691
  aliases: ["ls"],
6411
- builder: (yargs44) => withConfiguration(
6692
+ builder: (yargs45) => withConfiguration(
6412
6693
  withFormatOptions(
6413
6694
  withDebugOptions(
6414
6695
  withApiOptions(
6415
6696
  withProjectOptions(
6416
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6697
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6417
6698
  )
6418
6699
  )
6419
6700
  )
@@ -6436,7 +6717,7 @@ var DataTypeListModule = {
6436
6717
  command: "list",
6437
6718
  describe: "List data types",
6438
6719
  aliases: ["ls"],
6439
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6720
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6440
6721
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6441
6722
  const fetch2 = nodeFetchProxy(proxy, verbose);
6442
6723
  const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6453,8 +6734,8 @@ function createDataTypeEngineDataSource({
6453
6734
  const dataTypes = (await client.list()).results;
6454
6735
  for await (const dataType of dataTypes) {
6455
6736
  const result = {
6456
- id: selectIdentifier4(dataType),
6457
- displayName: selectDisplayName4(dataType),
6737
+ id: selectIdentifier5(dataType),
6738
+ displayName: selectDisplayName5(dataType),
6458
6739
  providerId: dataType.id,
6459
6740
  object: dataType
6460
6741
  };
@@ -6479,12 +6760,12 @@ function createDataTypeEngineDataSource({
6479
6760
  var DataTypePullModule = {
6480
6761
  command: "pull <directory>",
6481
6762
  describe: "Pulls all data types to local files in a directory",
6482
- builder: (yargs44) => withConfiguration(
6763
+ builder: (yargs45) => withConfiguration(
6483
6764
  withApiOptions(
6484
6765
  withDebugOptions(
6485
6766
  withProjectOptions(
6486
6767
  withDiffOptions(
6487
- yargs44.positional("directory", {
6768
+ yargs45.positional("directory", {
6488
6769
  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.",
6489
6770
  type: "string"
6490
6771
  }).option("format", {
@@ -6533,8 +6814,8 @@ var DataTypePullModule = {
6533
6814
  target = await createArraySyncEngineDataSource({
6534
6815
  name: `Package file ${directory}`,
6535
6816
  objects: packageContents.dataTypes ?? [],
6536
- selectIdentifier: selectIdentifier4,
6537
- selectDisplayName: selectDisplayName4,
6817
+ selectIdentifier: selectIdentifier5,
6818
+ selectDisplayName: selectDisplayName5,
6538
6819
  onSyncComplete: async (_, synced) => {
6539
6820
  packageContents.dataTypes = synced;
6540
6821
  writeCanvasPackage(directory, packageContents);
@@ -6543,8 +6824,8 @@ var DataTypePullModule = {
6543
6824
  } else {
6544
6825
  target = await createFileSyncEngineDataSource({
6545
6826
  directory,
6546
- selectIdentifier: selectIdentifier4,
6547
- selectDisplayName: selectDisplayName4,
6827
+ selectIdentifier: selectIdentifier5,
6828
+ selectDisplayName: selectDisplayName5,
6548
6829
  format,
6549
6830
  verbose
6550
6831
  });
@@ -6564,12 +6845,12 @@ var DataTypePullModule = {
6564
6845
  var DataTypePushModule = {
6565
6846
  command: "push <directory>",
6566
6847
  describe: "Pushes all data types from files in a directory to Uniform",
6567
- builder: (yargs44) => withConfiguration(
6848
+ builder: (yargs45) => withConfiguration(
6568
6849
  withApiOptions(
6569
6850
  withDebugOptions(
6570
6851
  withProjectOptions(
6571
6852
  withDiffOptions(
6572
- yargs44.positional("directory", {
6853
+ yargs45.positional("directory", {
6573
6854
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
6574
6855
  type: "string"
6575
6856
  }).option("mode", {
@@ -6610,14 +6891,14 @@ var DataTypePushModule = {
6610
6891
  source = await createArraySyncEngineDataSource({
6611
6892
  name: `Package file ${directory}`,
6612
6893
  objects: packageContents.dataTypes ?? [],
6613
- selectIdentifier: selectIdentifier4,
6614
- selectDisplayName: selectDisplayName4
6894
+ selectIdentifier: selectIdentifier5,
6895
+ selectDisplayName: selectDisplayName5
6615
6896
  });
6616
6897
  } else {
6617
6898
  source = await createFileSyncEngineDataSource({
6618
6899
  directory,
6619
- selectIdentifier: selectIdentifier4,
6620
- selectDisplayName: selectDisplayName4,
6900
+ selectIdentifier: selectIdentifier5,
6901
+ selectDisplayName: selectDisplayName5,
6621
6902
  verbose
6622
6903
  });
6623
6904
  }
@@ -6638,11 +6919,11 @@ var DataTypeRemoveModule = {
6638
6919
  command: "remove <id>",
6639
6920
  aliases: ["delete", "rm"],
6640
6921
  describe: "Delete a data type",
6641
- builder: (yargs44) => withConfiguration(
6922
+ builder: (yargs45) => withConfiguration(
6642
6923
  withDebugOptions(
6643
6924
  withApiOptions(
6644
6925
  withProjectOptions(
6645
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6926
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6646
6927
  )
6647
6928
  )
6648
6929
  )
@@ -6663,11 +6944,11 @@ var DataTypeUpdateModule = {
6663
6944
  command: "update <filename>",
6664
6945
  aliases: ["put"],
6665
6946
  describe: "Insert or update a data type",
6666
- builder: (yargs44) => withConfiguration(
6947
+ builder: (yargs45) => withConfiguration(
6667
6948
  withDebugOptions(
6668
6949
  withApiOptions(
6669
6950
  withProjectOptions(
6670
- yargs44.positional("filename", { demandOption: true, describe: "Data type file to put" })
6951
+ yargs45.positional("filename", { demandOption: true, describe: "Data type file to put" })
6671
6952
  )
6672
6953
  )
6673
6954
  )
@@ -6689,14 +6970,14 @@ var DataTypeModule = {
6689
6970
  command: "datatype <command>",
6690
6971
  aliases: ["dt"],
6691
6972
  describe: "Commands for Data Type definitions",
6692
- builder: (yargs44) => yargs44.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6973
+ builder: (yargs45) => yargs45.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6693
6974
  handler: () => {
6694
- yargs13.help();
6975
+ yargs14.help();
6695
6976
  }
6696
6977
  };
6697
6978
 
6698
6979
  // src/commands/canvas/commands/entry.ts
6699
- import yargs14 from "yargs";
6980
+ import yargs15 from "yargs";
6700
6981
 
6701
6982
  // src/commands/canvas/commands/entry/get.ts
6702
6983
  function createEntryGetHandler(expectedType) {
@@ -6745,13 +7026,13 @@ function createEntryGetHandler(expectedType) {
6745
7026
  var EntryGetModule = {
6746
7027
  command: "get <id>",
6747
7028
  describe: "Get an entry",
6748
- builder: (yargs44) => withConfiguration(
7029
+ builder: (yargs45) => withConfiguration(
6749
7030
  withDebugOptions(
6750
7031
  withFormatOptions(
6751
7032
  withApiOptions(
6752
7033
  withProjectOptions(
6753
7034
  withStateOptions(
6754
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
7035
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
6755
7036
  resolveData: {
6756
7037
  type: "boolean",
6757
7038
  default: false,
@@ -6785,13 +7066,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
6785
7066
  var EntryListModule = {
6786
7067
  command: "list",
6787
7068
  describe: "List entries",
6788
- builder: (yargs44) => withConfiguration(
7069
+ builder: (yargs45) => withConfiguration(
6789
7070
  withDebugOptions(
6790
7071
  withFormatOptions(
6791
7072
  withApiOptions(
6792
7073
  withProjectOptions(
6793
7074
  withStateOptions(
6794
- yargs44.options({
7075
+ yargs45.options({
6795
7076
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
6796
7077
  limit: {
6797
7078
  describe: "Number of rows to fetch",
@@ -6920,13 +7201,13 @@ function createEntryEngineDataSource({
6920
7201
  var EntryPublishModule = {
6921
7202
  command: "publish [ids]",
6922
7203
  describe: "Publishes entry(ies)",
6923
- builder: (yargs44) => withConfiguration(
7204
+ builder: (yargs45) => withConfiguration(
6924
7205
  withDebugOptions(
6925
7206
  withDiffOptions(
6926
7207
  withApiOptions(
6927
7208
  withProjectOptions(
6928
7209
  withBatchSizeOptions(
6929
- yargs44.positional("ids", {
7210
+ yargs45.positional("ids", {
6930
7211
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
6931
7212
  type: "string"
6932
7213
  }).option("all", {
@@ -7003,14 +7284,14 @@ var EntryPublishModule = {
7003
7284
  var EntryPullModule = {
7004
7285
  command: "pull <directory>",
7005
7286
  describe: "Pulls all entries to local files in a directory",
7006
- builder: (yargs44) => withConfiguration(
7287
+ builder: (yargs45) => withConfiguration(
7007
7288
  withDebugOptions(
7008
7289
  withApiOptions(
7009
7290
  withProjectOptions(
7010
7291
  withStateOptions(
7011
7292
  withDiffOptions(
7012
7293
  withBatchSizeOptions(
7013
- yargs44.positional("directory", {
7294
+ yargs45.positional("directory", {
7014
7295
  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.",
7015
7296
  type: "string"
7016
7297
  }).option("format", {
@@ -7119,14 +7400,14 @@ var EntryPullModule = {
7119
7400
  var EntryPushModule = {
7120
7401
  command: "push <directory>",
7121
7402
  describe: "Pushes all entries from files in a directory to Uniform",
7122
- builder: (yargs44) => withConfiguration(
7403
+ builder: (yargs45) => withConfiguration(
7123
7404
  withDebugOptions(
7124
7405
  withApiOptions(
7125
7406
  withProjectOptions(
7126
7407
  withStateOptions(
7127
7408
  withDiffOptions(
7128
7409
  withBatchSizeOptions(
7129
- yargs44.positional("directory", {
7410
+ yargs45.positional("directory", {
7130
7411
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
7131
7412
  type: "string"
7132
7413
  }).option("mode", {
@@ -7265,11 +7546,11 @@ var EntryRemoveModule = {
7265
7546
  command: "remove <id>",
7266
7547
  aliases: ["delete", "rm"],
7267
7548
  describe: "Delete an entry",
7268
- builder: (yargs44) => withConfiguration(
7549
+ builder: (yargs45) => withConfiguration(
7269
7550
  withDebugOptions(
7270
7551
  withApiOptions(
7271
7552
  withProjectOptions(
7272
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7553
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7273
7554
  )
7274
7555
  )
7275
7556
  )
@@ -7283,12 +7564,12 @@ import { diffJson as diffJson3 } from "diff";
7283
7564
  var EntryUnpublishModule = {
7284
7565
  command: "unpublish [ids]",
7285
7566
  describe: "Unpublish an entry(ies)",
7286
- builder: (yargs44) => withConfiguration(
7567
+ builder: (yargs45) => withConfiguration(
7287
7568
  withDebugOptions(
7288
7569
  withApiOptions(
7289
7570
  withProjectOptions(
7290
7571
  withBatchSizeOptions(
7291
- yargs44.positional("ids", {
7572
+ yargs45.positional("ids", {
7292
7573
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7293
7574
  type: "string"
7294
7575
  }).option("all", {
@@ -7426,12 +7707,12 @@ var EntryUpdateModule = {
7426
7707
  command: "update <filename>",
7427
7708
  aliases: ["put"],
7428
7709
  describe: "Insert or update an entry",
7429
- builder: (yargs44) => withConfiguration(
7710
+ builder: (yargs45) => withConfiguration(
7430
7711
  withDebugOptions(
7431
7712
  withApiOptions(
7432
7713
  withProjectOptions(
7433
7714
  withStateOptions(
7434
- yargs44.positional("filename", { demandOption: true, describe: "Entry file to put" })
7715
+ yargs45.positional("filename", { demandOption: true, describe: "Entry file to put" })
7435
7716
  )
7436
7717
  )
7437
7718
  )
@@ -7444,26 +7725,26 @@ var EntryUpdateModule = {
7444
7725
  var EntryModule = {
7445
7726
  command: "entry <command>",
7446
7727
  describe: "Commands for Entries",
7447
- builder: (yargs44) => yargs44.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7728
+ builder: (yargs45) => yargs45.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7448
7729
  handler: () => {
7449
- yargs14.help();
7730
+ yargs15.help();
7450
7731
  }
7451
7732
  };
7452
7733
 
7453
7734
  // src/commands/canvas/commands/entryPattern.ts
7454
- import yargs15 from "yargs";
7735
+ import yargs16 from "yargs";
7455
7736
 
7456
7737
  // src/commands/canvas/commands/entryPattern/get.ts
7457
7738
  var EntryPatternGetModule = {
7458
7739
  command: "get <id>",
7459
7740
  describe: "Get an entry pattern",
7460
- builder: (yargs44) => withConfiguration(
7741
+ builder: (yargs45) => withConfiguration(
7461
7742
  withDebugOptions(
7462
7743
  withFormatOptions(
7463
7744
  withApiOptions(
7464
7745
  withProjectOptions(
7465
7746
  withStateOptions(
7466
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7747
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7467
7748
  resolveData: {
7468
7749
  type: "boolean",
7469
7750
  default: false,
@@ -7495,9 +7776,9 @@ var EntryPatternGetModule = {
7495
7776
  var EntryPatternListModule = {
7496
7777
  command: "list",
7497
7778
  describe: "List entry patterns",
7498
- builder: (yargs44) => withConfiguration(
7779
+ builder: (yargs45) => withConfiguration(
7499
7780
  withDebugOptions(
7500
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs44, "published"))))
7781
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs45, "published"))))
7501
7782
  )
7502
7783
  ),
7503
7784
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, state, verbose }) => {
@@ -7517,13 +7798,13 @@ var EntryPatternListModule = {
7517
7798
  var EntryPatternPublishModule = {
7518
7799
  command: "publish [ids]",
7519
7800
  describe: "Publishes entry pattern(s)",
7520
- builder: (yargs44) => withConfiguration(
7801
+ builder: (yargs45) => withConfiguration(
7521
7802
  withDebugOptions(
7522
7803
  withApiOptions(
7523
7804
  withProjectOptions(
7524
7805
  withDiffOptions(
7525
7806
  withBatchSizeOptions(
7526
- yargs44.positional("ids", {
7807
+ yargs45.positional("ids", {
7527
7808
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
7528
7809
  type: "string"
7529
7810
  }).option("all", {
@@ -7600,14 +7881,14 @@ var EntryPatternPublishModule = {
7600
7881
  var EntryPatternPullModule = {
7601
7882
  command: "pull <directory>",
7602
7883
  describe: "Pulls all entry patterns to local files in a directory",
7603
- builder: (yargs44) => withConfiguration(
7884
+ builder: (yargs45) => withConfiguration(
7604
7885
  withApiOptions(
7605
7886
  withDebugOptions(
7606
7887
  withProjectOptions(
7607
7888
  withStateOptions(
7608
7889
  withDiffOptions(
7609
7890
  withBatchSizeOptions(
7610
- yargs44.positional("directory", {
7891
+ yargs45.positional("directory", {
7611
7892
  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.",
7612
7893
  type: "string"
7613
7894
  }).option("format", {
@@ -7716,14 +7997,14 @@ var EntryPatternPullModule = {
7716
7997
  var EntryPatternPushModule = {
7717
7998
  command: "push <directory>",
7718
7999
  describe: "Pushes all entry patterns from files in a directory to Uniform",
7719
- builder: (yargs44) => withConfiguration(
8000
+ builder: (yargs45) => withConfiguration(
7720
8001
  withDebugOptions(
7721
8002
  withApiOptions(
7722
8003
  withProjectOptions(
7723
8004
  withStateOptions(
7724
8005
  withDiffOptions(
7725
8006
  withBatchSizeOptions(
7726
- yargs44.positional("directory", {
8007
+ yargs45.positional("directory", {
7727
8008
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
7728
8009
  type: "string"
7729
8010
  }).option("what-if", {
@@ -7836,11 +8117,11 @@ var EntryPatternRemoveModule = {
7836
8117
  command: "remove <id>",
7837
8118
  aliases: ["delete", "rm"],
7838
8119
  describe: "Delete an entry pattern",
7839
- builder: (yargs44) => withConfiguration(
8120
+ builder: (yargs45) => withConfiguration(
7840
8121
  withDebugOptions(
7841
8122
  withApiOptions(
7842
8123
  withProjectOptions(
7843
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
8124
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
7844
8125
  )
7845
8126
  )
7846
8127
  )
@@ -7854,12 +8135,12 @@ import { diffJson as diffJson4 } from "diff";
7854
8135
  var EntryPatternUnpublishModule = {
7855
8136
  command: "unpublish [ids]",
7856
8137
  describe: "Unpublish entry pattern(s)",
7857
- builder: (yargs44) => withConfiguration(
8138
+ builder: (yargs45) => withConfiguration(
7858
8139
  withDebugOptions(
7859
8140
  withApiOptions(
7860
8141
  withProjectOptions(
7861
8142
  withBatchSizeOptions(
7862
- yargs44.positional("ids", {
8143
+ yargs45.positional("ids", {
7863
8144
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7864
8145
  type: "string"
7865
8146
  }).option("all", {
@@ -7963,12 +8244,12 @@ var EntryPatternUpdateModule = {
7963
8244
  command: "update <filename>",
7964
8245
  aliases: ["put"],
7965
8246
  describe: "Insert or update an entry pattern",
7966
- builder: (yargs44) => withConfiguration(
8247
+ builder: (yargs45) => withConfiguration(
7967
8248
  withDebugOptions(
7968
8249
  withApiOptions(
7969
8250
  withProjectOptions(
7970
8251
  withStateOptions(
7971
- yargs44.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
8252
+ yargs45.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
7972
8253
  )
7973
8254
  )
7974
8255
  )
@@ -7981,14 +8262,14 @@ var EntryPatternUpdateModule = {
7981
8262
  var EntryPatternModule = {
7982
8263
  command: "entry-pattern <command>",
7983
8264
  describe: "Commands for Entry patterns",
7984
- builder: (yargs44) => yargs44.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
8265
+ builder: (yargs45) => yargs45.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
7985
8266
  handler: () => {
7986
- yargs15.help();
8267
+ yargs16.help();
7987
8268
  }
7988
8269
  };
7989
8270
 
7990
8271
  // src/commands/canvas/commands/label.ts
7991
- import yargs16 from "yargs";
8272
+ import yargs17 from "yargs";
7992
8273
 
7993
8274
  // src/commands/canvas/labelsEngineDataSource.ts
7994
8275
  function normalizeLabelForSync(label) {
@@ -8040,13 +8321,13 @@ function getLabelClient(options) {
8040
8321
  var LabelPullModule = {
8041
8322
  command: "pull <directory>",
8042
8323
  describe: "Pulls all labels to local files in a directory",
8043
- builder: (yargs44) => withConfiguration(
8324
+ builder: (yargs45) => withConfiguration(
8044
8325
  withDebugOptions(
8045
8326
  withApiOptions(
8046
8327
  withProjectOptions(
8047
8328
  withDiffOptions(
8048
8329
  withBatchSizeOptions(
8049
- yargs44.positional("directory", {
8330
+ yargs45.positional("directory", {
8050
8331
  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.",
8051
8332
  type: "string"
8052
8333
  }).option("format", {
@@ -8135,13 +8416,13 @@ var __INTERNAL_MISSING_PARENT_LABEL_ERROR = "Parent label with public ID";
8135
8416
  var LabelPushModule = {
8136
8417
  command: "push <directory>",
8137
8418
  describe: "Pushes all labels from files in a directory to Uniform",
8138
- builder: (yargs44) => withConfiguration(
8419
+ builder: (yargs45) => withConfiguration(
8139
8420
  withDebugOptions(
8140
8421
  withApiOptions(
8141
8422
  withProjectOptions(
8142
8423
  withDiffOptions(
8143
8424
  withBatchSizeOptions(
8144
- yargs44.positional("directory", {
8425
+ yargs45.positional("directory", {
8145
8426
  describe: "Directory to read the labels from. If a filename is used, a package will be read instead.",
8146
8427
  type: "string"
8147
8428
  }).option("mode", {
@@ -8239,14 +8520,14 @@ var LabelPushModule = {
8239
8520
  var LabelModule = {
8240
8521
  command: "label <command>",
8241
8522
  describe: "Commands for label definitions",
8242
- builder: (yargs44) => yargs44.command(LabelPullModule).command(LabelPushModule),
8523
+ builder: (yargs45) => yargs45.command(LabelPullModule).command(LabelPushModule),
8243
8524
  handler: () => {
8244
- yargs16.help();
8525
+ yargs17.help();
8245
8526
  }
8246
8527
  };
8247
8528
 
8248
8529
  // src/commands/canvas/commands/locale.ts
8249
- import yargs17 from "yargs";
8530
+ import yargs18 from "yargs";
8250
8531
 
8251
8532
  // src/commands/canvas/localesEngineDataSource.ts
8252
8533
  function createLocaleEngineDataSource({
@@ -8288,12 +8569,12 @@ function getLocaleClient(options) {
8288
8569
  var LocalePullModule = {
8289
8570
  command: "pull <directory>",
8290
8571
  describe: "Pulls all locales to local files in a directory",
8291
- builder: (yargs44) => withConfiguration(
8572
+ builder: (yargs45) => withConfiguration(
8292
8573
  withDebugOptions(
8293
8574
  withApiOptions(
8294
8575
  withProjectOptions(
8295
8576
  withDiffOptions(
8296
- yargs44.positional("directory", {
8577
+ yargs45.positional("directory", {
8297
8578
  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.",
8298
8579
  type: "string"
8299
8580
  }).option("format", {
@@ -8373,12 +8654,12 @@ var LocalePullModule = {
8373
8654
  var LocalePushModule = {
8374
8655
  command: "push <directory>",
8375
8656
  describe: "Pushes all locales from files in a directory to Uniform",
8376
- builder: (yargs44) => withConfiguration(
8657
+ builder: (yargs45) => withConfiguration(
8377
8658
  withDebugOptions(
8378
8659
  withApiOptions(
8379
8660
  withProjectOptions(
8380
8661
  withDiffOptions(
8381
- yargs44.positional("directory", {
8662
+ yargs45.positional("directory", {
8382
8663
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
8383
8664
  type: "string"
8384
8665
  }).option("mode", {
@@ -8446,19 +8727,19 @@ var LocalePushModule = {
8446
8727
  var LocaleModule = {
8447
8728
  command: "locale <command>",
8448
8729
  describe: "Commands for locale definitions",
8449
- builder: (yargs44) => yargs44.command(LocalePullModule).command(LocalePushModule),
8730
+ builder: (yargs45) => yargs45.command(LocalePullModule).command(LocalePushModule),
8450
8731
  handler: () => {
8451
- yargs17.help();
8732
+ yargs18.help();
8452
8733
  }
8453
8734
  };
8454
8735
 
8455
8736
  // src/commands/canvas/commands/previewUrl.ts
8456
- import yargs18 from "yargs";
8737
+ import yargs19 from "yargs";
8457
8738
 
8458
8739
  // src/commands/canvas/commands/previewUrl/_util.ts
8459
8740
  import { PreviewClient } from "@uniformdev/canvas";
8460
- var selectIdentifier5 = (previewUrl) => previewUrl.id;
8461
- var selectDisplayName5 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8741
+ var selectIdentifier6 = (previewUrl) => previewUrl.id;
8742
+ var selectDisplayName6 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8462
8743
  function getPreviewClient(options) {
8463
8744
  return new PreviewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
8464
8745
  }
@@ -8467,12 +8748,12 @@ function getPreviewClient(options) {
8467
8748
  var PreviewUrlGetModule = {
8468
8749
  command: "get <id>",
8469
8750
  describe: "Fetch a preview URL",
8470
- builder: (yargs44) => withConfiguration(
8751
+ builder: (yargs45) => withConfiguration(
8471
8752
  withFormatOptions(
8472
8753
  withDebugOptions(
8473
8754
  withApiOptions(
8474
8755
  withProjectOptions(
8475
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8756
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8476
8757
  )
8477
8758
  )
8478
8759
  )
@@ -8496,8 +8777,8 @@ var PreviewUrlListModule = {
8496
8777
  command: "list",
8497
8778
  describe: "List preview URLs",
8498
8779
  aliases: ["ls"],
8499
- builder: (yargs44) => withConfiguration(
8500
- withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs44.options({})))))
8780
+ builder: (yargs45) => withConfiguration(
8781
+ withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs45.options({})))))
8501
8782
  ),
8502
8783
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8503
8784
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8515,8 +8796,8 @@ function createPreviewUrlEngineDataSource({
8515
8796
  const previewUrls = (await client.getPreviewUrls()).previewUrls;
8516
8797
  for await (const previewUrl of previewUrls) {
8517
8798
  const result = {
8518
- id: selectIdentifier5(previewUrl),
8519
- displayName: selectDisplayName5(previewUrl),
8799
+ id: selectIdentifier6(previewUrl),
8800
+ displayName: selectDisplayName6(previewUrl),
8520
8801
  providerId: previewUrl.id,
8521
8802
  object: previewUrl
8522
8803
  };
@@ -8539,12 +8820,12 @@ function createPreviewUrlEngineDataSource({
8539
8820
  var PreviewUrlPullModule = {
8540
8821
  command: "pull <directory>",
8541
8822
  describe: "Pulls all preview urls to local files in a directory",
8542
- builder: (yargs44) => withConfiguration(
8823
+ builder: (yargs45) => withConfiguration(
8543
8824
  withApiOptions(
8544
8825
  withProjectOptions(
8545
8826
  withDebugOptions(
8546
8827
  withDiffOptions(
8547
- yargs44.positional("directory", {
8828
+ yargs45.positional("directory", {
8548
8829
  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.",
8549
8830
  type: "string"
8550
8831
  }).option("format", {
@@ -8588,8 +8869,8 @@ var PreviewUrlPullModule = {
8588
8869
  target = await createArraySyncEngineDataSource({
8589
8870
  name: `Package file ${directory}`,
8590
8871
  objects: packageContents.previewUrls ?? [],
8591
- selectIdentifier: selectIdentifier5,
8592
- selectDisplayName: selectDisplayName5,
8872
+ selectIdentifier: selectIdentifier6,
8873
+ selectDisplayName: selectDisplayName6,
8593
8874
  onSyncComplete: async (_, synced) => {
8594
8875
  packageContents.previewUrls = synced;
8595
8876
  writeCanvasPackage(directory, packageContents);
@@ -8598,9 +8879,9 @@ var PreviewUrlPullModule = {
8598
8879
  } else {
8599
8880
  target = await createFileSyncEngineDataSource({
8600
8881
  directory,
8601
- selectIdentifier: selectIdentifier5,
8602
- selectDisplayName: selectDisplayName5,
8603
- format,
8882
+ selectIdentifier: selectIdentifier6,
8883
+ selectDisplayName: selectDisplayName6,
8884
+ format,
8604
8885
  verbose
8605
8886
  });
8606
8887
  }
@@ -8619,12 +8900,12 @@ var PreviewUrlPullModule = {
8619
8900
  var PreviewUrlPushModule = {
8620
8901
  command: "push <directory>",
8621
8902
  describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
8622
- builder: (yargs44) => withConfiguration(
8903
+ builder: (yargs45) => withConfiguration(
8623
8904
  withApiOptions(
8624
8905
  withProjectOptions(
8625
8906
  withDiffOptions(
8626
8907
  withDebugOptions(
8627
- yargs44.positional("directory", {
8908
+ yargs45.positional("directory", {
8628
8909
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8629
8910
  type: "string"
8630
8911
  }).option("mode", {
@@ -8660,14 +8941,14 @@ var PreviewUrlPushModule = {
8660
8941
  source = await createArraySyncEngineDataSource({
8661
8942
  name: `Package file ${directory}`,
8662
8943
  objects: packageContents.previewUrls ?? [],
8663
- selectIdentifier: selectIdentifier5,
8664
- selectDisplayName: selectDisplayName5
8944
+ selectIdentifier: selectIdentifier6,
8945
+ selectDisplayName: selectDisplayName6
8665
8946
  });
8666
8947
  } else {
8667
8948
  source = await createFileSyncEngineDataSource({
8668
8949
  directory,
8669
- selectIdentifier: selectIdentifier5,
8670
- selectDisplayName: selectDisplayName5,
8950
+ selectIdentifier: selectIdentifier6,
8951
+ selectDisplayName: selectDisplayName6,
8671
8952
  verbose
8672
8953
  });
8673
8954
  }
@@ -8688,11 +8969,11 @@ var PreviewUrlRemoveModule = {
8688
8969
  command: "remove <id>",
8689
8970
  aliases: ["delete", "rm"],
8690
8971
  describe: "Delete a preview URL",
8691
- builder: (yargs44) => withConfiguration(
8972
+ builder: (yargs45) => withConfiguration(
8692
8973
  withApiOptions(
8693
8974
  withDebugOptions(
8694
8975
  withProjectOptions(
8695
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8976
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8696
8977
  )
8697
8978
  )
8698
8979
  )
@@ -8713,11 +8994,11 @@ var PreviewUrlUpdateModule = {
8713
8994
  command: "update <filename>",
8714
8995
  aliases: ["put"],
8715
8996
  describe: "Insert or update a preview URL",
8716
- builder: (yargs44) => withConfiguration(
8997
+ builder: (yargs45) => withConfiguration(
8717
8998
  withDebugOptions(
8718
8999
  withApiOptions(
8719
9000
  withProjectOptions(
8720
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
9001
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
8721
9002
  )
8722
9003
  )
8723
9004
  )
@@ -8739,25 +9020,25 @@ var PreviewUrlModule = {
8739
9020
  command: "preview-url <command>",
8740
9021
  aliases: ["pu"],
8741
9022
  describe: "Commands for Canvas preview urls",
8742
- builder: (yargs44) => yargs44.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
9023
+ builder: (yargs45) => yargs45.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
8743
9024
  handler: () => {
8744
- yargs18.help();
9025
+ yargs19.help();
8745
9026
  }
8746
9027
  };
8747
9028
 
8748
9029
  // src/commands/canvas/commands/previewViewport.ts
8749
- import yargs19 from "yargs";
9030
+ import yargs20 from "yargs";
8750
9031
 
8751
9032
  // src/commands/canvas/commands/previewViewport/get.ts
8752
9033
  var PreviewViewportGetModule = {
8753
9034
  command: "get <id>",
8754
9035
  describe: "Fetch a preview viewport",
8755
- builder: (yargs44) => withConfiguration(
9036
+ builder: (yargs45) => withConfiguration(
8756
9037
  withFormatOptions(
8757
9038
  withDebugOptions(
8758
9039
  withApiOptions(
8759
9040
  withProjectOptions(
8760
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
9041
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
8761
9042
  )
8762
9043
  )
8763
9044
  )
@@ -8781,8 +9062,8 @@ var PreviewViewportListModule = {
8781
9062
  command: "list",
8782
9063
  describe: "List preview viewports",
8783
9064
  aliases: ["ls"],
8784
- builder: (yargs44) => withConfiguration(
8785
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
9065
+ builder: (yargs45) => withConfiguration(
9066
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
8786
9067
  ),
8787
9068
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8788
9069
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8793,8 +9074,8 @@ var PreviewViewportListModule = {
8793
9074
  };
8794
9075
 
8795
9076
  // src/commands/canvas/commands/previewViewport/_util.ts
8796
- var selectIdentifier6 = (previewViewport) => previewViewport.id;
8797
- var selectDisplayName6 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
9077
+ var selectIdentifier7 = (previewViewport) => previewViewport.id;
9078
+ var selectDisplayName7 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
8798
9079
 
8799
9080
  // src/commands/canvas/previewViewportEngineDataSource.ts
8800
9081
  function createPreviewViewportEngineDataSource({
@@ -8804,8 +9085,8 @@ function createPreviewViewportEngineDataSource({
8804
9085
  const previewViewports = (await client.getPreviewViewports()).previewViewports;
8805
9086
  for await (const previewViewport of previewViewports) {
8806
9087
  const result = {
8807
- id: selectIdentifier6(previewViewport),
8808
- displayName: selectDisplayName6(previewViewport),
9088
+ id: selectIdentifier7(previewViewport),
9089
+ displayName: selectDisplayName7(previewViewport),
8809
9090
  providerId: previewViewport.id,
8810
9091
  object: previewViewport
8811
9092
  };
@@ -8828,12 +9109,12 @@ function createPreviewViewportEngineDataSource({
8828
9109
  var PreviewViewportPullModule = {
8829
9110
  command: "pull <directory>",
8830
9111
  describe: "Pulls all preview viewports to local files in a directory",
8831
- builder: (yargs44) => withConfiguration(
9112
+ builder: (yargs45) => withConfiguration(
8832
9113
  withApiOptions(
8833
9114
  withProjectOptions(
8834
9115
  withDebugOptions(
8835
9116
  withDiffOptions(
8836
- yargs44.positional("directory", {
9117
+ yargs45.positional("directory", {
8837
9118
  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.",
8838
9119
  type: "string"
8839
9120
  }).option("format", {
@@ -8877,8 +9158,8 @@ var PreviewViewportPullModule = {
8877
9158
  target = await createArraySyncEngineDataSource({
8878
9159
  name: `Package file ${directory}`,
8879
9160
  objects: packageContents.previewViewports ?? [],
8880
- selectIdentifier: selectIdentifier6,
8881
- selectDisplayName: selectDisplayName6,
9161
+ selectIdentifier: selectIdentifier7,
9162
+ selectDisplayName: selectDisplayName7,
8882
9163
  onSyncComplete: async (_, synced) => {
8883
9164
  packageContents.previewViewports = synced;
8884
9165
  writeCanvasPackage(directory, packageContents);
@@ -8887,8 +9168,8 @@ var PreviewViewportPullModule = {
8887
9168
  } else {
8888
9169
  target = await createFileSyncEngineDataSource({
8889
9170
  directory,
8890
- selectIdentifier: selectIdentifier6,
8891
- selectDisplayName: selectDisplayName6,
9171
+ selectIdentifier: selectIdentifier7,
9172
+ selectDisplayName: selectDisplayName7,
8892
9173
  format,
8893
9174
  verbose
8894
9175
  });
@@ -8908,12 +9189,12 @@ var PreviewViewportPullModule = {
8908
9189
  var PreviewViewportPushModule = {
8909
9190
  command: "push <directory>",
8910
9191
  describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
8911
- builder: (yargs44) => withConfiguration(
9192
+ builder: (yargs45) => withConfiguration(
8912
9193
  withApiOptions(
8913
9194
  withProjectOptions(
8914
9195
  withDiffOptions(
8915
9196
  withDebugOptions(
8916
- yargs44.positional("directory", {
9197
+ yargs45.positional("directory", {
8917
9198
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8918
9199
  type: "string"
8919
9200
  }).option("mode", {
@@ -8949,14 +9230,14 @@ var PreviewViewportPushModule = {
8949
9230
  source = await createArraySyncEngineDataSource({
8950
9231
  name: `Package file ${directory}`,
8951
9232
  objects: packageContents.previewViewports ?? [],
8952
- selectIdentifier: selectIdentifier6,
8953
- selectDisplayName: selectDisplayName6
9233
+ selectIdentifier: selectIdentifier7,
9234
+ selectDisplayName: selectDisplayName7
8954
9235
  });
8955
9236
  } else {
8956
9237
  source = await createFileSyncEngineDataSource({
8957
9238
  directory,
8958
- selectIdentifier: selectIdentifier6,
8959
- selectDisplayName: selectDisplayName6,
9239
+ selectIdentifier: selectIdentifier7,
9240
+ selectDisplayName: selectDisplayName7,
8960
9241
  verbose
8961
9242
  });
8962
9243
  }
@@ -8977,11 +9258,11 @@ var PreviewViewportRemoveModule = {
8977
9258
  command: "remove <id>",
8978
9259
  aliases: ["delete", "rm"],
8979
9260
  describe: "Delete a preview viewport",
8980
- builder: (yargs44) => withConfiguration(
9261
+ builder: (yargs45) => withConfiguration(
8981
9262
  withApiOptions(
8982
9263
  withDebugOptions(
8983
9264
  withProjectOptions(
8984
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
9265
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
8985
9266
  )
8986
9267
  )
8987
9268
  )
@@ -9002,11 +9283,11 @@ var PreviewViewportUpdateModule = {
9002
9283
  command: "update <filename>",
9003
9284
  aliases: ["put"],
9004
9285
  describe: "Insert or update a preview viewport",
9005
- builder: (yargs44) => withConfiguration(
9286
+ builder: (yargs45) => withConfiguration(
9006
9287
  withDebugOptions(
9007
9288
  withApiOptions(
9008
9289
  withProjectOptions(
9009
- yargs44.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9290
+ yargs45.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9010
9291
  )
9011
9292
  )
9012
9293
  )
@@ -9028,14 +9309,14 @@ var PreviewViewportModule = {
9028
9309
  command: "preview-viewport <command>",
9029
9310
  aliases: ["pv"],
9030
9311
  describe: "Commands for Canvas preview viewports",
9031
- builder: (yargs44) => yargs44.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9312
+ builder: (yargs45) => yargs45.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9032
9313
  handler: () => {
9033
- yargs19.help();
9314
+ yargs20.help();
9034
9315
  }
9035
9316
  };
9036
9317
 
9037
9318
  // src/commands/canvas/commands/prompts.ts
9038
- import yargs20 from "yargs";
9319
+ import yargs21 from "yargs";
9039
9320
 
9040
9321
  // src/commands/canvas/commands/prompts/_util.ts
9041
9322
  import { PromptClient } from "@uniformdev/canvas";
@@ -9047,12 +9328,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
9047
9328
  var PromptGetModule = {
9048
9329
  command: "get <id>",
9049
9330
  describe: "Get a prompt",
9050
- builder: (yargs44) => withConfiguration(
9331
+ builder: (yargs45) => withConfiguration(
9051
9332
  withDebugOptions(
9052
9333
  withFormatOptions(
9053
9334
  withApiOptions(
9054
9335
  withProjectOptions(
9055
- yargs44.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9336
+ yargs45.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9056
9337
  )
9057
9338
  )
9058
9339
  )
@@ -9073,7 +9354,7 @@ var PromptGetModule = {
9073
9354
  var PromptListModule = {
9074
9355
  command: "list",
9075
9356
  describe: "List prompts",
9076
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
9357
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
9077
9358
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
9078
9359
  const fetch2 = nodeFetchProxy(proxy, verbose);
9079
9360
  const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9114,13 +9395,13 @@ function createPromptEngineDataSource({
9114
9395
  var PromptPullModule = {
9115
9396
  command: "pull <directory>",
9116
9397
  describe: "Pulls all prompts to local files in a directory",
9117
- builder: (yargs44) => withConfiguration(
9398
+ builder: (yargs45) => withConfiguration(
9118
9399
  withDebugOptions(
9119
9400
  withApiOptions(
9120
9401
  withProjectOptions(
9121
9402
  withStateOptions(
9122
9403
  withDiffOptions(
9123
- yargs44.positional("directory", {
9404
+ yargs45.positional("directory", {
9124
9405
  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.",
9125
9406
  type: "string"
9126
9407
  }).option("format", {
@@ -9201,12 +9482,12 @@ var PromptPullModule = {
9201
9482
  var PromptPushModule = {
9202
9483
  command: "push <directory>",
9203
9484
  describe: "Pushes all prompts from files in a directory to Uniform",
9204
- builder: (yargs44) => withConfiguration(
9485
+ builder: (yargs45) => withConfiguration(
9205
9486
  withApiOptions(
9206
9487
  withProjectOptions(
9207
9488
  withStateOptions(
9208
9489
  withDiffOptions(
9209
- yargs44.positional("directory", {
9490
+ yargs45.positional("directory", {
9210
9491
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
9211
9492
  type: "string"
9212
9493
  }).option("mode", {
@@ -9275,10 +9556,10 @@ var PromptRemoveModule = {
9275
9556
  command: "remove <id>",
9276
9557
  aliases: ["delete", "rm"],
9277
9558
  describe: "Delete a prompt",
9278
- builder: (yargs44) => withConfiguration(
9559
+ builder: (yargs45) => withConfiguration(
9279
9560
  withDebugOptions(
9280
9561
  withApiOptions(
9281
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9562
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9282
9563
  )
9283
9564
  )
9284
9565
  ),
@@ -9298,11 +9579,11 @@ var PromptUpdateModule = {
9298
9579
  command: "update <filename>",
9299
9580
  aliases: ["put"],
9300
9581
  describe: "Insert or update a prompt",
9301
- builder: (yargs44) => withConfiguration(
9582
+ builder: (yargs45) => withConfiguration(
9302
9583
  withDebugOptions(
9303
9584
  withApiOptions(
9304
9585
  withProjectOptions(
9305
- yargs44.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9586
+ yargs45.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9306
9587
  )
9307
9588
  )
9308
9589
  )
@@ -9323,19 +9604,19 @@ var PromptUpdateModule = {
9323
9604
  var PromptModule = {
9324
9605
  command: "prompt <command>",
9325
9606
  describe: "Commands for AI Prompt definitions",
9326
- builder: (yargs44) => yargs44.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9607
+ builder: (yargs45) => yargs45.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9327
9608
  handler: () => {
9328
- yargs20.help();
9609
+ yargs21.help();
9329
9610
  }
9330
9611
  };
9331
9612
 
9332
9613
  // src/commands/canvas/commands/workflow.ts
9333
- import yargs21 from "yargs";
9614
+ import yargs22 from "yargs";
9334
9615
 
9335
9616
  // src/commands/canvas/commands/workflow/_util.ts
9336
9617
  import { WorkflowClient } from "@uniformdev/canvas";
9337
- var selectIdentifier7 = (workflow) => workflow.id;
9338
- var selectDisplayName7 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9618
+ var selectIdentifier8 = (workflow) => workflow.id;
9619
+ var selectDisplayName8 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9339
9620
  var getWorkflowClient = (options) => new WorkflowClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9340
9621
 
9341
9622
  // src/commands/canvas/workflowEngineDataSource.ts
@@ -9353,8 +9634,8 @@ function createWorkflowEngineDataSource({
9353
9634
  for await (const workflow of workflows) {
9354
9635
  const { modified, modifiedBy, created, createdBy, ...workflowWithoutStatistics } = workflow;
9355
9636
  const result = {
9356
- id: selectIdentifier7(workflow),
9357
- displayName: selectDisplayName7(workflow),
9637
+ id: selectIdentifier8(workflow),
9638
+ displayName: selectDisplayName8(workflow),
9358
9639
  providerId: workflow.id,
9359
9640
  object: workflowWithoutStatistics
9360
9641
  };
@@ -9377,13 +9658,13 @@ function createWorkflowEngineDataSource({
9377
9658
  var WorkflowPullModule = {
9378
9659
  command: "pull <directory>",
9379
9660
  describe: "Pulls all workflows to local files in a directory",
9380
- builder: (yargs44) => withConfiguration(
9661
+ builder: (yargs45) => withConfiguration(
9381
9662
  withApiOptions(
9382
9663
  withDebugOptions(
9383
9664
  withProjectOptions(
9384
9665
  withDiffOptions(
9385
9666
  withBatchSizeOptions(
9386
- yargs44.positional("directory", {
9667
+ yargs45.positional("directory", {
9387
9668
  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.",
9388
9669
  type: "string"
9389
9670
  }).option("format", {
@@ -9434,8 +9715,8 @@ var WorkflowPullModule = {
9434
9715
  target = await createArraySyncEngineDataSource({
9435
9716
  name: `Package file ${directory}`,
9436
9717
  objects: packageContents.workflows ?? [],
9437
- selectIdentifier: selectIdentifier7,
9438
- selectDisplayName: selectDisplayName7,
9718
+ selectIdentifier: selectIdentifier8,
9719
+ selectDisplayName: selectDisplayName8,
9439
9720
  onSyncComplete: async (_, synced) => {
9440
9721
  packageContents.workflows = synced;
9441
9722
  writeCanvasPackage(directory, packageContents);
@@ -9444,8 +9725,8 @@ var WorkflowPullModule = {
9444
9725
  } else {
9445
9726
  target = await createFileSyncEngineDataSource({
9446
9727
  directory,
9447
- selectIdentifier: selectIdentifier7,
9448
- selectDisplayName: selectDisplayName7,
9728
+ selectIdentifier: selectIdentifier8,
9729
+ selectDisplayName: selectDisplayName8,
9449
9730
  format,
9450
9731
  verbose
9451
9732
  });
@@ -9465,13 +9746,13 @@ var WorkflowPullModule = {
9465
9746
  var WorkflowPushModule = {
9466
9747
  command: "push <directory>",
9467
9748
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
9468
- builder: (yargs44) => withConfiguration(
9749
+ builder: (yargs45) => withConfiguration(
9469
9750
  withDebugOptions(
9470
9751
  withApiOptions(
9471
9752
  withProjectOptions(
9472
9753
  withDiffOptions(
9473
9754
  withBatchSizeOptions(
9474
- yargs44.positional("directory", {
9755
+ yargs45.positional("directory", {
9475
9756
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
9476
9757
  type: "string"
9477
9758
  }).option("mode", {
@@ -9510,14 +9791,14 @@ var WorkflowPushModule = {
9510
9791
  source = await createArraySyncEngineDataSource({
9511
9792
  name: `Package file ${directory}`,
9512
9793
  objects: packageContents.workflows ?? [],
9513
- selectIdentifier: selectIdentifier7,
9514
- selectDisplayName: selectDisplayName7
9794
+ selectIdentifier: selectIdentifier8,
9795
+ selectDisplayName: selectDisplayName8
9515
9796
  });
9516
9797
  } else {
9517
9798
  source = await createFileSyncEngineDataSource({
9518
9799
  directory,
9519
- selectIdentifier: selectIdentifier7,
9520
- selectDisplayName: selectDisplayName7,
9800
+ selectIdentifier: selectIdentifier8,
9801
+ selectDisplayName: selectDisplayName8,
9521
9802
  verbose
9522
9803
  });
9523
9804
  }
@@ -9542,9 +9823,9 @@ var WorkflowModule = {
9542
9823
  command: "workflow <command>",
9543
9824
  aliases: ["wf"],
9544
9825
  describe: "Commands for Canvas workflows",
9545
- builder: (yargs44) => yargs44.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9826
+ builder: (yargs45) => yargs45.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9546
9827
  handler: () => {
9547
- yargs21.help();
9828
+ yargs22.help();
9548
9829
  }
9549
9830
  };
9550
9831
 
@@ -9553,33 +9834,33 @@ var CanvasCommand = {
9553
9834
  command: "canvas <command>",
9554
9835
  aliases: ["cv", "pm", "presentation"],
9555
9836
  describe: "Uniform Canvas commands",
9556
- 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(),
9837
+ 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(),
9557
9838
  handler: () => {
9558
- yargs22.showHelp();
9839
+ yargs23.showHelp();
9559
9840
  }
9560
9841
  };
9561
9842
 
9562
9843
  // src/commands/context/index.ts
9563
- import yargs29 from "yargs";
9844
+ import yargs30 from "yargs";
9564
9845
 
9565
9846
  // src/commands/context/commands/aggregate.ts
9566
- import yargs23 from "yargs";
9847
+ import yargs24 from "yargs";
9567
9848
 
9568
9849
  // src/commands/context/commands/aggregate/_util.ts
9569
9850
  import { AggregateClient } from "@uniformdev/context/api";
9570
- var selectIdentifier8 = (source) => source.id;
9571
- var selectDisplayName8 = (source) => `${source.name} (pid: ${source.id})`;
9851
+ var selectIdentifier9 = (source) => source.id;
9852
+ var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
9572
9853
  var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9573
9854
 
9574
9855
  // src/commands/context/commands/aggregate/get.ts
9575
9856
  var AggregateGetModule = {
9576
9857
  command: "get <id>",
9577
9858
  describe: "Fetch an aggregate",
9578
- builder: (yargs44) => withConfiguration(
9859
+ builder: (yargs45) => withConfiguration(
9579
9860
  withFormatOptions(
9580
9861
  withApiOptions(
9581
9862
  withProjectOptions(
9582
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9863
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9583
9864
  )
9584
9865
  )
9585
9866
  )
@@ -9602,7 +9883,7 @@ var AggregateListModule = {
9602
9883
  command: "list",
9603
9884
  describe: "List aggregates",
9604
9885
  aliases: ["ls"],
9605
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
9886
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9606
9887
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9607
9888
  const fetch2 = nodeFetchProxy(proxy);
9608
9889
  const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9620,8 +9901,8 @@ function createAggregateEngineDataSource({
9620
9901
  const aggregates = (await client.get({ type })).aggregates;
9621
9902
  for await (const def of aggregates) {
9622
9903
  const result = {
9623
- id: selectIdentifier8(def),
9624
- displayName: selectDisplayName8(def),
9904
+ id: selectIdentifier9(def),
9905
+ displayName: selectDisplayName9(def),
9625
9906
  providerId: def.id,
9626
9907
  object: def
9627
9908
  };
@@ -9665,12 +9946,12 @@ function writeContextPackage(filename, packageContents) {
9665
9946
  var AggregatePullModule = {
9666
9947
  command: "pull <directory>",
9667
9948
  describe: "Pulls all aggregates to local files in a directory",
9668
- builder: (yargs44) => withConfiguration(
9949
+ builder: (yargs45) => withConfiguration(
9669
9950
  withApiOptions(
9670
9951
  withDebugOptions(
9671
9952
  withProjectOptions(
9672
9953
  withDiffOptions(
9673
- yargs44.positional("directory", {
9954
+ yargs45.positional("directory", {
9674
9955
  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.",
9675
9956
  type: "string"
9676
9957
  }).option("format", {
@@ -9714,8 +9995,8 @@ var AggregatePullModule = {
9714
9995
  target = await createArraySyncEngineDataSource({
9715
9996
  name: `Package file ${directory}`,
9716
9997
  objects: packageContents.aggregates ?? [],
9717
- selectIdentifier: selectIdentifier8,
9718
- selectDisplayName: selectDisplayName8,
9998
+ selectIdentifier: selectIdentifier9,
9999
+ selectDisplayName: selectDisplayName9,
9719
10000
  onSyncComplete: async (_, synced) => {
9720
10001
  packageContents.aggregates = synced;
9721
10002
  writeContextPackage(directory, packageContents);
@@ -9724,8 +10005,8 @@ var AggregatePullModule = {
9724
10005
  } else {
9725
10006
  target = await createFileSyncEngineDataSource({
9726
10007
  directory,
9727
- selectIdentifier: selectIdentifier8,
9728
- selectDisplayName: selectDisplayName8,
10008
+ selectIdentifier: selectIdentifier9,
10009
+ selectDisplayName: selectDisplayName9,
9729
10010
  format,
9730
10011
  verbose
9731
10012
  });
@@ -9745,12 +10026,12 @@ var AggregatePullModule = {
9745
10026
  var AggregatePushModule = {
9746
10027
  command: "push <directory>",
9747
10028
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
9748
- builder: (yargs44) => withConfiguration(
10029
+ builder: (yargs45) => withConfiguration(
9749
10030
  withApiOptions(
9750
10031
  withProjectOptions(
9751
10032
  withDiffOptions(
9752
10033
  withDebugOptions(
9753
- yargs44.positional("directory", {
10034
+ yargs45.positional("directory", {
9754
10035
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
9755
10036
  type: "string"
9756
10037
  }).option("mode", {
@@ -9786,14 +10067,14 @@ var AggregatePushModule = {
9786
10067
  source = await createArraySyncEngineDataSource({
9787
10068
  name: `Package file ${directory}`,
9788
10069
  objects: packageContents.aggregates ?? [],
9789
- selectIdentifier: selectIdentifier8,
9790
- selectDisplayName: selectDisplayName8
10070
+ selectIdentifier: selectIdentifier9,
10071
+ selectDisplayName: selectDisplayName9
9791
10072
  });
9792
10073
  } else {
9793
10074
  source = await createFileSyncEngineDataSource({
9794
10075
  directory,
9795
- selectIdentifier: selectIdentifier8,
9796
- selectDisplayName: selectDisplayName8,
10076
+ selectIdentifier: selectIdentifier9,
10077
+ selectDisplayName: selectDisplayName9,
9797
10078
  verbose
9798
10079
  });
9799
10080
  }
@@ -9815,10 +10096,10 @@ var AggregateRemoveModule = {
9815
10096
  command: "remove <id>",
9816
10097
  aliases: ["delete", "rm"],
9817
10098
  describe: "Delete an aggregate",
9818
- builder: (yargs44) => withConfiguration(
10099
+ builder: (yargs45) => withConfiguration(
9819
10100
  withApiOptions(
9820
10101
  withProjectOptions(
9821
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
10102
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
9822
10103
  )
9823
10104
  )
9824
10105
  ),
@@ -9834,10 +10115,10 @@ var AggregateUpdateModule = {
9834
10115
  command: "update <filename>",
9835
10116
  aliases: ["put"],
9836
10117
  describe: "Insert or update an aggregate",
9837
- builder: (yargs44) => withConfiguration(
10118
+ builder: (yargs45) => withConfiguration(
9838
10119
  withApiOptions(
9839
10120
  withProjectOptions(
9840
- yargs44.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
10121
+ yargs45.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
9841
10122
  )
9842
10123
  )
9843
10124
  ),
@@ -9854,19 +10135,19 @@ var AggregateModule = {
9854
10135
  command: "aggregate <command>",
9855
10136
  aliases: ["agg", "intent", "audience"],
9856
10137
  describe: "Commands for Context aggregates (intents, audiences)",
9857
- builder: (yargs44) => yargs44.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
10138
+ builder: (yargs45) => yargs45.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
9858
10139
  handler: () => {
9859
- yargs23.help();
10140
+ yargs24.help();
9860
10141
  }
9861
10142
  };
9862
10143
 
9863
10144
  // src/commands/context/commands/enrichment.ts
9864
- import yargs24 from "yargs";
10145
+ import yargs25 from "yargs";
9865
10146
 
9866
10147
  // src/commands/context/commands/enrichment/_util.ts
9867
10148
  import { EnrichmentClient } from "@uniformdev/context/api";
9868
- var selectIdentifier9 = (source) => source.id;
9869
- var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
10149
+ var selectIdentifier10 = (source) => source.id;
10150
+ var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
9870
10151
  function getEnrichmentClient(options) {
9871
10152
  return new EnrichmentClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
9872
10153
  }
@@ -9875,11 +10156,11 @@ function getEnrichmentClient(options) {
9875
10156
  var EnrichmentGetModule = {
9876
10157
  command: "get <id>",
9877
10158
  describe: "Fetch an enrichment category and its values",
9878
- builder: (yargs44) => withFormatOptions(
10159
+ builder: (yargs45) => withFormatOptions(
9879
10160
  withConfiguration(
9880
10161
  withApiOptions(
9881
10162
  withProjectOptions(
9882
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
10163
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
9883
10164
  )
9884
10165
  )
9885
10166
  )
@@ -9902,7 +10183,7 @@ var EnrichmentListModule = {
9902
10183
  command: "list",
9903
10184
  describe: "List enrichments",
9904
10185
  aliases: ["ls"],
9905
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10186
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9906
10187
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9907
10188
  const fetch2 = nodeFetchProxy(proxy);
9908
10189
  const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9919,8 +10200,8 @@ function createEnrichmentEngineDataSource({
9919
10200
  const enrichments = (await client.get()).enrichments;
9920
10201
  for await (const def of enrichments) {
9921
10202
  const result = {
9922
- id: selectIdentifier9(def),
9923
- displayName: selectDisplayName9(def),
10203
+ id: selectIdentifier10(def),
10204
+ displayName: selectDisplayName10(def),
9924
10205
  providerId: def.id,
9925
10206
  object: def
9926
10207
  };
@@ -9997,12 +10278,12 @@ var createEnrichmentValueEngineDataSource = ({
9997
10278
  var EnrichmentPullModule = {
9998
10279
  command: "pull <directory>",
9999
10280
  describe: "Pulls all enrichments to local files in a directory",
10000
- builder: (yargs44) => withConfiguration(
10281
+ builder: (yargs45) => withConfiguration(
10001
10282
  withDebugOptions(
10002
10283
  withApiOptions(
10003
10284
  withProjectOptions(
10004
10285
  withDiffOptions(
10005
- yargs44.positional("directory", {
10286
+ yargs45.positional("directory", {
10006
10287
  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.",
10007
10288
  type: "string"
10008
10289
  }).option("format", {
@@ -10046,8 +10327,8 @@ var EnrichmentPullModule = {
10046
10327
  target = await createArraySyncEngineDataSource({
10047
10328
  name: `Package file ${directory}`,
10048
10329
  objects: packageContents.enrichments ?? [],
10049
- selectIdentifier: selectIdentifier9,
10050
- selectDisplayName: selectDisplayName9,
10330
+ selectIdentifier: selectIdentifier10,
10331
+ selectDisplayName: selectDisplayName10,
10051
10332
  onSyncComplete: async (_, synced) => {
10052
10333
  packageContents.enrichments = synced;
10053
10334
  writeContextPackage(directory, packageContents);
@@ -10056,8 +10337,8 @@ var EnrichmentPullModule = {
10056
10337
  } else {
10057
10338
  target = await createFileSyncEngineDataSource({
10058
10339
  directory,
10059
- selectIdentifier: selectIdentifier9,
10060
- selectDisplayName: selectDisplayName9,
10340
+ selectIdentifier: selectIdentifier10,
10341
+ selectDisplayName: selectDisplayName10,
10061
10342
  format,
10062
10343
  verbose
10063
10344
  });
@@ -10077,11 +10358,11 @@ var EnrichmentPullModule = {
10077
10358
  var EnrichmentPushModule = {
10078
10359
  command: "push <directory>",
10079
10360
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
10080
- builder: (yargs44) => withConfiguration(
10361
+ builder: (yargs45) => withConfiguration(
10081
10362
  withApiOptions(
10082
10363
  withProjectOptions(
10083
10364
  withDiffOptions(
10084
- yargs44.positional("directory", {
10365
+ yargs45.positional("directory", {
10085
10366
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
10086
10367
  type: "string"
10087
10368
  }).option("mode", {
@@ -10116,14 +10397,14 @@ var EnrichmentPushModule = {
10116
10397
  source = await createArraySyncEngineDataSource({
10117
10398
  name: `Package file ${directory}`,
10118
10399
  objects: packageContents.enrichments ?? [],
10119
- selectIdentifier: selectIdentifier9,
10120
- selectDisplayName: selectDisplayName9
10400
+ selectIdentifier: selectIdentifier10,
10401
+ selectDisplayName: selectDisplayName10
10121
10402
  });
10122
10403
  } else {
10123
10404
  source = await createFileSyncEngineDataSource({
10124
10405
  directory,
10125
- selectIdentifier: selectIdentifier9,
10126
- selectDisplayName: selectDisplayName9,
10406
+ selectIdentifier: selectIdentifier10,
10407
+ selectDisplayName: selectDisplayName10,
10127
10408
  verbose
10128
10409
  });
10129
10410
  }
@@ -10144,10 +10425,10 @@ var EnrichmentRemoveModule = {
10144
10425
  command: "remove <id>",
10145
10426
  aliases: ["delete", "rm"],
10146
10427
  describe: "Delete an enrichment category and its values",
10147
- builder: (yargs44) => withConfiguration(
10428
+ builder: (yargs45) => withConfiguration(
10148
10429
  withApiOptions(
10149
10430
  withProjectOptions(
10150
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10431
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10151
10432
  )
10152
10433
  )
10153
10434
  ),
@@ -10163,14 +10444,14 @@ var EnrichmentModule = {
10163
10444
  command: "enrichment <command>",
10164
10445
  aliases: ["enr"],
10165
10446
  describe: "Commands for Context enrichments",
10166
- builder: (yargs44) => yargs44.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10447
+ builder: (yargs45) => yargs45.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10167
10448
  handler: () => {
10168
- yargs24.help();
10449
+ yargs25.help();
10169
10450
  }
10170
10451
  };
10171
10452
 
10172
10453
  // src/commands/context/commands/manifest.ts
10173
- import yargs25 from "yargs";
10454
+ import yargs26 from "yargs";
10174
10455
 
10175
10456
  // src/commands/context/commands/manifest/get.ts
10176
10457
  import { ApiClientError as ApiClientError5, ManifestClient } from "@uniformdev/context/api";
@@ -10181,10 +10462,10 @@ var ManifestGetModule = {
10181
10462
  command: "get [output]",
10182
10463
  aliases: ["dl", "download"],
10183
10464
  describe: "Download the Uniform Context manifest for a project",
10184
- builder: (yargs44) => withConfiguration(
10465
+ builder: (yargs45) => withConfiguration(
10185
10466
  withApiOptions(
10186
10467
  withProjectOptions(
10187
- yargs44.option("preview", {
10468
+ yargs45.option("preview", {
10188
10469
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
10189
10470
  default: false,
10190
10471
  type: "boolean",
@@ -10247,7 +10528,7 @@ import { exit as exit2 } from "process";
10247
10528
  var ManifestPublishModule = {
10248
10529
  command: "publish",
10249
10530
  describe: "Publish the Uniform Context manifest for a project",
10250
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
10531
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
10251
10532
  handler: async ({ apiKey, apiHost, proxy, project }) => {
10252
10533
  const fetch2 = nodeFetchProxy(proxy);
10253
10534
  try {
@@ -10281,25 +10562,25 @@ var ManifestModule = {
10281
10562
  command: "manifest <command>",
10282
10563
  describe: "Commands for context manifests",
10283
10564
  aliases: ["man"],
10284
- builder: (yargs44) => yargs44.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10565
+ builder: (yargs45) => yargs45.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10285
10566
  handler: () => {
10286
- yargs25.help();
10567
+ yargs26.help();
10287
10568
  }
10288
10569
  };
10289
10570
 
10290
10571
  // src/commands/context/commands/quirk.ts
10291
- import yargs26 from "yargs";
10572
+ import yargs27 from "yargs";
10292
10573
 
10293
10574
  // src/commands/context/commands/quirk/get.ts
10294
10575
  import { QuirkClient } from "@uniformdev/context/api";
10295
10576
  var QuirkGetModule = {
10296
10577
  command: "get <id>",
10297
10578
  describe: "Fetch a quirk",
10298
- builder: (yargs44) => withConfiguration(
10579
+ builder: (yargs45) => withConfiguration(
10299
10580
  withFormatOptions(
10300
10581
  withApiOptions(
10301
10582
  withProjectOptions(
10302
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10583
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10303
10584
  )
10304
10585
  )
10305
10586
  )
@@ -10323,11 +10604,11 @@ var QuirkListModule = {
10323
10604
  command: "list",
10324
10605
  describe: "List quirks",
10325
10606
  aliases: ["ls"],
10326
- builder: (yargs44) => withConfiguration(
10607
+ builder: (yargs45) => withConfiguration(
10327
10608
  withFormatOptions(
10328
10609
  withApiOptions(
10329
10610
  withProjectOptions(
10330
- yargs44.option("withIntegrations", {
10611
+ yargs45.option("withIntegrations", {
10331
10612
  alias: ["i"],
10332
10613
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
10333
10614
  type: "boolean"
@@ -10348,8 +10629,8 @@ var QuirkListModule = {
10348
10629
  import { QuirkClient as QuirkClient3 } from "@uniformdev/context/api";
10349
10630
 
10350
10631
  // src/commands/context/commands/quirk/_util.ts
10351
- var selectIdentifier10 = (source) => source.id;
10352
- var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
10632
+ var selectIdentifier11 = (source) => source.id;
10633
+ var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10353
10634
 
10354
10635
  // src/commands/context/quirkEngineDataSource.ts
10355
10636
  function createQuirkEngineDataSource({
@@ -10359,8 +10640,8 @@ function createQuirkEngineDataSource({
10359
10640
  const quirks = (await client.get({ withIntegrations: false })).quirks;
10360
10641
  for await (const def of quirks) {
10361
10642
  const result = {
10362
- id: selectIdentifier10(def),
10363
- displayName: selectDisplayName10(def),
10643
+ id: selectIdentifier11(def),
10644
+ displayName: selectDisplayName11(def),
10364
10645
  providerId: def.id,
10365
10646
  object: def
10366
10647
  };
@@ -10385,12 +10666,12 @@ function createQuirkEngineDataSource({
10385
10666
  var QuirkPullModule = {
10386
10667
  command: "pull <directory>",
10387
10668
  describe: "Pulls all quirks to local files in a directory",
10388
- builder: (yargs44) => withConfiguration(
10669
+ builder: (yargs45) => withConfiguration(
10389
10670
  withDebugOptions(
10390
10671
  withApiOptions(
10391
10672
  withProjectOptions(
10392
10673
  withDiffOptions(
10393
- yargs44.positional("directory", {
10674
+ yargs45.positional("directory", {
10394
10675
  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.",
10395
10676
  type: "string"
10396
10677
  }).option("format", {
@@ -10434,8 +10715,8 @@ var QuirkPullModule = {
10434
10715
  target = await createArraySyncEngineDataSource({
10435
10716
  name: `Package file ${directory}`,
10436
10717
  objects: packageContents.quirks ?? [],
10437
- selectIdentifier: selectIdentifier10,
10438
- selectDisplayName: selectDisplayName10,
10718
+ selectIdentifier: selectIdentifier11,
10719
+ selectDisplayName: selectDisplayName11,
10439
10720
  onSyncComplete: async (_, synced) => {
10440
10721
  packageContents.quirks = synced;
10441
10722
  writeContextPackage(directory, packageContents);
@@ -10444,8 +10725,8 @@ var QuirkPullModule = {
10444
10725
  } else {
10445
10726
  target = await createFileSyncEngineDataSource({
10446
10727
  directory,
10447
- selectIdentifier: selectIdentifier10,
10448
- selectDisplayName: selectDisplayName10,
10728
+ selectIdentifier: selectIdentifier11,
10729
+ selectDisplayName: selectDisplayName11,
10449
10730
  format,
10450
10731
  verbose
10451
10732
  });
@@ -10466,12 +10747,12 @@ import { QuirkClient as QuirkClient4 } from "@uniformdev/context/api";
10466
10747
  var QuirkPushModule = {
10467
10748
  command: "push <directory>",
10468
10749
  describe: "Pushes all quirks from files in a directory or package to Uniform",
10469
- builder: (yargs44) => withConfiguration(
10750
+ builder: (yargs45) => withConfiguration(
10470
10751
  withDebugOptions(
10471
10752
  withApiOptions(
10472
10753
  withProjectOptions(
10473
10754
  withDiffOptions(
10474
- yargs44.positional("directory", {
10755
+ yargs45.positional("directory", {
10475
10756
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
10476
10757
  type: "string"
10477
10758
  }).option("mode", {
@@ -10507,14 +10788,14 @@ var QuirkPushModule = {
10507
10788
  source = await createArraySyncEngineDataSource({
10508
10789
  name: `Package file ${directory}`,
10509
10790
  objects: packageContents.quirks ?? [],
10510
- selectIdentifier: selectIdentifier10,
10511
- selectDisplayName: selectDisplayName10
10791
+ selectIdentifier: selectIdentifier11,
10792
+ selectDisplayName: selectDisplayName11
10512
10793
  });
10513
10794
  } else {
10514
10795
  source = await createFileSyncEngineDataSource({
10515
10796
  directory,
10516
- selectIdentifier: selectIdentifier10,
10517
- selectDisplayName: selectDisplayName10,
10797
+ selectIdentifier: selectIdentifier11,
10798
+ selectDisplayName: selectDisplayName11,
10518
10799
  verbose
10519
10800
  });
10520
10801
  }
@@ -10536,10 +10817,10 @@ var QuirkRemoveModule = {
10536
10817
  command: "remove <id>",
10537
10818
  aliases: ["delete", "rm"],
10538
10819
  describe: "Delete a quirk",
10539
- builder: (yargs44) => withConfiguration(
10820
+ builder: (yargs45) => withConfiguration(
10540
10821
  withApiOptions(
10541
10822
  withProjectOptions(
10542
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10823
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10543
10824
  )
10544
10825
  )
10545
10826
  ),
@@ -10556,10 +10837,10 @@ var QuirkUpdateModule = {
10556
10837
  command: "update <filename>",
10557
10838
  aliases: ["put"],
10558
10839
  describe: "Insert or update a quirk",
10559
- builder: (yargs44) => withConfiguration(
10840
+ builder: (yargs45) => withConfiguration(
10560
10841
  withApiOptions(
10561
10842
  withProjectOptions(
10562
- yargs44.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10843
+ yargs45.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10563
10844
  )
10564
10845
  )
10565
10846
  ),
@@ -10576,25 +10857,25 @@ var QuirkModule = {
10576
10857
  command: "quirk <command>",
10577
10858
  aliases: ["qk"],
10578
10859
  describe: "Commands for Context quirks",
10579
- builder: (yargs44) => yargs44.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10860
+ builder: (yargs45) => yargs45.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10580
10861
  handler: () => {
10581
- yargs26.help();
10862
+ yargs27.help();
10582
10863
  }
10583
10864
  };
10584
10865
 
10585
10866
  // src/commands/context/commands/signal.ts
10586
- import yargs27 from "yargs";
10867
+ import yargs28 from "yargs";
10587
10868
 
10588
10869
  // src/commands/context/commands/signal/get.ts
10589
10870
  import { SignalClient } from "@uniformdev/context/api";
10590
10871
  var SignalGetModule = {
10591
10872
  command: "get <id>",
10592
10873
  describe: "Fetch a signal",
10593
- builder: (yargs44) => withConfiguration(
10874
+ builder: (yargs45) => withConfiguration(
10594
10875
  withFormatOptions(
10595
10876
  withApiOptions(
10596
10877
  withProjectOptions(
10597
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10878
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10598
10879
  )
10599
10880
  )
10600
10881
  )
@@ -10618,7 +10899,7 @@ var SignalListModule = {
10618
10899
  command: "list",
10619
10900
  describe: "List signals",
10620
10901
  aliases: ["ls"],
10621
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10902
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10622
10903
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10623
10904
  const fetch2 = nodeFetchProxy(proxy);
10624
10905
  const client = new SignalClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10631,8 +10912,8 @@ var SignalListModule = {
10631
10912
  import { SignalClient as SignalClient3 } from "@uniformdev/context/api";
10632
10913
 
10633
10914
  // src/commands/context/commands/signal/_util.ts
10634
- var selectIdentifier11 = (source) => source.id;
10635
- var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10915
+ var selectIdentifier12 = (source) => source.id;
10916
+ var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
10636
10917
 
10637
10918
  // src/commands/context/signalEngineDataSource.ts
10638
10919
  function createSignalEngineDataSource({
@@ -10642,8 +10923,8 @@ function createSignalEngineDataSource({
10642
10923
  const signals = (await client.get()).signals;
10643
10924
  for await (const def of signals) {
10644
10925
  const result = {
10645
- id: selectIdentifier11(def),
10646
- displayName: selectDisplayName11(def),
10926
+ id: selectIdentifier12(def),
10927
+ displayName: selectDisplayName12(def),
10647
10928
  providerId: def.id,
10648
10929
  object: def
10649
10930
  };
@@ -10668,12 +10949,12 @@ function createSignalEngineDataSource({
10668
10949
  var SignalPullModule = {
10669
10950
  command: "pull <directory>",
10670
10951
  describe: "Pulls all signals to local files in a directory",
10671
- builder: (yargs44) => withConfiguration(
10952
+ builder: (yargs45) => withConfiguration(
10672
10953
  withDebugOptions(
10673
10954
  withApiOptions(
10674
10955
  withProjectOptions(
10675
10956
  withDiffOptions(
10676
- yargs44.positional("directory", {
10957
+ yargs45.positional("directory", {
10677
10958
  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.",
10678
10959
  type: "string"
10679
10960
  }).option("format", {
@@ -10717,8 +10998,8 @@ var SignalPullModule = {
10717
10998
  target = await createArraySyncEngineDataSource({
10718
10999
  name: `Package file ${directory}`,
10719
11000
  objects: packageContents.signals ?? [],
10720
- selectIdentifier: selectIdentifier11,
10721
- selectDisplayName: selectDisplayName11,
11001
+ selectIdentifier: selectIdentifier12,
11002
+ selectDisplayName: selectDisplayName12,
10722
11003
  onSyncComplete: async (_, synced) => {
10723
11004
  packageContents.signals = synced;
10724
11005
  writeContextPackage(directory, packageContents);
@@ -10727,8 +11008,8 @@ var SignalPullModule = {
10727
11008
  } else {
10728
11009
  target = await createFileSyncEngineDataSource({
10729
11010
  directory,
10730
- selectIdentifier: selectIdentifier11,
10731
- selectDisplayName: selectDisplayName11,
11011
+ selectIdentifier: selectIdentifier12,
11012
+ selectDisplayName: selectDisplayName12,
10732
11013
  format,
10733
11014
  verbose
10734
11015
  });
@@ -10749,12 +11030,12 @@ import { SignalClient as SignalClient4 } from "@uniformdev/context/api";
10749
11030
  var SignalPushModule = {
10750
11031
  command: "push <directory>",
10751
11032
  describe: "Pushes all signals from files in a directory or package to Uniform",
10752
- builder: (yargs44) => withConfiguration(
11033
+ builder: (yargs45) => withConfiguration(
10753
11034
  withDebugOptions(
10754
11035
  withApiOptions(
10755
11036
  withProjectOptions(
10756
11037
  withDiffOptions(
10757
- yargs44.positional("directory", {
11038
+ yargs45.positional("directory", {
10758
11039
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
10759
11040
  type: "string"
10760
11041
  }).option("mode", {
@@ -10790,14 +11071,14 @@ var SignalPushModule = {
10790
11071
  source = await createArraySyncEngineDataSource({
10791
11072
  name: `Package file ${directory}`,
10792
11073
  objects: packageContents.signals ?? [],
10793
- selectIdentifier: selectIdentifier11,
10794
- selectDisplayName: selectDisplayName11
11074
+ selectIdentifier: selectIdentifier12,
11075
+ selectDisplayName: selectDisplayName12
10795
11076
  });
10796
11077
  } else {
10797
11078
  source = await createFileSyncEngineDataSource({
10798
11079
  directory,
10799
- selectIdentifier: selectIdentifier11,
10800
- selectDisplayName: selectDisplayName11,
11080
+ selectIdentifier: selectIdentifier12,
11081
+ selectDisplayName: selectDisplayName12,
10801
11082
  verbose
10802
11083
  });
10803
11084
  }
@@ -10819,10 +11100,10 @@ var SignalRemoveModule = {
10819
11100
  command: "remove <id>",
10820
11101
  aliases: ["delete", "rm"],
10821
11102
  describe: "Delete a signal",
10822
- builder: (yargs44) => withConfiguration(
11103
+ builder: (yargs45) => withConfiguration(
10823
11104
  withApiOptions(
10824
11105
  withProjectOptions(
10825
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
11106
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
10826
11107
  )
10827
11108
  )
10828
11109
  ),
@@ -10839,10 +11120,10 @@ var SignalUpdateModule = {
10839
11120
  command: "update <filename>",
10840
11121
  aliases: ["put"],
10841
11122
  describe: "Insert or update a signal",
10842
- builder: (yargs44) => withConfiguration(
11123
+ builder: (yargs45) => withConfiguration(
10843
11124
  withApiOptions(
10844
11125
  withProjectOptions(
10845
- yargs44.positional("filename", { demandOption: true, describe: "Signal file to put" })
11126
+ yargs45.positional("filename", { demandOption: true, describe: "Signal file to put" })
10846
11127
  )
10847
11128
  )
10848
11129
  ),
@@ -10859,25 +11140,25 @@ var SignalModule = {
10859
11140
  command: "signal <command>",
10860
11141
  aliases: ["sig"],
10861
11142
  describe: "Commands for Context signals",
10862
- builder: (yargs44) => yargs44.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
11143
+ builder: (yargs45) => yargs45.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
10863
11144
  handler: () => {
10864
- yargs27.help();
11145
+ yargs28.help();
10865
11146
  }
10866
11147
  };
10867
11148
 
10868
11149
  // src/commands/context/commands/test.ts
10869
- import yargs28 from "yargs";
11150
+ import yargs29 from "yargs";
10870
11151
 
10871
11152
  // src/commands/context/commands/test/get.ts
10872
11153
  import { TestClient } from "@uniformdev/context/api";
10873
11154
  var TestGetModule = {
10874
11155
  command: "get <id>",
10875
11156
  describe: "Fetch a test",
10876
- builder: (yargs44) => withConfiguration(
11157
+ builder: (yargs45) => withConfiguration(
10877
11158
  withFormatOptions(
10878
11159
  withApiOptions(
10879
11160
  withProjectOptions(
10880
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
11161
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
10881
11162
  )
10882
11163
  )
10883
11164
  )
@@ -10901,7 +11182,7 @@ var TestListModule = {
10901
11182
  command: "list",
10902
11183
  describe: "List tests",
10903
11184
  aliases: ["ls"],
10904
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
11185
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10905
11186
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10906
11187
  const fetch2 = nodeFetchProxy(proxy);
10907
11188
  const client = new TestClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10914,8 +11195,8 @@ var TestListModule = {
10914
11195
  import { TestClient as TestClient3 } from "@uniformdev/context/api";
10915
11196
 
10916
11197
  // src/commands/context/commands/test/_util.ts
10917
- var selectIdentifier12 = (source) => source.id;
10918
- var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
11198
+ var selectIdentifier13 = (source) => source.id;
11199
+ var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
10919
11200
 
10920
11201
  // src/commands/context/testEngineDataSource.ts
10921
11202
  function createTestEngineDataSource({
@@ -10925,8 +11206,8 @@ function createTestEngineDataSource({
10925
11206
  const tests = (await client.get()).tests;
10926
11207
  for await (const def of tests) {
10927
11208
  const result = {
10928
- id: selectIdentifier12(def),
10929
- displayName: selectDisplayName12(def),
11209
+ id: selectIdentifier13(def),
11210
+ displayName: selectDisplayName13(def),
10930
11211
  providerId: def.id,
10931
11212
  object: def
10932
11213
  };
@@ -10951,12 +11232,12 @@ function createTestEngineDataSource({
10951
11232
  var TestPullModule = {
10952
11233
  command: "pull <directory>",
10953
11234
  describe: "Pulls all tests to local files in a directory",
10954
- builder: (yargs44) => withConfiguration(
11235
+ builder: (yargs45) => withConfiguration(
10955
11236
  withDebugOptions(
10956
11237
  withApiOptions(
10957
11238
  withProjectOptions(
10958
11239
  withDiffOptions(
10959
- yargs44.positional("directory", {
11240
+ yargs45.positional("directory", {
10960
11241
  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.",
10961
11242
  type: "string"
10962
11243
  }).option("format", {
@@ -11000,8 +11281,8 @@ var TestPullModule = {
11000
11281
  target = await createArraySyncEngineDataSource({
11001
11282
  name: `Package file ${directory}`,
11002
11283
  objects: packageContents.tests ?? [],
11003
- selectIdentifier: selectIdentifier12,
11004
- selectDisplayName: selectDisplayName12,
11284
+ selectIdentifier: selectIdentifier13,
11285
+ selectDisplayName: selectDisplayName13,
11005
11286
  onSyncComplete: async (_, synced) => {
11006
11287
  packageContents.tests = synced;
11007
11288
  writeContextPackage(directory, packageContents);
@@ -11010,8 +11291,8 @@ var TestPullModule = {
11010
11291
  } else {
11011
11292
  target = await createFileSyncEngineDataSource({
11012
11293
  directory,
11013
- selectIdentifier: selectIdentifier12,
11014
- selectDisplayName: selectDisplayName12,
11294
+ selectIdentifier: selectIdentifier13,
11295
+ selectDisplayName: selectDisplayName13,
11015
11296
  format,
11016
11297
  verbose
11017
11298
  });
@@ -11032,12 +11313,12 @@ import { TestClient as TestClient4 } from "@uniformdev/context/api";
11032
11313
  var TestPushModule = {
11033
11314
  command: "push <directory>",
11034
11315
  describe: "Pushes all tests from files in a directory or package to Uniform",
11035
- builder: (yargs44) => withConfiguration(
11316
+ builder: (yargs45) => withConfiguration(
11036
11317
  withDebugOptions(
11037
11318
  withApiOptions(
11038
11319
  withProjectOptions(
11039
11320
  withDiffOptions(
11040
- yargs44.positional("directory", {
11321
+ yargs45.positional("directory", {
11041
11322
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
11042
11323
  type: "string"
11043
11324
  }).option("mode", {
@@ -11073,14 +11354,14 @@ var TestPushModule = {
11073
11354
  source = await createArraySyncEngineDataSource({
11074
11355
  name: `Package file ${directory}`,
11075
11356
  objects: packageContents.tests ?? [],
11076
- selectIdentifier: selectIdentifier12,
11077
- selectDisplayName: selectDisplayName12
11357
+ selectIdentifier: selectIdentifier13,
11358
+ selectDisplayName: selectDisplayName13
11078
11359
  });
11079
11360
  } else {
11080
11361
  source = await createFileSyncEngineDataSource({
11081
11362
  directory,
11082
- selectIdentifier: selectIdentifier12,
11083
- selectDisplayName: selectDisplayName12,
11363
+ selectIdentifier: selectIdentifier13,
11364
+ selectDisplayName: selectDisplayName13,
11084
11365
  verbose
11085
11366
  });
11086
11367
  }
@@ -11102,10 +11383,10 @@ var TestRemoveModule = {
11102
11383
  command: "remove <id>",
11103
11384
  aliases: ["delete", "rm"],
11104
11385
  describe: "Delete a test",
11105
- builder: (yargs44) => withConfiguration(
11386
+ builder: (yargs45) => withConfiguration(
11106
11387
  withApiOptions(
11107
11388
  withProjectOptions(
11108
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11389
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11109
11390
  )
11110
11391
  )
11111
11392
  ),
@@ -11122,9 +11403,9 @@ var TestUpdateModule = {
11122
11403
  command: "update <filename>",
11123
11404
  aliases: ["put"],
11124
11405
  describe: "Insert or update a test",
11125
- builder: (yargs44) => withConfiguration(
11406
+ builder: (yargs45) => withConfiguration(
11126
11407
  withApiOptions(
11127
- withProjectOptions(yargs44.positional("filename", { demandOption: true, describe: "Test file to put" }))
11408
+ withProjectOptions(yargs45.positional("filename", { demandOption: true, describe: "Test file to put" }))
11128
11409
  )
11129
11410
  ),
11130
11411
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -11139,9 +11420,9 @@ var TestUpdateModule = {
11139
11420
  var TestModule = {
11140
11421
  command: "test <command>",
11141
11422
  describe: "Commands for Context A/B tests",
11142
- builder: (yargs44) => yargs44.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11423
+ builder: (yargs45) => yargs45.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11143
11424
  handler: () => {
11144
- yargs28.help();
11425
+ yargs29.help();
11145
11426
  }
11146
11427
  };
11147
11428
 
@@ -11150,29 +11431,29 @@ var ContextCommand = {
11150
11431
  command: "context <command>",
11151
11432
  aliases: ["ctx"],
11152
11433
  describe: "Uniform Context commands",
11153
- builder: (yargs44) => yargs44.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11434
+ builder: (yargs45) => yargs45.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11154
11435
  handler: () => {
11155
- yargs29.showHelp();
11436
+ yargs30.showHelp();
11156
11437
  }
11157
11438
  };
11158
11439
 
11159
11440
  // src/commands/integration/index.ts
11160
- import yargs34 from "yargs";
11441
+ import yargs35 from "yargs";
11161
11442
 
11162
11443
  // src/commands/integration/commands/definition.ts
11163
- import yargs33 from "yargs";
11444
+ import yargs34 from "yargs";
11164
11445
 
11165
11446
  // src/commands/integration/commands/definition/dataResourceEditor/dataResourceEditor.ts
11166
- import yargs30 from "yargs";
11447
+ import yargs31 from "yargs";
11167
11448
 
11168
11449
  // src/commands/integration/commands/definition/dataResourceEditor/deploy.ts
11169
11450
  import { readFileSync as readFileSync3 } from "fs";
11170
11451
 
11171
11452
  // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
11172
11453
  import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
11173
- import { ApiClient } from "@uniformdev/context/api";
11454
+ import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11174
11455
  var ENDPOINT = "/api/v1/integration-edgehancers";
11175
- var EdgehancerClient = class extends ApiClient {
11456
+ var EdgehancerClient = class extends ApiClient2 {
11176
11457
  constructor(options) {
11177
11458
  if (!options.limitPolicy) {
11178
11459
  options.limitPolicy = createLimitPolicy2({});
@@ -11201,8 +11482,8 @@ var EdgehancerClient = class extends ApiClient {
11201
11482
  };
11202
11483
 
11203
11484
  // src/commands/integration/commands/definition/dataResourceEditor/util.ts
11204
- function withDataResourceEditorIdOptions(yargs44) {
11205
- return yargs44.option("connectorType", {
11485
+ function withDataResourceEditorIdOptions(yargs45) {
11486
+ return yargs45.option("connectorType", {
11206
11487
  describe: "Integration data connector type to attach the data resource editor to, as defined in the integration manifest file.",
11207
11488
  demandOption: true,
11208
11489
  type: "string"
@@ -11222,11 +11503,11 @@ function withDataResourceEditorIdOptions(yargs44) {
11222
11503
  var IntegrationDataResourceEditorDeployModule = {
11223
11504
  command: "deploy <filename>",
11224
11505
  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.",
11225
- builder: (yargs44) => withConfiguration(
11506
+ builder: (yargs45) => withConfiguration(
11226
11507
  withApiOptions(
11227
11508
  withTeamOptions(
11228
11509
  withDataResourceEditorIdOptions(
11229
- yargs44.positional("filename", {
11510
+ yargs45.positional("filename", {
11230
11511
  demandOption: true,
11231
11512
  describe: "ESM code file to run for the target data resource editor hook. Refer to the documentation for expected types."
11232
11513
  }).option("compatibilityDate", {
@@ -11269,7 +11550,7 @@ var IntegrationDataResourceEditorDeployModule = {
11269
11550
  var IntegrationDataResourceEditorRemoveModule = {
11270
11551
  command: "remove",
11271
11552
  describe: "Removes a custom AI data resource editor hook from a data resource archetype. The API key used must have team admin permissions.",
11272
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs44)))),
11553
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs45)))),
11273
11554
  handler: async ({ apiHost, apiKey, proxy, team: teamId, connectorType, archetype, hook }) => {
11274
11555
  const fetch2 = nodeFetchProxy(proxy);
11275
11556
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11281,21 +11562,21 @@ var IntegrationDataResourceEditorRemoveModule = {
11281
11562
  var IntegrationDataResourceEditorModule = {
11282
11563
  command: "dataResourceEditor <command>",
11283
11564
  describe: "Commands for managing custom AI data resource editors at the team level.",
11284
- builder: (yargs44) => yargs44.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11565
+ builder: (yargs45) => yargs45.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11285
11566
  handler: () => {
11286
- yargs30.help();
11567
+ yargs31.help();
11287
11568
  }
11288
11569
  };
11289
11570
 
11290
11571
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
11291
- import yargs31 from "yargs";
11572
+ import yargs32 from "yargs";
11292
11573
 
11293
11574
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
11294
11575
  import { readFileSync as readFileSync4 } from "fs";
11295
11576
 
11296
11577
  // src/commands/integration/commands/definition/edgehancer/util.ts
11297
- function withEdgehancerIdOptions(yargs44) {
11298
- return yargs44.option("connectorType", {
11578
+ function withEdgehancerIdOptions(yargs45) {
11579
+ return yargs45.option("connectorType", {
11299
11580
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
11300
11581
  demandOption: true,
11301
11582
  type: "string"
@@ -11315,11 +11596,11 @@ function withEdgehancerIdOptions(yargs44) {
11315
11596
  var IntegrationEdgehancerDeployModule = {
11316
11597
  command: "deploy <filename>",
11317
11598
  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.",
11318
- builder: (yargs44) => withConfiguration(
11599
+ builder: (yargs45) => withConfiguration(
11319
11600
  withApiOptions(
11320
11601
  withTeamOptions(
11321
11602
  withEdgehancerIdOptions(
11322
- yargs44.positional("filename", {
11603
+ yargs45.positional("filename", {
11323
11604
  demandOption: true,
11324
11605
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
11325
11606
  }).option("compatibilityDate", {
@@ -11362,7 +11643,7 @@ var IntegrationEdgehancerDeployModule = {
11362
11643
  var IntegrationEdgehancerRemoveModule = {
11363
11644
  command: "remove",
11364
11645
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
11365
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs44)))),
11646
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs45)))),
11366
11647
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
11367
11648
  const fetch2 = nodeFetchProxy(proxy);
11368
11649
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11374,22 +11655,22 @@ var IntegrationEdgehancerRemoveModule = {
11374
11655
  var IntegrationEdgehancerModule = {
11375
11656
  command: "edgehancer <command>",
11376
11657
  describe: "Commands for managing custom integration edgehancers at the team level.",
11377
- builder: (yargs44) => yargs44.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11658
+ builder: (yargs45) => yargs45.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11378
11659
  handler: () => {
11379
- yargs31.help();
11660
+ yargs32.help();
11380
11661
  }
11381
11662
  };
11382
11663
 
11383
11664
  // src/commands/integration/commands/definition/propertyEditor/propertyEditor.ts
11384
- import yargs32 from "yargs";
11665
+ import yargs33 from "yargs";
11385
11666
 
11386
11667
  // src/commands/integration/commands/definition/propertyEditor/deploy.ts
11387
11668
  import { IntegrationPropertyEditorsClient } from "@uniformdev/canvas";
11388
11669
  import { readFileSync as readFileSync5 } from "fs";
11389
11670
 
11390
11671
  // src/commands/integration/commands/definition/propertyEditor/util.ts
11391
- function withPropertyEditorIdOptions(yargs44) {
11392
- return yargs44.option("propertyType", {
11672
+ function withPropertyEditorIdOptions(yargs45) {
11673
+ return yargs45.option("propertyType", {
11393
11674
  describe: "Property type to attach the editor to.",
11394
11675
  demandOption: true,
11395
11676
  type: "string"
@@ -11405,11 +11686,11 @@ function withPropertyEditorIdOptions(yargs44) {
11405
11686
  var IntegrationPropertyEditorDeployModule = {
11406
11687
  command: "deploy <filename>",
11407
11688
  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.",
11408
- builder: (yargs44) => withConfiguration(
11689
+ builder: (yargs45) => withConfiguration(
11409
11690
  withApiOptions(
11410
11691
  withTeamOptions(
11411
11692
  withPropertyEditorIdOptions(
11412
- yargs44.positional("filename", {
11693
+ yargs45.positional("filename", {
11413
11694
  demandOption: true,
11414
11695
  describe: "ESM code file to run for the target property editor hook. Refer to the documentation for expected types."
11415
11696
  }).option("compatibilityDate", {
@@ -11452,7 +11733,7 @@ import { IntegrationPropertyEditorsClient as IntegrationPropertyEditorsClient2 }
11452
11733
  var IntegrationPropertyEditorRemoveModule = {
11453
11734
  command: "remove",
11454
11735
  describe: "Deletes a custom AI property editor hook from a property type. The API key used must have team admin permissions.",
11455
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs44)))),
11736
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs45)))),
11456
11737
  handler: async ({ apiHost, apiKey, proxy, team: teamId, propertyType, hook }) => {
11457
11738
  const fetch2 = nodeFetchProxy(proxy);
11458
11739
  const client = new IntegrationPropertyEditorsClient2({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11464,17 +11745,17 @@ var IntegrationPropertyEditorRemoveModule = {
11464
11745
  var IntegrationPropertyEditorModule = {
11465
11746
  command: "propertyEditor <command>",
11466
11747
  describe: "Commands for managing custom AI property editors at the team level.",
11467
- builder: (yargs44) => yargs44.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11748
+ builder: (yargs45) => yargs45.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11468
11749
  handler: () => {
11469
- yargs32.help();
11750
+ yargs33.help();
11470
11751
  }
11471
11752
  };
11472
11753
 
11473
11754
  // src/commands/integration/commands/definition/DefinitionClient.ts
11474
11755
  import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
11475
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11756
+ import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11476
11757
  var ENDPOINT2 = "/api/v1/integration-definitions";
11477
- var DefinitionClient = class extends ApiClient2 {
11758
+ var DefinitionClient = class extends ApiClient3 {
11478
11759
  constructor(options) {
11479
11760
  if (!options.limitPolicy) {
11480
11761
  options.limitPolicy = createLimitPolicy3({});
@@ -11506,10 +11787,10 @@ var DefinitionClient = class extends ApiClient2 {
11506
11787
  var IntegrationDefinitionRegisterModule = {
11507
11788
  command: "register <filename>",
11508
11789
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
11509
- builder: (yargs44) => withConfiguration(
11790
+ builder: (yargs45) => withConfiguration(
11510
11791
  withApiOptions(
11511
11792
  withTeamOptions(
11512
- yargs44.positional("filename", {
11793
+ yargs45.positional("filename", {
11513
11794
  demandOption: true,
11514
11795
  describe: "Integration definition manifest to register"
11515
11796
  })
@@ -11528,10 +11809,10 @@ var IntegrationDefinitionRegisterModule = {
11528
11809
  var IntegrationDefinitionRemoveModule = {
11529
11810
  command: "remove <type>",
11530
11811
  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.",
11531
- builder: (yargs44) => withConfiguration(
11812
+ builder: (yargs45) => withConfiguration(
11532
11813
  withApiOptions(
11533
11814
  withTeamOptions(
11534
- yargs44.positional("type", {
11815
+ yargs45.positional("type", {
11535
11816
  demandOption: true,
11536
11817
  describe: "Integration type (from its manifest) to remove."
11537
11818
  })
@@ -11549,17 +11830,17 @@ var IntegrationDefinitionRemoveModule = {
11549
11830
  var IntegrationDefinitionModule = {
11550
11831
  command: "definition <command>",
11551
11832
  describe: "Commands for managing custom integration definitions at the team level.",
11552
- builder: (yargs44) => yargs44.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11833
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11553
11834
  handler: () => {
11554
- yargs33.help();
11835
+ yargs34.help();
11555
11836
  }
11556
11837
  };
11557
11838
 
11558
11839
  // src/commands/integration/commands/InstallClient.ts
11559
11840
  import { createLimitPolicy as createLimitPolicy4 } from "@uniformdev/canvas";
11560
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11841
+ import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
11561
11842
  var ENDPOINT3 = "/api/v1/integration-installations";
11562
- var InstallClient = class extends ApiClient3 {
11843
+ var InstallClient = class extends ApiClient4 {
11563
11844
  constructor(options) {
11564
11845
  if (!options.limitPolicy) {
11565
11846
  options.limitPolicy = createLimitPolicy4({});
@@ -11591,10 +11872,10 @@ var InstallClient = class extends ApiClient3 {
11591
11872
  var IntegrationInstallModule = {
11592
11873
  command: "install <type>",
11593
11874
  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.",
11594
- builder: (yargs44) => withConfiguration(
11875
+ builder: (yargs45) => withConfiguration(
11595
11876
  withApiOptions(
11596
11877
  withProjectOptions(
11597
- yargs44.positional("type", {
11878
+ yargs45.positional("type", {
11598
11879
  demandOption: true,
11599
11880
  describe: "Integration type to install (as defined in its manifest)"
11600
11881
  }).option("configuration", {
@@ -11616,10 +11897,10 @@ var IntegrationInstallModule = {
11616
11897
  var IntegrationUninstallModule = {
11617
11898
  command: "uninstall <type>",
11618
11899
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
11619
- builder: (yargs44) => withConfiguration(
11900
+ builder: (yargs45) => withConfiguration(
11620
11901
  withApiOptions(
11621
11902
  withProjectOptions(
11622
- yargs44.positional("type", {
11903
+ yargs45.positional("type", {
11623
11904
  demandOption: true,
11624
11905
  describe: "Integration type to uninstall (as defined in its manifest)"
11625
11906
  })
@@ -11637,9 +11918,9 @@ var IntegrationUninstallModule = {
11637
11918
  var IntegrationCommand = {
11638
11919
  command: "integration <command>",
11639
11920
  describe: "Integration management commands",
11640
- builder: (yargs44) => yargs44.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11921
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11641
11922
  handler: () => {
11642
- yargs34.showHelp();
11923
+ yargs35.showHelp();
11643
11924
  }
11644
11925
  };
11645
11926
 
@@ -11667,7 +11948,7 @@ ${err.message}`);
11667
11948
  };
11668
11949
 
11669
11950
  // src/projects/cloneStarter.ts
11670
- import crypto2 from "crypto";
11951
+ import crypto3 from "crypto";
11671
11952
  import fs7 from "fs";
11672
11953
  import fsj5 from "fs-jetpack";
11673
11954
  import * as git from "isomorphic-git";
@@ -11682,7 +11963,7 @@ async function cloneStarter({
11682
11963
  githubBranch
11683
11964
  }) {
11684
11965
  const done = await spin("Fetching starter code...");
11685
- const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
11966
+ const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto3.randomBytes(20).toString("hex")}`);
11686
11967
  const [user, repo, ...pathSegments] = githubPath.split("/");
11687
11968
  try {
11688
11969
  await git.clone({
@@ -12104,14 +12385,14 @@ var NewMeshCmd = {
12104
12385
  };
12105
12386
 
12106
12387
  // src/commands/policy-documents/index.ts
12107
- import yargs35 from "yargs";
12388
+ import yargs36 from "yargs";
12108
12389
 
12109
12390
  // src/commands/policy-documents/commands/list.ts
12110
12391
  var PolicyDocumentsListModule = {
12111
12392
  command: "list",
12112
12393
  describe: "List policy documents for a project",
12113
12394
  aliases: ["ls"],
12114
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12395
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12115
12396
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
12116
12397
  const fetch2 = nodeFetchProxy(proxy, verbose);
12117
12398
  const url = new URL(`/api/v1/policy-documents`, apiHost);
@@ -12189,19 +12470,19 @@ ${errorText}`
12189
12470
  }
12190
12471
 
12191
12472
  // src/commands/policy-documents/commands/_util.ts
12192
- var selectIdentifier13 = (policyDoc) => policyDoc.roleId;
12193
- var selectDisplayName13 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12473
+ var selectIdentifier14 = (policyDoc) => policyDoc.roleId;
12474
+ var selectDisplayName14 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12194
12475
 
12195
12476
  // src/commands/policy-documents/commands/pull.ts
12196
12477
  var PolicyDocumentsPullModule = {
12197
12478
  command: "pull <directory>",
12198
12479
  describe: "Pulls all policy documents to local files in a directory",
12199
- builder: (yargs44) => withConfiguration(
12480
+ builder: (yargs45) => withConfiguration(
12200
12481
  withApiOptions(
12201
12482
  withDebugOptions(
12202
12483
  withProjectOptions(
12203
12484
  withDiffOptions(
12204
- yargs44.positional("directory", {
12485
+ yargs45.positional("directory", {
12205
12486
  describe: "Directory to save to. Each policy document will be saved as a separate file named by role ID.",
12206
12487
  type: "string"
12207
12488
  }).option("format", {
@@ -12239,8 +12520,8 @@ var PolicyDocumentsPullModule = {
12239
12520
  const source = createPolicyDocumentsEngineDataSource({ apiKey, apiHost, fetch: fetch2, projectId });
12240
12521
  const target = await createFileSyncEngineDataSource({
12241
12522
  directory,
12242
- selectIdentifier: selectIdentifier13,
12243
- selectDisplayName: selectDisplayName13,
12523
+ selectIdentifier: selectIdentifier14,
12524
+ selectDisplayName: selectDisplayName14,
12244
12525
  format,
12245
12526
  verbose
12246
12527
  });
@@ -12335,12 +12616,12 @@ function mergePolicyDocuments(localDocs, remoteDocs, mode) {
12335
12616
  var PolicyDocumentsPushModule = {
12336
12617
  command: "push <directory>",
12337
12618
  describe: "Pushes policy documents from local files to Uniform",
12338
- builder: (yargs44) => withConfiguration(
12619
+ builder: (yargs45) => withConfiguration(
12339
12620
  withApiOptions(
12340
12621
  withDebugOptions(
12341
12622
  withProjectOptions(
12342
12623
  withDiffOptions(
12343
- yargs44.positional("directory", {
12624
+ yargs45.positional("directory", {
12344
12625
  describe: "Directory containing policy document files (one file per role ID).",
12345
12626
  type: "string"
12346
12627
  }).option("format", {
@@ -12389,8 +12670,8 @@ var PolicyDocumentsPushModule = {
12389
12670
  const finalDocs = mergePolicyDocuments(localDocs, remoteDocs, mode);
12390
12671
  const source = await createFileSyncEngineDataSource({
12391
12672
  directory,
12392
- selectIdentifier: selectIdentifier13,
12393
- selectDisplayName: selectDisplayName13,
12673
+ selectIdentifier: selectIdentifier14,
12674
+ selectDisplayName: selectDisplayName14,
12394
12675
  format,
12395
12676
  verbose
12396
12677
  });
@@ -12436,22 +12717,22 @@ var PolicyDocumentsCommand = {
12436
12717
  command: "policy-documents <command>",
12437
12718
  aliases: ["policy", "policies"],
12438
12719
  describe: "Uniform Policy Documents commands",
12439
- builder: (yargs44) => yargs44.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12720
+ builder: (yargs45) => yargs45.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12440
12721
  handler: () => {
12441
- yargs35.showHelp();
12722
+ yargs36.showHelp();
12442
12723
  }
12443
12724
  };
12444
12725
 
12445
12726
  // src/commands/project-map/index.ts
12446
- import yargs38 from "yargs";
12727
+ import yargs39 from "yargs";
12447
12728
 
12448
12729
  // src/commands/project-map/commands/projectMapDefinition.ts
12449
- import yargs36 from "yargs";
12730
+ import yargs37 from "yargs";
12450
12731
 
12451
12732
  // src/commands/project-map/commands/ProjectMapDefinition/_util.ts
12452
12733
  import { ProjectMapClient } from "@uniformdev/project-map";
12453
- var selectIdentifier14 = (source) => source.id;
12454
- var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
12734
+ var selectIdentifier15 = (source) => source.id;
12735
+ var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
12455
12736
  function getProjectMapClient(options) {
12456
12737
  return new ProjectMapClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
12457
12738
  }
@@ -12460,11 +12741,11 @@ function getProjectMapClient(options) {
12460
12741
  var ProjectMapDefinitionGetModule = {
12461
12742
  command: "get <id>",
12462
12743
  describe: "Fetch a project map",
12463
- builder: (yargs44) => withFormatOptions(
12744
+ builder: (yargs45) => withFormatOptions(
12464
12745
  withConfiguration(
12465
12746
  withApiOptions(
12466
12747
  withProjectOptions(
12467
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12748
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12468
12749
  )
12469
12750
  )
12470
12751
  )
@@ -12487,7 +12768,7 @@ var ProjectMapDefinitionListModule = {
12487
12768
  command: "list",
12488
12769
  describe: "List of project maps",
12489
12770
  aliases: ["ls"],
12490
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12771
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12491
12772
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
12492
12773
  const fetch2 = nodeFetchProxy(proxy);
12493
12774
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -12515,9 +12796,9 @@ function createProjectMapDefinitionEngineDataSource({
12515
12796
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
12516
12797
  for await (const def of projectMaps) {
12517
12798
  const result = {
12518
- id: selectIdentifier14(def),
12519
- displayName: selectDisplayName14(def),
12520
- providerId: selectIdentifier14(def),
12799
+ id: selectIdentifier15(def),
12800
+ displayName: selectDisplayName15(def),
12801
+ providerId: selectIdentifier15(def),
12521
12802
  object: def
12522
12803
  };
12523
12804
  yield result;
@@ -12541,12 +12822,12 @@ function createProjectMapDefinitionEngineDataSource({
12541
12822
  var ProjectMapDefinitionPullModule = {
12542
12823
  command: "pull <directory>",
12543
12824
  describe: "Pulls all project maps to local files in a directory",
12544
- builder: (yargs44) => withConfiguration(
12825
+ builder: (yargs45) => withConfiguration(
12545
12826
  withDebugOptions(
12546
12827
  withApiOptions(
12547
12828
  withProjectOptions(
12548
12829
  withDiffOptions(
12549
- yargs44.positional("directory", {
12830
+ yargs45.positional("directory", {
12550
12831
  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.",
12551
12832
  type: "string"
12552
12833
  }).option("format", {
@@ -12590,8 +12871,8 @@ var ProjectMapDefinitionPullModule = {
12590
12871
  target = await createArraySyncEngineDataSource({
12591
12872
  name: `Package file ${directory}`,
12592
12873
  objects: packageContents.projectMaps ?? [],
12593
- selectIdentifier: selectIdentifier14,
12594
- selectDisplayName: selectDisplayName14,
12874
+ selectIdentifier: selectIdentifier15,
12875
+ selectDisplayName: selectDisplayName15,
12595
12876
  onSyncComplete: async (_, synced) => {
12596
12877
  packageContents.projectMaps = synced;
12597
12878
  writeContextPackage2(directory, packageContents);
@@ -12600,8 +12881,8 @@ var ProjectMapDefinitionPullModule = {
12600
12881
  } else {
12601
12882
  target = await createFileSyncEngineDataSource({
12602
12883
  directory,
12603
- selectIdentifier: selectIdentifier14,
12604
- selectDisplayName: selectDisplayName14,
12884
+ selectIdentifier: selectIdentifier15,
12885
+ selectDisplayName: selectDisplayName15,
12605
12886
  format,
12606
12887
  verbose
12607
12888
  });
@@ -12621,12 +12902,12 @@ var ProjectMapDefinitionPullModule = {
12621
12902
  var ProjectMapDefinitionPushModule = {
12622
12903
  command: "push <directory>",
12623
12904
  describe: "Pushes all project maps from files in a directory or package to Uniform",
12624
- builder: (yargs44) => withConfiguration(
12905
+ builder: (yargs45) => withConfiguration(
12625
12906
  withDebugOptions(
12626
12907
  withApiOptions(
12627
12908
  withProjectOptions(
12628
12909
  withDiffOptions(
12629
- yargs44.positional("directory", {
12910
+ yargs45.positional("directory", {
12630
12911
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12631
12912
  type: "string"
12632
12913
  }).option("mode", {
@@ -12662,14 +12943,14 @@ var ProjectMapDefinitionPushModule = {
12662
12943
  source = await createArraySyncEngineDataSource({
12663
12944
  name: `Package file ${directory}`,
12664
12945
  objects: packageContents.projectMaps ?? [],
12665
- selectIdentifier: selectIdentifier14,
12666
- selectDisplayName: selectDisplayName14
12946
+ selectIdentifier: selectIdentifier15,
12947
+ selectDisplayName: selectDisplayName15
12667
12948
  });
12668
12949
  } else {
12669
12950
  source = await createFileSyncEngineDataSource({
12670
12951
  directory,
12671
- selectIdentifier: selectIdentifier14,
12672
- selectDisplayName: selectDisplayName14,
12952
+ selectIdentifier: selectIdentifier15,
12953
+ selectDisplayName: selectDisplayName15,
12673
12954
  verbose
12674
12955
  });
12675
12956
  }
@@ -12690,9 +12971,9 @@ var ProjectMapDefinitionRemoveModule = {
12690
12971
  command: "remove <id>",
12691
12972
  aliases: ["delete", "rm"],
12692
12973
  describe: "Delete a project map",
12693
- builder: (yargs44) => withConfiguration(
12974
+ builder: (yargs45) => withConfiguration(
12694
12975
  withApiOptions(
12695
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
12976
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
12696
12977
  )
12697
12978
  ),
12698
12979
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -12707,10 +12988,10 @@ var ProjectMapDefinitionUpdateModule = {
12707
12988
  command: "update <filename>",
12708
12989
  aliases: ["put"],
12709
12990
  describe: "Insert or update a project map",
12710
- builder: (yargs44) => withConfiguration(
12991
+ builder: (yargs45) => withConfiguration(
12711
12992
  withApiOptions(
12712
12993
  withProjectOptions(
12713
- yargs44.positional("filename", { demandOption: true, describe: "Project map file to put" })
12994
+ yargs45.positional("filename", { demandOption: true, describe: "Project map file to put" })
12714
12995
  )
12715
12996
  )
12716
12997
  ),
@@ -12726,24 +13007,24 @@ var ProjectMapDefinitionUpdateModule = {
12726
13007
  var ProjectMapDefinitionModule = {
12727
13008
  command: "definition <command>",
12728
13009
  describe: "Commands for ProjectMap Definitions",
12729
- builder: (yargs44) => yargs44.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
13010
+ builder: (yargs45) => yargs45.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
12730
13011
  handler: () => {
12731
- yargs36.help();
13012
+ yargs37.help();
12732
13013
  }
12733
13014
  };
12734
13015
 
12735
13016
  // src/commands/project-map/commands/projectMapNode.ts
12736
- import yargs37 from "yargs";
13017
+ import yargs38 from "yargs";
12737
13018
 
12738
13019
  // src/commands/project-map/commands/ProjectMapNode/get.ts
12739
13020
  var ProjectMapNodeGetModule = {
12740
13021
  command: "get <id> <projectMapId>",
12741
13022
  describe: "Fetch a project map node",
12742
- builder: (yargs44) => withConfiguration(
13023
+ builder: (yargs45) => withConfiguration(
12743
13024
  withFormatOptions(
12744
13025
  withApiOptions(
12745
13026
  withProjectOptions(
12746
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
13027
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
12747
13028
  )
12748
13029
  )
12749
13030
  )
@@ -12766,12 +13047,12 @@ var ProjectMapNodeListModule = {
12766
13047
  command: "list <projectMapId>",
12767
13048
  describe: "List project map nodes",
12768
13049
  aliases: ["ls"],
12769
- builder: (yargs44) => withConfiguration(
13050
+ builder: (yargs45) => withConfiguration(
12770
13051
  withFormatOptions(
12771
13052
  withApiOptions(
12772
13053
  withProjectOptions(
12773
13054
  withStateOptions(
12774
- yargs44.positional("projectMapId", {
13055
+ yargs45.positional("projectMapId", {
12775
13056
  demandOption: true,
12776
13057
  describe: "ProjectMap UUID to fetch from"
12777
13058
  })
@@ -12789,13 +13070,13 @@ var ProjectMapNodeListModule = {
12789
13070
  };
12790
13071
 
12791
13072
  // src/commands/project-map/commands/ProjectMapNode/_util.ts
12792
- var selectIdentifier15 = (source, projectId) => [
13073
+ var selectIdentifier16 = (source, projectId) => [
12793
13074
  projectId + source.projectMapId + source.id,
12794
13075
  projectId + source.projectMapId + source.path
12795
13076
  ];
12796
13077
  var selectNodeDepth = (source) => source.path.split("/").filter((segment) => segment.length > 0).length;
12797
13078
  var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
12798
- var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
13079
+ var selectDisplayName16 = (source) => `${source.name} (pid: ${source.id})`;
12799
13080
  function alignProjectMapNodeWithTargetIdentifier(sourceObject, targetObject) {
12800
13081
  if (!targetObject) {
12801
13082
  return sourceObject;
@@ -12823,9 +13104,9 @@ function createProjectMapNodeEngineDataSource({
12823
13104
  for await (const node of nodes ?? []) {
12824
13105
  if (node) {
12825
13106
  const result = {
12826
- id: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId),
12827
- displayName: selectDisplayName15(node),
12828
- providerId: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId)[0],
13107
+ id: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId),
13108
+ displayName: selectDisplayName16(node),
13109
+ providerId: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId)[0],
12829
13110
  object: { ...node, projectMapId: projectMap.id }
12830
13111
  };
12831
13112
  yield result;
@@ -12864,12 +13145,12 @@ function createProjectMapNodeEngineDataSource({
12864
13145
  var ProjectMapNodePullModule = {
12865
13146
  command: "pull <directory>",
12866
13147
  describe: "Pulls all project maps nodes to local files in a directory",
12867
- builder: (yargs44) => withConfiguration(
13148
+ builder: (yargs45) => withConfiguration(
12868
13149
  withDebugOptions(
12869
13150
  withApiOptions(
12870
13151
  withProjectOptions(
12871
13152
  withDiffOptions(
12872
- yargs44.positional("directory", {
13153
+ yargs45.positional("directory", {
12873
13154
  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.",
12874
13155
  type: "string"
12875
13156
  }).option("format", {
@@ -12909,7 +13190,7 @@ var ProjectMapNodePullModule = {
12909
13190
  let target;
12910
13191
  const isPackage = isPathAPackageFile(directory);
12911
13192
  const expandedSelectIdentifier = (object4) => {
12912
- return selectIdentifier15(object4, projectId);
13193
+ return selectIdentifier16(object4, projectId);
12913
13194
  };
12914
13195
  if (isPackage) {
12915
13196
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -12917,7 +13198,7 @@ var ProjectMapNodePullModule = {
12917
13198
  name: `Package file ${directory}`,
12918
13199
  objects: packageContents.projectMapNodes ?? [],
12919
13200
  selectIdentifier: expandedSelectIdentifier,
12920
- selectDisplayName: selectDisplayName15,
13201
+ selectDisplayName: selectDisplayName16,
12921
13202
  onSyncComplete: async (_, synced) => {
12922
13203
  packageContents.projectMapNodes = synced;
12923
13204
  writeContextPackage2(directory, packageContents);
@@ -12927,7 +13208,7 @@ var ProjectMapNodePullModule = {
12927
13208
  target = await createFileSyncEngineDataSource({
12928
13209
  directory,
12929
13210
  selectIdentifier: expandedSelectIdentifier,
12930
- selectDisplayName: selectDisplayName15,
13211
+ selectDisplayName: selectDisplayName16,
12931
13212
  format,
12932
13213
  selectFilename,
12933
13214
  verbose
@@ -12951,12 +13232,12 @@ import {
12951
13232
  var ProjectMapNodePushModule = {
12952
13233
  command: "push <directory>",
12953
13234
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
12954
- builder: (yargs44) => withConfiguration(
13235
+ builder: (yargs45) => withConfiguration(
12955
13236
  withDebugOptions(
12956
13237
  withApiOptions(
12957
13238
  withProjectOptions(
12958
13239
  withDiffOptions(
12959
- yargs44.positional("directory", {
13240
+ yargs45.positional("directory", {
12960
13241
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12961
13242
  type: "string"
12962
13243
  }).option("mode", {
@@ -12993,7 +13274,7 @@ var ProjectMapNodePushModule = {
12993
13274
  let source;
12994
13275
  const isPackage = isPathAPackageFile(directory);
12995
13276
  const expandedSelectIdentifier = (object4) => {
12996
- return selectIdentifier15(object4, projectId);
13277
+ return selectIdentifier16(object4, projectId);
12997
13278
  };
12998
13279
  if (isPackage) {
12999
13280
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -13003,13 +13284,13 @@ var ProjectMapNodePushModule = {
13003
13284
  return selectNodeDepth(a) - selectNodeDepth(b);
13004
13285
  }) ?? [],
13005
13286
  selectIdentifier: expandedSelectIdentifier,
13006
- selectDisplayName: selectDisplayName15
13287
+ selectDisplayName: selectDisplayName16
13007
13288
  });
13008
13289
  } else {
13009
13290
  source = await createFileSyncEngineDataSource({
13010
13291
  directory,
13011
13292
  selectIdentifier: expandedSelectIdentifier,
13012
- selectDisplayName: selectDisplayName15,
13293
+ selectDisplayName: selectDisplayName16,
13013
13294
  selectFilename,
13014
13295
  verbose
13015
13296
  });
@@ -13050,7 +13331,7 @@ var ProjectMapNodePushModule = {
13050
13331
  name: `Nodes re-push from ${directory}`,
13051
13332
  objects: Array.from(nodesFailedDueToMissingParent),
13052
13333
  selectIdentifier: expandedSelectIdentifier,
13053
- selectDisplayName: selectDisplayName15
13334
+ selectDisplayName: selectDisplayName16
13054
13335
  });
13055
13336
  await attemptSync();
13056
13337
  } else {
@@ -13067,10 +13348,10 @@ var ProjectMapNodeRemoveModule = {
13067
13348
  command: "remove <id> <projectMapId>",
13068
13349
  aliases: ["delete", "rm"],
13069
13350
  describe: "Delete a project map node",
13070
- builder: (yargs44) => withConfiguration(
13351
+ builder: (yargs45) => withConfiguration(
13071
13352
  withApiOptions(
13072
13353
  withProjectOptions(
13073
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13354
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13074
13355
  )
13075
13356
  )
13076
13357
  ),
@@ -13086,10 +13367,10 @@ var ProjectMapNodeUpdateModule = {
13086
13367
  command: "update <filename> <projectMapId>",
13087
13368
  aliases: ["put"],
13088
13369
  describe: "Insert or update a project map node",
13089
- builder: (yargs44) => withConfiguration(
13370
+ builder: (yargs45) => withConfiguration(
13090
13371
  withApiOptions(
13091
13372
  withProjectOptions(
13092
- yargs44.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13373
+ yargs45.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13093
13374
  )
13094
13375
  )
13095
13376
  ),
@@ -13105,9 +13386,9 @@ var ProjectMapNodeUpdateModule = {
13105
13386
  var ProjectMapNodeModule = {
13106
13387
  command: "node <command>",
13107
13388
  describe: "Commands for ProjectMap Nodes",
13108
- builder: (yargs44) => yargs44.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13389
+ builder: (yargs45) => yargs45.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13109
13390
  handler: () => {
13110
- yargs37.help();
13391
+ yargs38.help();
13111
13392
  }
13112
13393
  };
13113
13394
 
@@ -13116,26 +13397,26 @@ var ProjectMapCommand = {
13116
13397
  command: "project-map <command>",
13117
13398
  aliases: ["prm"],
13118
13399
  describe: "Uniform ProjectMap commands",
13119
- builder: (yargs44) => yargs44.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13400
+ builder: (yargs45) => yargs45.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13120
13401
  handler: () => {
13121
- yargs38.showHelp();
13402
+ yargs39.showHelp();
13122
13403
  }
13123
13404
  };
13124
13405
 
13125
13406
  // src/commands/redirect/index.ts
13126
- import yargs40 from "yargs";
13407
+ import yargs41 from "yargs";
13127
13408
 
13128
13409
  // src/commands/redirect/commands/redirect.ts
13129
- import yargs39 from "yargs";
13410
+ import yargs40 from "yargs";
13130
13411
 
13131
13412
  // src/commands/redirect/commands/RedirectDefinition/_util.ts
13132
13413
  import { RedirectClient } from "@uniformdev/redirect";
13133
- var selectIdentifier16 = (source) => source.id;
13414
+ var selectIdentifier17 = (source) => source.id;
13134
13415
  var selectFilename2 = (source) => {
13135
13416
  const index = source.sourceUrl.lastIndexOf("/");
13136
13417
  return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
13137
13418
  };
13138
- var selectDisplayName16 = (source) => {
13419
+ var selectDisplayName17 = (source) => {
13139
13420
  let pathName = source.sourceUrl;
13140
13421
  if (pathName.length > 30) {
13141
13422
  const slashIndex = source.sourceUrl.indexOf("/", source.sourceUrl.length - 30);
@@ -13151,11 +13432,11 @@ function getRedirectClient(options) {
13151
13432
  var RedirectDefinitionGetModule = {
13152
13433
  command: "get <id>",
13153
13434
  describe: "Fetch a redirect",
13154
- builder: (yargs44) => withConfiguration(
13435
+ builder: (yargs45) => withConfiguration(
13155
13436
  withFormatOptions(
13156
13437
  withApiOptions(
13157
13438
  withProjectOptions(
13158
- yargs44.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13439
+ yargs45.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13159
13440
  )
13160
13441
  )
13161
13442
  )
@@ -13178,7 +13459,7 @@ var RedirectDefinitionListModule = {
13178
13459
  command: "list",
13179
13460
  describe: "List of redirects",
13180
13461
  aliases: ["ls"],
13181
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
13462
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
13182
13463
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
13183
13464
  const fetch2 = nodeFetchProxy(proxy);
13184
13465
  const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -13206,9 +13487,9 @@ function createRedirectDefinitionEngineDataSource({
13206
13487
  const redirects = client.getAllRedirects();
13207
13488
  for await (const redirect of redirects) {
13208
13489
  const result = {
13209
- id: selectIdentifier16(redirect.redirect),
13210
- displayName: selectDisplayName16(redirect.redirect),
13211
- providerId: selectIdentifier16(redirect.redirect),
13490
+ id: selectIdentifier17(redirect.redirect),
13491
+ displayName: selectDisplayName17(redirect.redirect),
13492
+ providerId: selectIdentifier17(redirect.redirect),
13212
13493
  object: redirect.redirect
13213
13494
  };
13214
13495
  yield result;
@@ -13230,12 +13511,12 @@ function createRedirectDefinitionEngineDataSource({
13230
13511
  var RedirectDefinitionPullModule = {
13231
13512
  command: "pull <directory>",
13232
13513
  describe: "Pulls all redirects to local files in a directory",
13233
- builder: (yargs44) => withConfiguration(
13514
+ builder: (yargs45) => withConfiguration(
13234
13515
  withDebugOptions(
13235
13516
  withApiOptions(
13236
13517
  withProjectOptions(
13237
13518
  withDiffOptions(
13238
- yargs44.positional("directory", {
13519
+ yargs45.positional("directory", {
13239
13520
  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.",
13240
13521
  type: "string"
13241
13522
  }).option("format", {
@@ -13279,8 +13560,8 @@ var RedirectDefinitionPullModule = {
13279
13560
  target = await createArraySyncEngineDataSource({
13280
13561
  name: `Package file ${directory}`,
13281
13562
  objects: packageContents.redirects ?? [],
13282
- selectIdentifier: selectIdentifier16,
13283
- selectDisplayName: selectDisplayName16,
13563
+ selectIdentifier: selectIdentifier17,
13564
+ selectDisplayName: selectDisplayName17,
13284
13565
  onSyncComplete: async (_, synced) => {
13285
13566
  packageContents.redirects = synced;
13286
13567
  writeContextPackage3(directory, packageContents);
@@ -13290,8 +13571,8 @@ var RedirectDefinitionPullModule = {
13290
13571
  target = await createFileSyncEngineDataSource({
13291
13572
  directory,
13292
13573
  selectFilename: selectFilename2,
13293
- selectIdentifier: selectIdentifier16,
13294
- selectDisplayName: selectDisplayName16,
13574
+ selectIdentifier: selectIdentifier17,
13575
+ selectDisplayName: selectDisplayName17,
13295
13576
  format,
13296
13577
  verbose
13297
13578
  });
@@ -13311,12 +13592,12 @@ var RedirectDefinitionPullModule = {
13311
13592
  var RedirectDefinitionPushModule = {
13312
13593
  command: "push <directory>",
13313
13594
  describe: "Pushes all redirects from files in a directory or package to Uniform",
13314
- builder: (yargs44) => withConfiguration(
13595
+ builder: (yargs45) => withConfiguration(
13315
13596
  withDebugOptions(
13316
13597
  withApiOptions(
13317
13598
  withProjectOptions(
13318
13599
  withDiffOptions(
13319
- yargs44.positional("directory", {
13600
+ yargs45.positional("directory", {
13320
13601
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
13321
13602
  type: "string"
13322
13603
  }).option("mode", {
@@ -13352,14 +13633,14 @@ var RedirectDefinitionPushModule = {
13352
13633
  source = await createArraySyncEngineDataSource({
13353
13634
  name: `Package file ${directory}`,
13354
13635
  objects: packageContents.redirects ?? [],
13355
- selectIdentifier: selectIdentifier16,
13356
- selectDisplayName: selectDisplayName16
13636
+ selectIdentifier: selectIdentifier17,
13637
+ selectDisplayName: selectDisplayName17
13357
13638
  });
13358
13639
  } else {
13359
13640
  source = await createFileSyncEngineDataSource({
13360
13641
  directory,
13361
- selectIdentifier: selectIdentifier16,
13362
- selectDisplayName: selectDisplayName16,
13642
+ selectIdentifier: selectIdentifier17,
13643
+ selectDisplayName: selectDisplayName17,
13363
13644
  verbose
13364
13645
  });
13365
13646
  }
@@ -13380,9 +13661,9 @@ var RedirectDefinitionRemoveModule = {
13380
13661
  command: "remove <id>",
13381
13662
  aliases: ["delete", "rm"],
13382
13663
  describe: "Delete a redirect",
13383
- builder: (yargs44) => withConfiguration(
13664
+ builder: (yargs45) => withConfiguration(
13384
13665
  withApiOptions(
13385
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
13666
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
13386
13667
  )
13387
13668
  ),
13388
13669
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -13397,10 +13678,10 @@ var RedirectDefinitionUpdateModule = {
13397
13678
  command: "update <filename>",
13398
13679
  aliases: ["put"],
13399
13680
  describe: "Insert or update a redirect",
13400
- builder: (yargs44) => withConfiguration(
13681
+ builder: (yargs45) => withConfiguration(
13401
13682
  withApiOptions(
13402
13683
  withProjectOptions(
13403
- yargs44.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13684
+ yargs45.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13404
13685
  )
13405
13686
  )
13406
13687
  ),
@@ -13416,9 +13697,9 @@ var RedirectDefinitionUpdateModule = {
13416
13697
  var RedirectDefinitionModule = {
13417
13698
  command: "definition <command>",
13418
13699
  describe: "Commands for Redirect Definitions",
13419
- builder: (yargs44) => yargs44.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13700
+ builder: (yargs45) => yargs45.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13420
13701
  handler: () => {
13421
- yargs39.help();
13702
+ yargs40.help();
13422
13703
  }
13423
13704
  };
13424
13705
 
@@ -13427,22 +13708,22 @@ var RedirectCommand = {
13427
13708
  command: "redirect <command>",
13428
13709
  aliases: ["red"],
13429
13710
  describe: "Uniform Redirect commands",
13430
- builder: (yargs44) => yargs44.command(RedirectDefinitionModule).demandCommand(),
13711
+ builder: (yargs45) => yargs45.command(RedirectDefinitionModule).demandCommand(),
13431
13712
  handler: () => {
13432
- yargs40.showHelp();
13713
+ yargs41.showHelp();
13433
13714
  }
13434
13715
  };
13435
13716
 
13436
13717
  // src/commands/sync/index.ts
13437
- import yargs41 from "yargs";
13718
+ import yargs42 from "yargs";
13438
13719
 
13439
13720
  // src/webhooksClient.ts
13440
- import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
13721
+ import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
13441
13722
  import PQueue4 from "p-queue";
13442
13723
  import { Svix } from "svix";
13443
13724
  import * as z4 from "zod";
13444
13725
  var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
13445
- var WebhooksClient = class extends ApiClient4 {
13726
+ var WebhooksClient = class extends ApiClient5 {
13446
13727
  constructor(options) {
13447
13728
  super(options);
13448
13729
  }
@@ -13568,8 +13849,8 @@ var WebhooksClient = class extends ApiClient4 {
13568
13849
  };
13569
13850
 
13570
13851
  // src/commands/webhook/commands/_util.ts
13571
- var selectIdentifier17 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13572
- var selectDisplayName17 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13852
+ var selectIdentifier18 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13853
+ var selectDisplayName18 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13573
13854
  var getWebhooksClient = (options) => new WebhooksClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
13574
13855
  var compareWebhooks = (source, target) => {
13575
13856
  const { endpoint: sourceEndpoint, ...sourceWithoutEndpoint } = source.object;
@@ -13604,8 +13885,8 @@ function createWebhookEngineDataSource({
13604
13885
  const webhooks = await client.get();
13605
13886
  for await (const webhook of webhooks) {
13606
13887
  const result = {
13607
- id: selectIdentifier17(webhook),
13608
- displayName: selectDisplayName17(webhook),
13888
+ id: selectIdentifier18(webhook),
13889
+ displayName: selectDisplayName18(webhook),
13609
13890
  providerId: webhook.endpoint.id,
13610
13891
  object: webhook
13611
13892
  };
@@ -13628,12 +13909,12 @@ function createWebhookEngineDataSource({
13628
13909
  var WebhookPullModule = {
13629
13910
  command: "pull <directory>",
13630
13911
  describe: "Pulls all webhooks to local files in a directory",
13631
- builder: (yargs44) => withConfiguration(
13912
+ builder: (yargs45) => withConfiguration(
13632
13913
  withApiOptions(
13633
13914
  withDebugOptions(
13634
13915
  withProjectOptions(
13635
13916
  withDiffOptions(
13636
- yargs44.positional("directory", {
13917
+ yargs45.positional("directory", {
13637
13918
  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.",
13638
13919
  type: "string"
13639
13920
  }).option("format", {
@@ -13677,8 +13958,8 @@ var WebhookPullModule = {
13677
13958
  target = await createArraySyncEngineDataSource({
13678
13959
  name: `Package file ${directory}`,
13679
13960
  objects: packageContents.webhooks ?? [],
13680
- selectIdentifier: selectIdentifier17,
13681
- selectDisplayName: selectDisplayName17,
13961
+ selectIdentifier: selectIdentifier18,
13962
+ selectDisplayName: selectDisplayName18,
13682
13963
  onSyncComplete: async (_, synced) => {
13683
13964
  packageContents.webhooks = synced;
13684
13965
  writeCanvasPackage(directory, packageContents);
@@ -13687,8 +13968,8 @@ var WebhookPullModule = {
13687
13968
  } else {
13688
13969
  target = await createFileSyncEngineDataSource({
13689
13970
  directory,
13690
- selectIdentifier: selectIdentifier17,
13691
- selectDisplayName: selectDisplayName17,
13971
+ selectIdentifier: selectIdentifier18,
13972
+ selectDisplayName: selectDisplayName18,
13692
13973
  format,
13693
13974
  verbose
13694
13975
  });
@@ -13820,7 +14101,7 @@ function numPad(num, spaces = 6) {
13820
14101
  var SyncPullModule = {
13821
14102
  command: "pull",
13822
14103
  describe: "Pulls whole project to local files in a directory",
13823
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs44))))),
14104
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs45))))),
13824
14105
  handler: async ({ serialization, ...otherParams }) => {
13825
14106
  const config2 = serialization;
13826
14107
  const enabledEntities = Object.entries({
@@ -13846,6 +14127,7 @@ var SyncPullModule = {
13846
14127
  entry: EntryPullModule,
13847
14128
  entryPattern: EntryPatternPullModule,
13848
14129
  contentType: ContentTypePullModule,
14130
+ customView: CustomViewPullModule,
13849
14131
  previewUrl: PreviewUrlPullModule,
13850
14132
  previewViewport: PreviewViewportPullModule,
13851
14133
  policyDocument: PolicyDocumentsPullModule,
@@ -13921,12 +14203,12 @@ var getFormat = (entityType, config2) => {
13921
14203
  var WebhookPushModule = {
13922
14204
  command: "push <directory>",
13923
14205
  describe: "Pushes all webhooks from files in a directory to Uniform",
13924
- builder: (yargs44) => withConfiguration(
14206
+ builder: (yargs45) => withConfiguration(
13925
14207
  withDebugOptions(
13926
14208
  withApiOptions(
13927
14209
  withProjectOptions(
13928
14210
  withDiffOptions(
13929
- yargs44.positional("directory", {
14211
+ yargs45.positional("directory", {
13930
14212
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
13931
14213
  type: "string"
13932
14214
  }).option("mode", {
@@ -13962,14 +14244,14 @@ var WebhookPushModule = {
13962
14244
  source = await createArraySyncEngineDataSource({
13963
14245
  name: `Package file ${directory}`,
13964
14246
  objects: packageContents.webhooks ?? [],
13965
- selectIdentifier: selectIdentifier17,
13966
- selectDisplayName: selectDisplayName17
14247
+ selectIdentifier: selectIdentifier18,
14248
+ selectDisplayName: selectDisplayName18
13967
14249
  });
13968
14250
  } else {
13969
14251
  source = await createFileSyncEngineDataSource({
13970
14252
  directory,
13971
- selectIdentifier: selectIdentifier17,
13972
- selectDisplayName: selectDisplayName17,
14253
+ selectIdentifier: selectIdentifier18,
14254
+ selectDisplayName: selectDisplayName18,
13973
14255
  verbose
13974
14256
  });
13975
14257
  }
@@ -13990,7 +14272,7 @@ var WebhookPushModule = {
13990
14272
  var SyncPushModule = {
13991
14273
  command: "push",
13992
14274
  describe: "Pushes whole project data from files in a directory or package to Uniform",
13993
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs44))))),
14275
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs45))))),
13994
14276
  handler: async ({ serialization, ...otherParams }) => {
13995
14277
  const config2 = serialization;
13996
14278
  const enabledEntities = Object.entries({
@@ -14014,6 +14296,7 @@ var SyncPushModule = {
14014
14296
  projectMapNode: ProjectMapNodePushModule,
14015
14297
  redirect: RedirectDefinitionPushModule,
14016
14298
  contentType: ContentTypePushModule,
14299
+ customView: CustomViewPushModule,
14017
14300
  entry: EntryPushModule,
14018
14301
  entryPattern: EntryPatternPushModule,
14019
14302
  previewUrl: PreviewUrlPushModule,
@@ -14167,21 +14450,21 @@ var getFormat2 = (entityType, config2) => {
14167
14450
  var SyncCommand = {
14168
14451
  command: "sync <command>",
14169
14452
  describe: "Uniform Sync commands",
14170
- builder: (yargs44) => yargs44.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14453
+ builder: (yargs45) => yargs45.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14171
14454
  handler: () => {
14172
- yargs41.showHelp();
14455
+ yargs42.showHelp();
14173
14456
  }
14174
14457
  };
14175
14458
 
14176
14459
  // src/commands/webhook/index.ts
14177
- import yargs42 from "yargs";
14460
+ import yargs43 from "yargs";
14178
14461
  var WebhookCommand = {
14179
14462
  command: "webhook <command>",
14180
14463
  aliases: ["wh"],
14181
14464
  describe: "Commands for webhooks",
14182
- builder: (yargs44) => yargs44.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14465
+ builder: (yargs45) => yargs45.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14183
14466
  handler: () => {
14184
- yargs42.help();
14467
+ yargs43.help();
14185
14468
  }
14186
14469
  };
14187
14470
 
@@ -14190,8 +14473,8 @@ import { ProjectClient as ProjectClient2 } from "@uniformdev/canvas";
14190
14473
  var WhoamiCommand = {
14191
14474
  command: "whoami",
14192
14475
  describe: "Prints configured identity and connection context.",
14193
- builder: (yargs44) => withConfiguration(
14194
- withFormatOptions(withApiOptions(yargs44, { includeEdgeApiHost: true })).option("project", {
14476
+ builder: (yargs45) => withConfiguration(
14477
+ withFormatOptions(withApiOptions(yargs45, { includeEdgeApiHost: true })).option("project", {
14195
14478
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
14196
14479
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? process.env.UNIFORM_PROJECT_ID,
14197
14480
  type: "string",
@@ -14458,7 +14741,7 @@ First found was: v${firstVersion}`;
14458
14741
 
14459
14742
  // src/index.ts
14460
14743
  dotenv.config({ quiet: true });
14461
- var yarggery = yargs43(hideBin(process.argv));
14744
+ var yarggery = yargs44(hideBin(process.argv));
14462
14745
  var useDefaultConfig = !process.argv.includes("--config");
14463
14746
  var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
14464
14747
  yarggery.option("verbose", {