@uniformdev/cli 20.78.0 → 20.78.1-alpha.20.sha-fc102eb30c

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