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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -25,11 +25,11 @@ import {
25
25
  withFormatOptions,
26
26
  withProjectOptions,
27
27
  withTeamOptions
28
- } from "./chunk-ACIL44HT.mjs";
28
+ } from "./chunk-ICATM6IY.mjs";
29
29
 
30
30
  // src/index.ts
31
31
  import * as dotenv from "dotenv";
32
- import yargs43 from "yargs";
32
+ import yargs44 from "yargs";
33
33
  import { hideBin } from "yargs/helpers";
34
34
 
35
35
  // src/commands/ai/index.ts
@@ -521,20 +521,20 @@ var makeSpinner = () => {
521
521
  async function createArraySyncEngineDataSource({
522
522
  name,
523
523
  objects,
524
- selectIdentifier: selectIdentifier18,
525
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
524
+ selectIdentifier: selectIdentifier19,
525
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
526
526
  onSyncComplete,
527
527
  onBeforeDeleteObject
528
528
  }) {
529
529
  const objectIndex = objects.reduce(
530
530
  (result, current) => {
531
- const rawIdentifiers = selectIdentifier18(current);
531
+ const rawIdentifiers = selectIdentifier19(current);
532
532
  const identifiers = Array.isArray(rawIdentifiers) ? rawIdentifiers : [rawIdentifiers];
533
533
  const existingResult = identifiers.find((id) => result[id]);
534
534
  if (existingResult) {
535
535
  throw new Error(`Identifier(s) ${identifiers} was not unique.`);
536
536
  }
537
- const displayName = selectDisplayName18(current);
537
+ const displayName = selectDisplayName19(current);
538
538
  result[identifiers[0]] = {
539
539
  id: identifiers,
540
540
  object: current,
@@ -564,7 +564,7 @@ async function createArraySyncEngineDataSource({
564
564
  delete objectIndex[providerId];
565
565
  },
566
566
  writeObject: async (objectToWrite) => {
567
- const id = selectIdentifier18(objectToWrite.object);
567
+ const id = selectIdentifier19(objectToWrite.object);
568
568
  if (Array.isArray(id)) {
569
569
  objectIndex[id[0]] = objectToWrite;
570
570
  } else {
@@ -647,8 +647,8 @@ function isErrorWithCode(error, code) {
647
647
  async function createFileSyncEngineDataSource({
648
648
  directory,
649
649
  format = "yaml",
650
- selectIdentifier: selectIdentifier18,
651
- selectDisplayName: selectDisplayName18 = selectIdentifier18,
650
+ selectIdentifier: selectIdentifier19,
651
+ selectDisplayName: selectDisplayName19 = selectIdentifier19,
652
652
  selectFilename: selectFilename3,
653
653
  selectSchemaUrl: selectSchemaUrl2,
654
654
  onBeforeDeleteObject,
@@ -677,9 +677,9 @@ async function createFileSyncEngineDataSource({
677
677
  const fullFilename = join(directory, filename);
678
678
  try {
679
679
  const contents = readFileToObject(fullFilename);
680
- const displayName = selectDisplayName18(contents);
680
+ const displayName = selectDisplayName19(contents);
681
681
  const object4 = {
682
- id: selectIdentifier18(contents),
682
+ id: selectIdentifier19(contents),
683
683
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
684
684
  providerId: fullFilename,
685
685
  object: omit(contents, ["$schema"])
@@ -1241,13 +1241,13 @@ async function fetchUserAndEnsureFirstTeamExists({
1241
1241
  }
1242
1242
 
1243
1243
  // src/telemetry/telemetry.ts
1244
- import crypto from "crypto";
1244
+ import crypto2 from "crypto";
1245
1245
  import { PostHog } from "posthog-node";
1246
1246
  var POSTHOG_WRITE_ONLY_KEY = "phc_c8YoKI9984KOHBfNrCRfIKvL56aYd5OpYxOdYexRzH7";
1247
1247
  var Telemetry = class {
1248
1248
  constructor(prefix, disable = false) {
1249
1249
  this.prefix = prefix;
1250
- this.distinctId = crypto.randomBytes(20).toString("hex");
1250
+ this.distinctId = crypto2.randomBytes(20).toString("hex");
1251
1251
  if (!disable) {
1252
1252
  this.posthog = new PostHog(POSTHOG_WRITE_ONLY_KEY, {
1253
1253
  flushAt: 1,
@@ -1438,8 +1438,8 @@ function getExistingServers(config2) {
1438
1438
  var InstallMcpCommand = {
1439
1439
  command: "install",
1440
1440
  describe: "Install Uniform MCP server configuration (use --team, --project, and --apiKey for non-interactive mode)",
1441
- builder: (yargs44) => withConfiguration(
1442
- yargs44.option("agent", {
1441
+ builder: (yargs45) => withConfiguration(
1442
+ yargs45.option("agent", {
1443
1443
  alias: "a",
1444
1444
  describe: "Specify agent type (cursor, claude, copilot, other)",
1445
1445
  type: "string",
@@ -1639,7 +1639,7 @@ Selected agent: ${agentType}`));
1639
1639
  var McpCommand = {
1640
1640
  command: "mcp <command>",
1641
1641
  describe: "Uniform MCP server management commands",
1642
- builder: (yargs44) => yargs44.command(InstallMcpCommand).demandCommand(),
1642
+ builder: (yargs45) => yargs45.command(InstallMcpCommand).demandCommand(),
1643
1643
  handler: () => {
1644
1644
  yargs.showHelp();
1645
1645
  }
@@ -2114,8 +2114,8 @@ ${gray2("Rules source:")} https://github.com/uniformdev/ai-rules`);
2114
2114
  var InstallRulesCommand = {
2115
2115
  command: "install",
2116
2116
  describe: "Install Uniform AI rules for your development assistant",
2117
- builder: (yargs44) => withConfiguration(
2118
- yargs44.option("agent", {
2117
+ builder: (yargs45) => withConfiguration(
2118
+ yargs45.option("agent", {
2119
2119
  alias: "a",
2120
2120
  describe: "Specify agent type (cursor, claude, copilot, other)",
2121
2121
  type: "string",
@@ -2153,7 +2153,7 @@ import { blue as blue4, bold as bold2, gray as gray3, green as green5, red as re
2153
2153
  var ListRulesCommand = {
2154
2154
  command: "list",
2155
2155
  describe: "List available Uniform AI rules",
2156
- builder: (yargs44) => withConfiguration(yargs44),
2156
+ builder: (yargs45) => withConfiguration(yargs45),
2157
2157
  handler: async function() {
2158
2158
  const { stopAllSpinners, spin } = makeSpinner();
2159
2159
  try {
@@ -2182,7 +2182,7 @@ var ListRulesCommand = {
2182
2182
  var RulesCommand = {
2183
2183
  command: "rules <command>",
2184
2184
  describe: "Uniform AI rules management commands",
2185
- builder: (yargs44) => yargs44.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2185
+ builder: (yargs45) => yargs45.command(InstallRulesCommand).command(ListRulesCommand).demandCommand(),
2186
2186
  handler: () => {
2187
2187
  yargs2.showHelp();
2188
2188
  }
@@ -2192,7 +2192,7 @@ var RulesCommand = {
2192
2192
  var AiCommand = {
2193
2193
  command: "ai <command>",
2194
2194
  describe: "Uniform AI development assistant commands",
2195
- builder: (yargs44) => yargs44.command(RulesCommand).command(McpCommand).demandCommand(),
2195
+ builder: (yargs45) => yargs45.command(RulesCommand).command(McpCommand).demandCommand(),
2196
2196
  handler: () => {
2197
2197
  yargs3.showHelp();
2198
2198
  }
@@ -2277,10 +2277,10 @@ function resolveDeleteTargets(identifiers) {
2277
2277
  var AutomationDeleteModule = {
2278
2278
  command: "delete <identifiers..>",
2279
2279
  describe: "Deletes one or more automations from a project.",
2280
- builder: (yargs44) => withConfiguration(
2280
+ builder: (yargs45) => withConfiguration(
2281
2281
  withApiOptions(
2282
2282
  withProjectOptions(
2283
- yargs44.positional("identifiers", {
2283
+ yargs45.positional("identifiers", {
2284
2284
  array: true,
2285
2285
  type: "string",
2286
2286
  demandOption: true,
@@ -2504,10 +2504,10 @@ function assertUniquePublicIds(files) {
2504
2504
  var AutomationDeployModule = {
2505
2505
  command: "deploy <paths..>",
2506
2506
  describe: "Deploys one or more automations to a project.",
2507
- builder: (yargs44) => withConfiguration(
2507
+ builder: (yargs45) => withConfiguration(
2508
2508
  withApiOptions(
2509
2509
  withProjectOptions(
2510
- yargs44.positional("paths", {
2510
+ yargs45.positional("paths", {
2511
2511
  array: true,
2512
2512
  type: "string",
2513
2513
  demandOption: true,
@@ -2575,7 +2575,7 @@ var AutomationListModule = {
2575
2575
  command: "list",
2576
2576
  aliases: ["ls"],
2577
2577
  describe: "Lists the automations in a project.",
2578
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
2578
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
2579
2579
  handler: async ({ apiHost, apiKey, proxy, project: projectId }) => {
2580
2580
  const fetch2 = nodeFetchProxy(proxy);
2581
2581
  const client = new AutomationsClient3({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -2606,14 +2606,14 @@ var AutomationCommand = {
2606
2606
  command: "automation <command>",
2607
2607
  aliases: ["automations"],
2608
2608
  describe: "Commands for managing Uniform Automations",
2609
- builder: (yargs44) => yargs44.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2609
+ builder: (yargs45) => yargs45.command(AutomationDeployModule).command(AutomationDeleteModule).command(AutomationListModule).demandCommand(),
2610
2610
  handler: () => {
2611
2611
  yargs4.showHelp();
2612
2612
  }
2613
2613
  };
2614
2614
 
2615
2615
  // src/commands/canvas/index.ts
2616
- import yargs22 from "yargs";
2616
+ import yargs23 from "yargs";
2617
2617
 
2618
2618
  // src/commands/canvas/commands/asset.ts
2619
2619
  import yargs5 from "yargs";
@@ -2634,12 +2634,12 @@ function getFileClient(options) {
2634
2634
  var AssetGetModule = {
2635
2635
  command: "get <id>",
2636
2636
  describe: "Get an asset",
2637
- builder: (yargs44) => withConfiguration(
2637
+ builder: (yargs45) => withConfiguration(
2638
2638
  withDebugOptions(
2639
2639
  withFormatOptions(
2640
2640
  withApiOptions(
2641
2641
  withProjectOptions(
2642
- yargs44.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2642
+ yargs45.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
2643
2643
  )
2644
2644
  )
2645
2645
  )
@@ -2660,7 +2660,7 @@ var AssetGetModule = {
2660
2660
  var AssetListModule = {
2661
2661
  command: "list",
2662
2662
  describe: "List assets",
2663
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
2663
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
2664
2664
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
2665
2665
  const fetch2 = nodeFetchProxy(proxy, verbose);
2666
2666
  const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -3337,8 +3337,8 @@ function prepCompositionForDisk(composition) {
3337
3337
  delete prepped.state;
3338
3338
  return prepped;
3339
3339
  }
3340
- function withStateOptions(yargs44, defaultState = "preview") {
3341
- return yargs44.option("state", {
3340
+ function withStateOptions(yargs45, defaultState = "preview") {
3341
+ return yargs45.option("state", {
3342
3342
  type: "string",
3343
3343
  describe: `State to fetch.`,
3344
3344
  choices: ["preview", "published"],
@@ -3436,13 +3436,13 @@ var prepareAssetForPull = async ({
3436
3436
  var AssetPullModule = {
3437
3437
  command: "pull <directory>",
3438
3438
  describe: "Pulls all assets to local files in a directory",
3439
- builder: (yargs44) => withConfiguration(
3439
+ builder: (yargs45) => withConfiguration(
3440
3440
  withApiOptions(
3441
3441
  withDebugOptions(
3442
3442
  withProjectOptions(
3443
3443
  withDiffOptions(
3444
3444
  withBatchSizeOptions(
3445
- yargs44.positional("directory", {
3445
+ yargs45.positional("directory", {
3446
3446
  describe: "Directory to save the assets to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3447
3447
  type: "string"
3448
3448
  }).option("format", {
@@ -3606,13 +3606,13 @@ var prepareAssetForPush = async ({
3606
3606
  var AssetPushModule = {
3607
3607
  command: "push <directory>",
3608
3608
  describe: "Pushes all assets from files in a directory to Uniform",
3609
- builder: (yargs44) => withConfiguration(
3609
+ builder: (yargs45) => withConfiguration(
3610
3610
  withApiOptions(
3611
3611
  withDebugOptions(
3612
3612
  withProjectOptions(
3613
3613
  withDiffOptions(
3614
3614
  withBatchSizeOptions(
3615
- yargs44.positional("directory", {
3615
+ yargs45.positional("directory", {
3616
3616
  describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
3617
3617
  type: "string"
3618
3618
  }).option("mode", {
@@ -3729,10 +3729,10 @@ var AssetRemoveModule = {
3729
3729
  command: "remove <id>",
3730
3730
  aliases: ["delete", "rm"],
3731
3731
  describe: "Delete an asset",
3732
- builder: (yargs44) => withConfiguration(
3732
+ builder: (yargs45) => withConfiguration(
3733
3733
  withDebugOptions(
3734
3734
  withApiOptions(
3735
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3735
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
3736
3736
  )
3737
3737
  )
3738
3738
  ),
@@ -3753,11 +3753,11 @@ var AssetUpdateModule = {
3753
3753
  command: "update <filename>",
3754
3754
  aliases: ["put"],
3755
3755
  describe: "Insert or update an asset",
3756
- builder: (yargs44) => withConfiguration(
3756
+ builder: (yargs45) => withConfiguration(
3757
3757
  withDebugOptions(
3758
3758
  withApiOptions(
3759
3759
  withProjectOptions(
3760
- yargs44.positional("filename", { demandOption: true, describe: "Asset file to put" })
3760
+ yargs45.positional("filename", { demandOption: true, describe: "Asset file to put" })
3761
3761
  )
3762
3762
  )
3763
3763
  )
@@ -3783,7 +3783,7 @@ var AssetUpdateModule = {
3783
3783
  var AssetModule = {
3784
3784
  command: "asset <command>",
3785
3785
  describe: "Commands for Assets",
3786
- builder: (yargs44) => yargs44.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3786
+ builder: (yargs45) => yargs45.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
3787
3787
  handler: () => {
3788
3788
  yargs5.help();
3789
3789
  }
@@ -3804,12 +3804,12 @@ function getCategoryClient(options) {
3804
3804
  var CategoryGetModule = {
3805
3805
  command: "get <id>",
3806
3806
  describe: "Fetch a category",
3807
- builder: (yargs44) => withConfiguration(
3807
+ builder: (yargs45) => withConfiguration(
3808
3808
  withFormatOptions(
3809
3809
  withDebugOptions(
3810
3810
  withApiOptions(
3811
3811
  withProjectOptions(
3812
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3812
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
3813
3813
  )
3814
3814
  )
3815
3815
  )
@@ -3834,8 +3834,8 @@ var CategoryListModule = {
3834
3834
  command: "list",
3835
3835
  describe: "List categories",
3836
3836
  aliases: ["ls"],
3837
- builder: (yargs44) => withConfiguration(
3838
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
3837
+ builder: (yargs45) => withConfiguration(
3838
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
3839
3839
  ),
3840
3840
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
3841
3841
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3877,12 +3877,12 @@ function createCategoriesEngineDataSource({
3877
3877
  var CategoryPullModule = {
3878
3878
  command: "pull <directory>",
3879
3879
  describe: "Pulls all categories to local files in a directory",
3880
- builder: (yargs44) => withConfiguration(
3880
+ builder: (yargs45) => withConfiguration(
3881
3881
  withApiOptions(
3882
3882
  withProjectOptions(
3883
3883
  withDiffOptions(
3884
3884
  withDebugOptions(
3885
- yargs44.positional("directory", {
3885
+ yargs45.positional("directory", {
3886
3886
  describe: "Directory to save the categories to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
3887
3887
  type: "string"
3888
3888
  }).option("format", {
@@ -3957,12 +3957,12 @@ var CategoryPullModule = {
3957
3957
  var CategoryPushModule = {
3958
3958
  command: "push <directory>",
3959
3959
  describe: "Pushes all categories from files in a directory to Uniform Canvas",
3960
- builder: (yargs44) => withConfiguration(
3960
+ builder: (yargs45) => withConfiguration(
3961
3961
  withApiOptions(
3962
3962
  withDebugOptions(
3963
3963
  withProjectOptions(
3964
3964
  withDiffOptions(
3965
- yargs44.positional("directory", {
3965
+ yargs45.positional("directory", {
3966
3966
  describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
3967
3967
  type: "string"
3968
3968
  }).option("mode", {
@@ -4026,11 +4026,11 @@ var CategoryRemoveModule = {
4026
4026
  command: "remove <id>",
4027
4027
  aliases: ["delete", "rm"],
4028
4028
  describe: "Delete a category",
4029
- builder: (yargs44) => withConfiguration(
4029
+ builder: (yargs45) => withConfiguration(
4030
4030
  withApiOptions(
4031
4031
  withDebugOptions(
4032
4032
  withProjectOptions(
4033
- yargs44.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4033
+ yargs45.positional("id", { demandOption: true, describe: "Category UUID to delete" })
4034
4034
  )
4035
4035
  )
4036
4036
  )
@@ -4051,11 +4051,11 @@ var CategoryUpdateModule = {
4051
4051
  command: "update <filename>",
4052
4052
  aliases: ["put"],
4053
4053
  describe: "Insert or update a category",
4054
- builder: (yargs44) => withConfiguration(
4054
+ builder: (yargs45) => withConfiguration(
4055
4055
  withApiOptions(
4056
4056
  withDebugOptions(
4057
4057
  withProjectOptions(
4058
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
4058
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
4059
4059
  )
4060
4060
  )
4061
4061
  )
@@ -4077,7 +4077,7 @@ var CategoryModule = {
4077
4077
  command: "category <command>",
4078
4078
  aliases: ["cat"],
4079
4079
  describe: "Commands for Canvas categories",
4080
- builder: (yargs44) => yargs44.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4080
+ builder: (yargs45) => yargs45.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
4081
4081
  handler: () => {
4082
4082
  yargs6.help();
4083
4083
  }
@@ -4109,12 +4109,12 @@ function getCompositionDeliveryClient(options) {
4109
4109
  var ComponentGetModule = {
4110
4110
  command: "get <id>",
4111
4111
  describe: "Fetch a component definition",
4112
- builder: (yargs44) => withConfiguration(
4112
+ builder: (yargs45) => withConfiguration(
4113
4113
  withFormatOptions(
4114
4114
  withDebugOptions(
4115
4115
  withApiOptions(
4116
4116
  withProjectOptions(
4117
- yargs44.positional("id", {
4117
+ yargs45.positional("id", {
4118
4118
  demandOption: true,
4119
4119
  describe: "Component definition public ID to fetch"
4120
4120
  })
@@ -4148,12 +4148,12 @@ var ComponentListModule = {
4148
4148
  command: "list",
4149
4149
  describe: "List component definitions",
4150
4150
  aliases: ["ls"],
4151
- builder: (yargs44) => withConfiguration(
4151
+ builder: (yargs45) => withConfiguration(
4152
4152
  withFormatOptions(
4153
4153
  withDebugOptions(
4154
4154
  withApiOptions(
4155
4155
  withProjectOptions(
4156
- yargs44.options({
4156
+ yargs45.options({
4157
4157
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4158
4158
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
4159
4159
  })
@@ -4224,13 +4224,13 @@ function createComponentDefinitionEngineDataSource({
4224
4224
  var ComponentPullModule = {
4225
4225
  command: "pull <directory>",
4226
4226
  describe: "Pulls all component definitions to local files in a directory",
4227
- builder: (yargs44) => withConfiguration(
4227
+ builder: (yargs45) => withConfiguration(
4228
4228
  withApiOptions(
4229
4229
  withDebugOptions(
4230
4230
  withProjectOptions(
4231
4231
  withDiffOptions(
4232
4232
  withBatchSizeOptions(
4233
- yargs44.positional("directory", {
4233
+ yargs45.positional("directory", {
4234
4234
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
4235
4235
  type: "string"
4236
4236
  }).option("format", {
@@ -4313,13 +4313,13 @@ var ComponentPullModule = {
4313
4313
  var ComponentPushModule = {
4314
4314
  command: "push <directory>",
4315
4315
  describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
4316
- builder: (yargs44) => withConfiguration(
4316
+ builder: (yargs45) => withConfiguration(
4317
4317
  withApiOptions(
4318
4318
  withDebugOptions(
4319
4319
  withProjectOptions(
4320
4320
  withDiffOptions(
4321
4321
  withBatchSizeOptions(
4322
- yargs44.positional("directory", {
4322
+ yargs45.positional("directory", {
4323
4323
  describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
4324
4324
  type: "string"
4325
4325
  }).option("mode", {
@@ -4391,11 +4391,11 @@ var ComponentRemoveModule = {
4391
4391
  command: "remove <id>",
4392
4392
  aliases: ["delete", "rm"],
4393
4393
  describe: "Delete a component definition",
4394
- builder: (yargs44) => withConfiguration(
4394
+ builder: (yargs45) => withConfiguration(
4395
4395
  withDebugOptions(
4396
4396
  withApiOptions(
4397
4397
  withProjectOptions(
4398
- yargs44.positional("id", {
4398
+ yargs45.positional("id", {
4399
4399
  demandOption: true,
4400
4400
  describe: "Component definition public ID to delete"
4401
4401
  })
@@ -4419,11 +4419,11 @@ var ComponentUpdateModule = {
4419
4419
  command: "update <filename>",
4420
4420
  aliases: ["put"],
4421
4421
  describe: "Insert or update a component definition",
4422
- builder: (yargs44) => withConfiguration(
4422
+ builder: (yargs45) => withConfiguration(
4423
4423
  withApiOptions(
4424
4424
  withDebugOptions(
4425
4425
  withProjectOptions(
4426
- yargs44.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4426
+ yargs45.positional("filename", { demandOption: true, describe: "Component definition file to put" })
4427
4427
  )
4428
4428
  )
4429
4429
  )
@@ -4445,7 +4445,7 @@ var ComponentModule = {
4445
4445
  command: "component <command>",
4446
4446
  aliases: ["def"],
4447
4447
  describe: "Commands for Canvas component definitions",
4448
- builder: (yargs44) => yargs44.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4448
+ builder: (yargs45) => yargs45.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
4449
4449
  handler: () => {
4450
4450
  yargs7.help();
4451
4451
  }
@@ -4608,13 +4608,13 @@ function createCompositionGetHandler(expectedType) {
4608
4608
  var CompositionGetModule = {
4609
4609
  command: "get <id>",
4610
4610
  describe: "Fetch a composition",
4611
- builder: (yargs44) => withFormatOptions(
4611
+ builder: (yargs45) => withFormatOptions(
4612
4612
  withConfiguration(
4613
4613
  withApiOptions(
4614
4614
  withProjectOptions(
4615
4615
  withStateOptions(
4616
4616
  withDebugOptions(
4617
- yargs44.positional("id", {
4617
+ yargs45.positional("id", {
4618
4618
  demandOption: true,
4619
4619
  describe: "Composition public ID to fetch"
4620
4620
  }).option({
@@ -4666,13 +4666,13 @@ var CompositionListModule = {
4666
4666
  command: "list",
4667
4667
  describe: "List compositions",
4668
4668
  aliases: ["ls"],
4669
- builder: (yargs44) => withFormatOptions(
4669
+ builder: (yargs45) => withFormatOptions(
4670
4670
  withConfiguration(
4671
4671
  withApiOptions(
4672
4672
  withProjectOptions(
4673
4673
  withDebugOptions(
4674
4674
  withStateOptions(
4675
- yargs44.options({
4675
+ yargs45.options({
4676
4676
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4677
4677
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4678
4678
  search: { describe: "Search query", type: "string", default: "" },
@@ -4746,13 +4746,13 @@ var CompositionListModule = {
4746
4746
  var ComponentPatternListModule = {
4747
4747
  ...CompositionListModule,
4748
4748
  describe: "List component patterns",
4749
- builder: (yargs44) => withFormatOptions(
4749
+ builder: (yargs45) => withFormatOptions(
4750
4750
  withConfiguration(
4751
4751
  withApiOptions(
4752
4752
  withDebugOptions(
4753
4753
  withProjectOptions(
4754
4754
  withStateOptions(
4755
- yargs44.options({
4755
+ yargs45.options({
4756
4756
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
4757
4757
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
4758
4758
  resolvePatterns: {
@@ -4891,13 +4891,13 @@ function createComponentInstanceEngineDataSource({
4891
4891
  var CompositionPublishModule = {
4892
4892
  command: "publish [ids]",
4893
4893
  describe: "Publishes composition(s)",
4894
- builder: (yargs44) => withConfiguration(
4894
+ builder: (yargs45) => withConfiguration(
4895
4895
  withApiOptions(
4896
4896
  withProjectOptions(
4897
4897
  withDebugOptions(
4898
4898
  withDiffOptions(
4899
4899
  withBatchSizeOptions(
4900
- yargs44.positional("ids", {
4900
+ yargs45.positional("ids", {
4901
4901
  describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
4902
4902
  type: "string"
4903
4903
  }).option("all", {
@@ -4989,13 +4989,13 @@ var CompositionPublishModule = {
4989
4989
  var ComponentPatternPublishModule = {
4990
4990
  ...CompositionPublishModule,
4991
4991
  describe: "Publishes component pattern(s)",
4992
- builder: (yargs44) => withConfiguration(
4992
+ builder: (yargs45) => withConfiguration(
4993
4993
  withApiOptions(
4994
4994
  withDebugOptions(
4995
4995
  withProjectOptions(
4996
4996
  withDiffOptions(
4997
4997
  withBatchSizeOptions(
4998
- yargs44.positional("ids", {
4998
+ yargs45.positional("ids", {
4999
4999
  describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5000
5000
  type: "string"
5001
5001
  }).option("all", {
@@ -5037,14 +5037,14 @@ function componentInstancePullModuleFactory(type, entityType) {
5037
5037
  return {
5038
5038
  command: "pull <directory>",
5039
5039
  describe: "Pulls all compositions to local files in a directory",
5040
- builder: (yargs44) => withConfiguration(
5040
+ builder: (yargs45) => withConfiguration(
5041
5041
  withApiOptions(
5042
5042
  withProjectOptions(
5043
5043
  withStateOptions(
5044
5044
  withDebugOptions(
5045
5045
  withDiffOptions(
5046
5046
  withBatchSizeOptions(
5047
- yargs44.positional("directory", {
5047
+ yargs45.positional("directory", {
5048
5048
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5049
5049
  type: "string"
5050
5050
  }).option("format", {
@@ -5163,13 +5163,13 @@ function componentInstancePullModuleFactory(type, entityType) {
5163
5163
  var ComponentPatternPullModule = {
5164
5164
  ...componentInstancePullModuleFactory("componentPatterns", "componentPattern"),
5165
5165
  describe: "Pulls all component patterns to local files in a directory",
5166
- builder: (yargs44) => withConfiguration(
5166
+ builder: (yargs45) => withConfiguration(
5167
5167
  withApiOptions(
5168
5168
  withProjectOptions(
5169
5169
  withDebugOptions(
5170
5170
  withStateOptions(
5171
5171
  withDiffOptions(
5172
- yargs44.positional("directory", {
5172
+ yargs45.positional("directory", {
5173
5173
  describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5174
5174
  type: "string"
5175
5175
  }).option("format", {
@@ -5243,14 +5243,14 @@ function componentInstancePushModuleFactory(type, entityType) {
5243
5243
  return {
5244
5244
  command: "push <directory>",
5245
5245
  describe: "Pushes all compositions from files in a directory to Uniform Canvas",
5246
- builder: (yargs44) => withConfiguration(
5246
+ builder: (yargs45) => withConfiguration(
5247
5247
  withApiOptions(
5248
5248
  withProjectOptions(
5249
5249
  withStateOptions(
5250
5250
  withDebugOptions(
5251
5251
  withDiffOptions(
5252
5252
  withBatchSizeOptions(
5253
- yargs44.positional("directory", {
5253
+ yargs45.positional("directory", {
5254
5254
  describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
5255
5255
  type: "string"
5256
5256
  }).option("mode", {
@@ -5368,13 +5368,13 @@ function componentInstancePushModuleFactory(type, entityType) {
5368
5368
  var ComponentPatternPushModule = {
5369
5369
  ...componentInstancePushModuleFactory("componentPatterns", "componentPattern"),
5370
5370
  describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
5371
- builder: (yargs44) => withConfiguration(
5371
+ builder: (yargs45) => withConfiguration(
5372
5372
  withApiOptions(
5373
5373
  withProjectOptions(
5374
5374
  withStateOptions(
5375
5375
  withDiffOptions(
5376
5376
  withDebugOptions(
5377
- yargs44.positional("directory", {
5377
+ yargs45.positional("directory", {
5378
5378
  describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
5379
5379
  type: "string"
5380
5380
  }).option("mode", {
@@ -5439,11 +5439,11 @@ var CompositionRemoveModule = {
5439
5439
  command: "remove <id>",
5440
5440
  aliases: ["delete", "rm"],
5441
5441
  describe: "Delete a composition",
5442
- builder: (yargs44) => withConfiguration(
5442
+ builder: (yargs45) => withConfiguration(
5443
5443
  withApiOptions(
5444
5444
  withDebugOptions(
5445
5445
  withProjectOptions(
5446
- yargs44.positional("id", {
5446
+ yargs45.positional("id", {
5447
5447
  demandOption: true,
5448
5448
  describe: "Composition public ID to delete"
5449
5449
  })
@@ -5467,12 +5467,12 @@ import { diffJson as diffJson2 } from "diff";
5467
5467
  var CompositionUnpublishModule = {
5468
5468
  command: "unpublish [ids]",
5469
5469
  describe: "Unpublish a composition(s)",
5470
- builder: (yargs44) => withConfiguration(
5470
+ builder: (yargs45) => withConfiguration(
5471
5471
  withApiOptions(
5472
5472
  withDebugOptions(
5473
5473
  withProjectOptions(
5474
5474
  withBatchSizeOptions(
5475
- yargs44.positional("ids", {
5475
+ yargs45.positional("ids", {
5476
5476
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5477
5477
  type: "string"
5478
5478
  }).option("all", {
@@ -5593,11 +5593,11 @@ var CompositionUnpublishModule = {
5593
5593
  var ComponentPatternUnpublishModule = {
5594
5594
  command: "unpublish [ids]",
5595
5595
  describe: "Unpublish a component pattern(s)",
5596
- builder: (yargs44) => withConfiguration(
5596
+ builder: (yargs45) => withConfiguration(
5597
5597
  withApiOptions(
5598
5598
  withDebugOptions(
5599
5599
  withProjectOptions(
5600
- yargs44.positional("ids", {
5600
+ yargs45.positional("ids", {
5601
5601
  describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5602
5602
  type: "string"
5603
5603
  }).option("all", {
@@ -5665,12 +5665,12 @@ var CompositionUpdateModule = {
5665
5665
  command: "update <filename>",
5666
5666
  aliases: ["put"],
5667
5667
  describe: "Insert or update a composition",
5668
- builder: (yargs44) => withConfiguration(
5668
+ builder: (yargs45) => withConfiguration(
5669
5669
  withApiOptions(
5670
5670
  withProjectOptions(
5671
5671
  withDebugOptions(
5672
5672
  withStateOptions(
5673
- yargs44.positional("filename", {
5673
+ yargs45.positional("filename", {
5674
5674
  demandOption: true,
5675
5675
  describe: "Composition/pattern file to put"
5676
5676
  })
@@ -5693,7 +5693,7 @@ var ComponentPatternUpdateModule = {
5693
5693
  var ComponentPatternModule = {
5694
5694
  command: "component-pattern <command>",
5695
5695
  describe: "Commands for Canvas component patterns",
5696
- builder: (yargs44) => yargs44.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5696
+ builder: (yargs45) => yargs45.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
5697
5697
  handler: () => {
5698
5698
  yargs8.help();
5699
5699
  }
@@ -5705,7 +5705,7 @@ var CompositionModule = {
5705
5705
  command: "composition <command>",
5706
5706
  describe: "Commands for Canvas compositions",
5707
5707
  aliases: ["comp"],
5708
- builder: (yargs44) => yargs44.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5708
+ builder: (yargs45) => yargs45.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
5709
5709
  handler: () => {
5710
5710
  yargs9.help();
5711
5711
  }
@@ -5725,13 +5725,13 @@ var CompositionPatternGetModule = {
5725
5725
  var CompositionPatternListModule = {
5726
5726
  ...CompositionListModule,
5727
5727
  describe: "List composition patterns",
5728
- builder: (yargs44) => withFormatOptions(
5728
+ builder: (yargs45) => withFormatOptions(
5729
5729
  withConfiguration(
5730
5730
  withApiOptions(
5731
5731
  withDebugOptions(
5732
5732
  withProjectOptions(
5733
5733
  withStateOptions(
5734
- yargs44.options({
5734
+ yargs45.options({
5735
5735
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
5736
5736
  limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
5737
5737
  resolvePatterns: {
@@ -5769,13 +5769,13 @@ var CompositionPatternListModule = {
5769
5769
  var CompositionPatternPublishModule = {
5770
5770
  ...CompositionPublishModule,
5771
5771
  describe: "Publishes composition pattern(s)",
5772
- builder: (yargs44) => withConfiguration(
5772
+ builder: (yargs45) => withConfiguration(
5773
5773
  withApiOptions(
5774
5774
  withDebugOptions(
5775
5775
  withProjectOptions(
5776
5776
  withDiffOptions(
5777
5777
  withBatchSizeOptions(
5778
- yargs44.positional("ids", {
5778
+ yargs45.positional("ids", {
5779
5779
  describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
5780
5780
  type: "string"
5781
5781
  }).option("all", {
@@ -5816,13 +5816,13 @@ var CompositionPatternPublishModule = {
5816
5816
  var CompositionPatternPullModule = {
5817
5817
  ...componentInstancePullModuleFactory("compositionPatterns", "compositionPattern"),
5818
5818
  describe: "Pulls all composition patterns to local files in a directory",
5819
- builder: (yargs44) => withConfiguration(
5819
+ builder: (yargs45) => withConfiguration(
5820
5820
  withApiOptions(
5821
5821
  withDebugOptions(
5822
5822
  withProjectOptions(
5823
5823
  withStateOptions(
5824
5824
  withDiffOptions(
5825
- yargs44.positional("directory", {
5825
+ yargs45.positional("directory", {
5826
5826
  describe: "Directory to save the composition patterns to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
5827
5827
  type: "string"
5828
5828
  }).option("format", {
@@ -5860,13 +5860,13 @@ var CompositionPatternPullModule = {
5860
5860
  var CompositionPatternPushModule = {
5861
5861
  ...componentInstancePushModuleFactory("compositionPatterns", "compositionPattern"),
5862
5862
  describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
5863
- builder: (yargs44) => withConfiguration(
5863
+ builder: (yargs45) => withConfiguration(
5864
5864
  withApiOptions(
5865
5865
  withDebugOptions(
5866
5866
  withProjectOptions(
5867
5867
  withStateOptions(
5868
5868
  withDiffOptions(
5869
- yargs44.positional("directory", {
5869
+ yargs45.positional("directory", {
5870
5870
  describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
5871
5871
  type: "string"
5872
5872
  }).option("mode", {
@@ -5906,11 +5906,11 @@ var CompositionPatternRemoveModule = {
5906
5906
  var CompositionPatternUnpublishModule = {
5907
5907
  command: "unpublish [ids]",
5908
5908
  describe: "Unpublish a composition pattern(s)",
5909
- builder: (yargs44) => withConfiguration(
5909
+ builder: (yargs45) => withConfiguration(
5910
5910
  withApiOptions(
5911
5911
  withDebugOptions(
5912
5912
  withProjectOptions(
5913
- yargs44.positional("ids", {
5913
+ yargs45.positional("ids", {
5914
5914
  describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
5915
5915
  type: "string"
5916
5916
  }).option("all", {
@@ -5947,7 +5947,7 @@ var CompositionPatternUpdateModule = {
5947
5947
  var CompositionPatternModule = {
5948
5948
  command: "composition-pattern <command>",
5949
5949
  describe: "Commands for Canvas composition patterns",
5950
- builder: (yargs44) => yargs44.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5950
+ builder: (yargs45) => yargs45.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
5951
5951
  handler: () => {
5952
5952
  yargs10.help();
5953
5953
  }
@@ -5978,12 +5978,12 @@ function getEntryDeliveryClient(options) {
5978
5978
  var ContentTypeGetModule = {
5979
5979
  command: "get <id>",
5980
5980
  describe: "Get a content type",
5981
- builder: (yargs44) => withConfiguration(
5981
+ builder: (yargs45) => withConfiguration(
5982
5982
  withDebugOptions(
5983
5983
  withFormatOptions(
5984
5984
  withApiOptions(
5985
5985
  withProjectOptions(
5986
- yargs44.positional("id", {
5986
+ yargs45.positional("id", {
5987
5987
  demandOption: true,
5988
5988
  describe: "Content type public ID to fetch"
5989
5989
  })
@@ -6004,7 +6004,7 @@ var ContentTypeGetModule = {
6004
6004
  var ContentTypeListModule = {
6005
6005
  command: "list",
6006
6006
  describe: "List content types",
6007
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6007
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6008
6008
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6009
6009
  const fetch2 = nodeFetchProxy(proxy, verbose);
6010
6010
  const client = getContentTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6050,13 +6050,13 @@ function createContentTypeEngineDataSource({
6050
6050
  var ContentTypePullModule = {
6051
6051
  command: "pull <directory>",
6052
6052
  describe: "Pulls all content types to local files in a directory",
6053
- builder: (yargs44) => withConfiguration(
6053
+ builder: (yargs45) => withConfiguration(
6054
6054
  withApiOptions(
6055
6055
  withDebugOptions(
6056
6056
  withProjectOptions(
6057
6057
  withDiffOptions(
6058
6058
  withBatchSizeOptions(
6059
- yargs44.positional("directory", {
6059
+ yargs45.positional("directory", {
6060
6060
  describe: "Directory to save the content types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6061
6061
  type: "string"
6062
6062
  }).option("format", {
@@ -6143,13 +6143,13 @@ var ContentTypePullModule = {
6143
6143
  var ContentTypePushModule = {
6144
6144
  command: "push <directory>",
6145
6145
  describe: "Pushes all content types from files in a directory to Uniform",
6146
- builder: (yargs44) => withConfiguration(
6146
+ builder: (yargs45) => withConfiguration(
6147
6147
  withApiOptions(
6148
6148
  withDebugOptions(
6149
6149
  withProjectOptions(
6150
6150
  withDiffOptions(
6151
6151
  withBatchSizeOptions(
6152
- yargs44.positional("directory", {
6152
+ yargs45.positional("directory", {
6153
6153
  describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
6154
6154
  type: "string"
6155
6155
  }).option("what-if", {
@@ -6230,11 +6230,11 @@ var ContentTypeRemoveModule = {
6230
6230
  command: "remove <id>",
6231
6231
  aliases: ["delete", "rm"],
6232
6232
  describe: "Delete a content type",
6233
- builder: (yargs44) => withConfiguration(
6233
+ builder: (yargs45) => withConfiguration(
6234
6234
  withDebugOptions(
6235
6235
  withApiOptions(
6236
6236
  withProjectOptions(
6237
- yargs44.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6237
+ yargs45.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
6238
6238
  )
6239
6239
  )
6240
6240
  )
@@ -6255,11 +6255,11 @@ var ContentTypeUpdateModule = {
6255
6255
  command: "update <filename>",
6256
6256
  aliases: ["put"],
6257
6257
  describe: "Insert or update a content type",
6258
- builder: (yargs44) => withConfiguration(
6258
+ builder: (yargs45) => withConfiguration(
6259
6259
  withDebugOptions(
6260
6260
  withApiOptions(
6261
6261
  withProjectOptions(
6262
- yargs44.positional("filename", { demandOption: true, describe: "Content type file to put" })
6262
+ yargs45.positional("filename", { demandOption: true, describe: "Content type file to put" })
6263
6263
  )
6264
6264
  )
6265
6265
  )
@@ -6281,15 +6281,307 @@ var ContentTypeModule = {
6281
6281
  command: "contenttype <command>",
6282
6282
  aliases: ["ct"],
6283
6283
  describe: "Commands for Content Types",
6284
- builder: (yargs44) => yargs44.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6284
+ builder: (yargs45) => yargs45.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
6285
6285
  handler: () => {
6286
6286
  yargs11.help();
6287
6287
  }
6288
6288
  };
6289
6289
 
6290
- // src/commands/canvas/commands/dataSource.ts
6290
+ // src/commands/canvas/commands/customView.ts
6291
6291
  import yargs12 from "yargs";
6292
6292
 
6293
+ // src/commands/canvas/commands/customView/customViewClient.ts
6294
+ import { ApiClient } from "@uniformdev/context/api";
6295
+ var VIEWS_URL = "/api/v1/views";
6296
+ var CANVAS_RESOURCE_TYPES = [
6297
+ "composition",
6298
+ "compositionPattern",
6299
+ "component",
6300
+ "componentPattern",
6301
+ "entry",
6302
+ "entryPattern",
6303
+ "contentType",
6304
+ "blockType",
6305
+ "release",
6306
+ "signal",
6307
+ "intent",
6308
+ "audience",
6309
+ "asset"
6310
+ ];
6311
+ var CustomViewClient = class extends ApiClient {
6312
+ /** Lists saved views visible to the current caller (shared + own private). */
6313
+ async list(options) {
6314
+ const { projectId } = this.options;
6315
+ const fetchUri = this.createUrl(VIEWS_URL, { ...options, projectId });
6316
+ return await this.apiClient(fetchUri);
6317
+ }
6318
+ /**
6319
+ * Create-or-replace a saved view (`PUT`). When `id` is omitted a UUID is minted.
6320
+ */
6321
+ async put(body) {
6322
+ const { projectId } = this.options;
6323
+ const fetchUri = this.createUrl(VIEWS_URL);
6324
+ const id = body.id ?? crypto.randomUUID();
6325
+ return await this.apiClient(fetchUri, {
6326
+ method: "PUT",
6327
+ body: JSON.stringify({ ...body, id, projectId })
6328
+ });
6329
+ }
6330
+ /** Deletes a saved view by id (`DELETE`). */
6331
+ async remove(id) {
6332
+ const { projectId } = this.options;
6333
+ const fetchUri = this.createUrl(VIEWS_URL);
6334
+ await this.apiClient(fetchUri, {
6335
+ method: "DELETE",
6336
+ body: JSON.stringify({ id, projectId }),
6337
+ expectNoContent: true
6338
+ });
6339
+ }
6340
+ };
6341
+
6342
+ // src/commands/canvas/commands/customView/_util.ts
6343
+ var selectIdentifier4 = (view) => view.id;
6344
+ var selectDisplayName4 = (view) => `${view.name} (${view.resourceType})`;
6345
+ function getCustomViewClient(options) {
6346
+ return new CustomViewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
6347
+ }
6348
+
6349
+ // src/commands/canvas/customViewEngineDataSource.ts
6350
+ function normalizeCustomViewForSync(view) {
6351
+ const {
6352
+ projectId: _projectId,
6353
+ createdBy: _createdBy,
6354
+ created: _created,
6355
+ modified: _modified,
6356
+ ...rest
6357
+ } = view;
6358
+ return rest;
6359
+ }
6360
+ function createCustomViewEngineDataSource({
6361
+ client,
6362
+ batchSize,
6363
+ verbose
6364
+ }) {
6365
+ async function* getObjects() {
6366
+ const pageSize = batchSize ?? 100;
6367
+ for (const resourceType of CANVAS_RESOURCE_TYPES) {
6368
+ const views = paginateAsync(
6369
+ async (offset, limit2) => (await client.list({ resourceType, offset, limit: limit2 })).views,
6370
+ {
6371
+ pageSize,
6372
+ verbose,
6373
+ entityName: `custom views (${resourceType})`
6374
+ }
6375
+ );
6376
+ for await (const view of views) {
6377
+ if (!view.shared) {
6378
+ continue;
6379
+ }
6380
+ const object4 = normalizeCustomViewForSync(view);
6381
+ const result = {
6382
+ id: selectIdentifier4(object4),
6383
+ displayName: selectDisplayName4(object4),
6384
+ providerId: object4.id,
6385
+ object: object4
6386
+ };
6387
+ yield result;
6388
+ }
6389
+ }
6390
+ }
6391
+ return {
6392
+ name: "Uniform API",
6393
+ objects: getObjects(),
6394
+ deleteObject: async (providerId) => {
6395
+ await client.remove(providerId);
6396
+ },
6397
+ writeObject: async ({ object: object4 }) => {
6398
+ if (!object4.shared) {
6399
+ throw new Error(
6400
+ `Custom view "${object4.name}" (${object4.id}) is personal and cannot be pushed. Only shared views are supported.`
6401
+ );
6402
+ }
6403
+ await client.put(object4);
6404
+ }
6405
+ };
6406
+ }
6407
+
6408
+ // src/commands/canvas/commands/customView/pull.ts
6409
+ var CustomViewPullModule = {
6410
+ command: "pull <directory>",
6411
+ describe: "Pulls all shared custom views to local files in a directory",
6412
+ builder: (yargs45) => withConfiguration(
6413
+ withApiOptions(
6414
+ withDebugOptions(
6415
+ withProjectOptions(
6416
+ withDiffOptions(
6417
+ withBatchSizeOptions(
6418
+ yargs45.positional("directory", {
6419
+ describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6420
+ type: "string"
6421
+ }).option("format", {
6422
+ alias: ["f"],
6423
+ describe: "Output format",
6424
+ default: "yaml",
6425
+ choices: ["yaml", "json"],
6426
+ type: "string"
6427
+ }).option("mode", {
6428
+ alias: ["m"],
6429
+ describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
6430
+ choices: ["create", "createOrUpdate", "mirror"],
6431
+ default: "mirror",
6432
+ type: "string"
6433
+ }),
6434
+ "customView"
6435
+ )
6436
+ )
6437
+ )
6438
+ )
6439
+ )
6440
+ ),
6441
+ handler: async ({
6442
+ apiHost,
6443
+ apiKey,
6444
+ proxy,
6445
+ directory,
6446
+ format,
6447
+ mode,
6448
+ whatIf,
6449
+ project: projectId,
6450
+ diff: diffMode,
6451
+ allowEmptySource,
6452
+ verbose,
6453
+ resolvedBatchSize
6454
+ }) => {
6455
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6456
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6457
+ const source = createCustomViewEngineDataSource({
6458
+ client,
6459
+ verbose,
6460
+ batchSize: resolvedBatchSize
6461
+ });
6462
+ let target;
6463
+ const isPackage = isPathAPackageFile(directory);
6464
+ if (isPackage) {
6465
+ const packageContents = readCanvasPackage(directory, false, verbose);
6466
+ target = await createArraySyncEngineDataSource({
6467
+ name: `Package file ${directory}`,
6468
+ objects: packageContents.customViews ?? [],
6469
+ selectIdentifier: selectIdentifier4,
6470
+ selectDisplayName: selectDisplayName4,
6471
+ onSyncComplete: async (_, synced) => {
6472
+ packageContents.customViews = synced;
6473
+ writeCanvasPackage(directory, packageContents);
6474
+ }
6475
+ });
6476
+ } else {
6477
+ target = await createFileSyncEngineDataSource({
6478
+ directory,
6479
+ selectIdentifier: selectIdentifier4,
6480
+ selectDisplayName: selectDisplayName4,
6481
+ format,
6482
+ verbose
6483
+ });
6484
+ }
6485
+ await syncEngine({
6486
+ source,
6487
+ target,
6488
+ mode,
6489
+ whatIf,
6490
+ allowEmptySource: allowEmptySource ?? true,
6491
+ log: createSyncEngineConsoleLogger({ diffMode })
6492
+ });
6493
+ }
6494
+ };
6495
+
6496
+ // src/commands/canvas/commands/customView/push.ts
6497
+ var CustomViewPushModule = {
6498
+ command: "push <directory>",
6499
+ describe: "Pushes all shared custom views from files in a directory to Uniform",
6500
+ builder: (yargs45) => withConfiguration(
6501
+ withDebugOptions(
6502
+ withApiOptions(
6503
+ withProjectOptions(
6504
+ withDiffOptions(
6505
+ withBatchSizeOptions(
6506
+ yargs45.positional("directory", {
6507
+ describe: "Directory to read from. If a filename is used, a package will be read instead.",
6508
+ type: "string"
6509
+ }).option("mode", {
6510
+ alias: ["m"],
6511
+ describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
6512
+ choices: ["create", "createOrUpdate", "mirror"],
6513
+ default: "mirror",
6514
+ type: "string"
6515
+ }),
6516
+ "customView"
6517
+ )
6518
+ )
6519
+ )
6520
+ )
6521
+ )
6522
+ ),
6523
+ handler: async ({
6524
+ apiHost,
6525
+ apiKey,
6526
+ proxy,
6527
+ directory,
6528
+ mode,
6529
+ whatIf,
6530
+ project: projectId,
6531
+ diff: diffMode,
6532
+ allowEmptySource,
6533
+ verbose,
6534
+ resolvedBatchSize
6535
+ }) => {
6536
+ const fetch2 = nodeFetchProxy(proxy, verbose);
6537
+ const client = getCustomViewClient({ apiKey, apiHost, fetch: fetch2, projectId });
6538
+ let source;
6539
+ const isPackage = isPathAPackageFile(directory);
6540
+ if (isPackage) {
6541
+ const packageContents = readCanvasPackage(directory, true, verbose);
6542
+ source = await createArraySyncEngineDataSource({
6543
+ name: `Package file ${directory}`,
6544
+ objects: packageContents.customViews ?? [],
6545
+ selectIdentifier: selectIdentifier4,
6546
+ selectDisplayName: selectDisplayName4
6547
+ });
6548
+ } else {
6549
+ source = await createFileSyncEngineDataSource({
6550
+ directory,
6551
+ selectIdentifier: selectIdentifier4,
6552
+ selectDisplayName: selectDisplayName4,
6553
+ verbose
6554
+ });
6555
+ }
6556
+ const target = createCustomViewEngineDataSource({
6557
+ client,
6558
+ verbose,
6559
+ batchSize: resolvedBatchSize
6560
+ });
6561
+ await syncEngine({
6562
+ source,
6563
+ target,
6564
+ mode,
6565
+ whatIf,
6566
+ allowEmptySource,
6567
+ log: createSyncEngineConsoleLogger({ diffMode })
6568
+ });
6569
+ }
6570
+ };
6571
+
6572
+ // src/commands/canvas/commands/customView.ts
6573
+ var CustomViewModule = {
6574
+ command: "custom-view <command>",
6575
+ describe: "Commands for shared custom views",
6576
+ builder: (yargs45) => yargs45.command(CustomViewPullModule).command(CustomViewPushModule).demandCommand(),
6577
+ handler: () => {
6578
+ yargs12.help();
6579
+ }
6580
+ };
6581
+
6582
+ // src/commands/canvas/commands/dataSource.ts
6583
+ import yargs13 from "yargs";
6584
+
6293
6585
  // src/commands/canvas/commands/dataSource/_util.ts
6294
6586
  import { DataSourceClient } from "@uniformdev/canvas";
6295
6587
  function getDataSourceClient(options) {
@@ -6300,11 +6592,11 @@ function getDataSourceClient(options) {
6300
6592
  var DataSourceGetModule = {
6301
6593
  command: "get <id>",
6302
6594
  describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
6303
- builder: (yargs44) => withConfiguration(
6595
+ builder: (yargs45) => withConfiguration(
6304
6596
  withApiOptions(
6305
6597
  withDebugOptions(
6306
6598
  withProjectOptions(
6307
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6599
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
6308
6600
  )
6309
6601
  )
6310
6602
  )
@@ -6322,11 +6614,11 @@ var DataSourceRemoveModule = {
6322
6614
  command: "remove <id>",
6323
6615
  aliases: ["delete", "rm"],
6324
6616
  describe: "Delete a data source",
6325
- builder: (yargs44) => withConfiguration(
6617
+ builder: (yargs45) => withConfiguration(
6326
6618
  withDebugOptions(
6327
6619
  withApiOptions(
6328
6620
  withProjectOptions(
6329
- yargs44.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6621
+ yargs45.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
6330
6622
  )
6331
6623
  )
6332
6624
  )
@@ -6347,11 +6639,11 @@ var DataSourceUpdateModule = {
6347
6639
  command: "update <dataSource>",
6348
6640
  aliases: ["put"],
6349
6641
  describe: "Insert or update a data source",
6350
- builder: (yargs44) => withConfiguration(
6642
+ builder: (yargs45) => withConfiguration(
6351
6643
  withApiOptions(
6352
6644
  withDebugOptions(
6353
6645
  withProjectOptions(
6354
- yargs44.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6646
+ yargs45.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
6355
6647
  describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
6356
6648
  type: "string",
6357
6649
  demandOption: true
@@ -6386,19 +6678,19 @@ var DataSourceModule = {
6386
6678
  command: "datasource <command>",
6387
6679
  aliases: ["ds"],
6388
6680
  describe: "Commands for Data Source definitions",
6389
- builder: (yargs44) => yargs44.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6681
+ builder: (yargs45) => yargs45.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
6390
6682
  handler: () => {
6391
- yargs12.help();
6683
+ yargs13.help();
6392
6684
  }
6393
6685
  };
6394
6686
 
6395
6687
  // src/commands/canvas/commands/dataType.ts
6396
- import yargs13 from "yargs";
6688
+ import yargs14 from "yargs";
6397
6689
 
6398
6690
  // src/commands/canvas/commands/dataType/_util.ts
6399
6691
  import { DataTypeClient } from "@uniformdev/canvas";
6400
- var selectIdentifier4 = (dataType) => dataType.id;
6401
- var selectDisplayName4 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6692
+ var selectIdentifier5 = (dataType) => dataType.id;
6693
+ var selectDisplayName5 = (dataType) => `${dataType.displayName} (pid: ${dataType.id})`;
6402
6694
  function getDataTypeClient(options) {
6403
6695
  return new DataTypeClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
6404
6696
  }
@@ -6408,12 +6700,12 @@ var DataTypeGetModule = {
6408
6700
  command: "get <id>",
6409
6701
  describe: "Get a data type",
6410
6702
  aliases: ["ls"],
6411
- builder: (yargs44) => withConfiguration(
6703
+ builder: (yargs45) => withConfiguration(
6412
6704
  withFormatOptions(
6413
6705
  withDebugOptions(
6414
6706
  withApiOptions(
6415
6707
  withProjectOptions(
6416
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6708
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
6417
6709
  )
6418
6710
  )
6419
6711
  )
@@ -6436,7 +6728,7 @@ var DataTypeListModule = {
6436
6728
  command: "list",
6437
6729
  describe: "List data types",
6438
6730
  aliases: ["ls"],
6439
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
6731
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
6440
6732
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
6441
6733
  const fetch2 = nodeFetchProxy(proxy, verbose);
6442
6734
  const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -6453,8 +6745,8 @@ function createDataTypeEngineDataSource({
6453
6745
  const dataTypes = (await client.list()).results;
6454
6746
  for await (const dataType of dataTypes) {
6455
6747
  const result = {
6456
- id: selectIdentifier4(dataType),
6457
- displayName: selectDisplayName4(dataType),
6748
+ id: selectIdentifier5(dataType),
6749
+ displayName: selectDisplayName5(dataType),
6458
6750
  providerId: dataType.id,
6459
6751
  object: dataType
6460
6752
  };
@@ -6479,12 +6771,12 @@ function createDataTypeEngineDataSource({
6479
6771
  var DataTypePullModule = {
6480
6772
  command: "pull <directory>",
6481
6773
  describe: "Pulls all data types to local files in a directory",
6482
- builder: (yargs44) => withConfiguration(
6774
+ builder: (yargs45) => withConfiguration(
6483
6775
  withApiOptions(
6484
6776
  withDebugOptions(
6485
6777
  withProjectOptions(
6486
6778
  withDiffOptions(
6487
- yargs44.positional("directory", {
6779
+ yargs45.positional("directory", {
6488
6780
  describe: "Directory to save the data types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
6489
6781
  type: "string"
6490
6782
  }).option("format", {
@@ -6533,8 +6825,8 @@ var DataTypePullModule = {
6533
6825
  target = await createArraySyncEngineDataSource({
6534
6826
  name: `Package file ${directory}`,
6535
6827
  objects: packageContents.dataTypes ?? [],
6536
- selectIdentifier: selectIdentifier4,
6537
- selectDisplayName: selectDisplayName4,
6828
+ selectIdentifier: selectIdentifier5,
6829
+ selectDisplayName: selectDisplayName5,
6538
6830
  onSyncComplete: async (_, synced) => {
6539
6831
  packageContents.dataTypes = synced;
6540
6832
  writeCanvasPackage(directory, packageContents);
@@ -6543,8 +6835,8 @@ var DataTypePullModule = {
6543
6835
  } else {
6544
6836
  target = await createFileSyncEngineDataSource({
6545
6837
  directory,
6546
- selectIdentifier: selectIdentifier4,
6547
- selectDisplayName: selectDisplayName4,
6838
+ selectIdentifier: selectIdentifier5,
6839
+ selectDisplayName: selectDisplayName5,
6548
6840
  format,
6549
6841
  verbose
6550
6842
  });
@@ -6564,12 +6856,12 @@ var DataTypePullModule = {
6564
6856
  var DataTypePushModule = {
6565
6857
  command: "push <directory>",
6566
6858
  describe: "Pushes all data types from files in a directory to Uniform",
6567
- builder: (yargs44) => withConfiguration(
6859
+ builder: (yargs45) => withConfiguration(
6568
6860
  withApiOptions(
6569
6861
  withDebugOptions(
6570
6862
  withProjectOptions(
6571
6863
  withDiffOptions(
6572
- yargs44.positional("directory", {
6864
+ yargs45.positional("directory", {
6573
6865
  describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
6574
6866
  type: "string"
6575
6867
  }).option("mode", {
@@ -6610,14 +6902,14 @@ var DataTypePushModule = {
6610
6902
  source = await createArraySyncEngineDataSource({
6611
6903
  name: `Package file ${directory}`,
6612
6904
  objects: packageContents.dataTypes ?? [],
6613
- selectIdentifier: selectIdentifier4,
6614
- selectDisplayName: selectDisplayName4
6905
+ selectIdentifier: selectIdentifier5,
6906
+ selectDisplayName: selectDisplayName5
6615
6907
  });
6616
6908
  } else {
6617
6909
  source = await createFileSyncEngineDataSource({
6618
6910
  directory,
6619
- selectIdentifier: selectIdentifier4,
6620
- selectDisplayName: selectDisplayName4,
6911
+ selectIdentifier: selectIdentifier5,
6912
+ selectDisplayName: selectDisplayName5,
6621
6913
  verbose
6622
6914
  });
6623
6915
  }
@@ -6638,11 +6930,11 @@ var DataTypeRemoveModule = {
6638
6930
  command: "remove <id>",
6639
6931
  aliases: ["delete", "rm"],
6640
6932
  describe: "Delete a data type",
6641
- builder: (yargs44) => withConfiguration(
6933
+ builder: (yargs45) => withConfiguration(
6642
6934
  withDebugOptions(
6643
6935
  withApiOptions(
6644
6936
  withProjectOptions(
6645
- yargs44.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6937
+ yargs45.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
6646
6938
  )
6647
6939
  )
6648
6940
  )
@@ -6663,11 +6955,11 @@ var DataTypeUpdateModule = {
6663
6955
  command: "update <filename>",
6664
6956
  aliases: ["put"],
6665
6957
  describe: "Insert or update a data type",
6666
- builder: (yargs44) => withConfiguration(
6958
+ builder: (yargs45) => withConfiguration(
6667
6959
  withDebugOptions(
6668
6960
  withApiOptions(
6669
6961
  withProjectOptions(
6670
- yargs44.positional("filename", { demandOption: true, describe: "Data type file to put" })
6962
+ yargs45.positional("filename", { demandOption: true, describe: "Data type file to put" })
6671
6963
  )
6672
6964
  )
6673
6965
  )
@@ -6689,14 +6981,14 @@ var DataTypeModule = {
6689
6981
  command: "datatype <command>",
6690
6982
  aliases: ["dt"],
6691
6983
  describe: "Commands for Data Type definitions",
6692
- builder: (yargs44) => yargs44.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6984
+ builder: (yargs45) => yargs45.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
6693
6985
  handler: () => {
6694
- yargs13.help();
6986
+ yargs14.help();
6695
6987
  }
6696
6988
  };
6697
6989
 
6698
6990
  // src/commands/canvas/commands/entry.ts
6699
- import yargs14 from "yargs";
6991
+ import yargs15 from "yargs";
6700
6992
 
6701
6993
  // src/commands/canvas/commands/entry/get.ts
6702
6994
  function createEntryGetHandler(expectedType) {
@@ -6745,13 +7037,13 @@ function createEntryGetHandler(expectedType) {
6745
7037
  var EntryGetModule = {
6746
7038
  command: "get <id>",
6747
7039
  describe: "Get an entry",
6748
- builder: (yargs44) => withConfiguration(
7040
+ builder: (yargs45) => withConfiguration(
6749
7041
  withDebugOptions(
6750
7042
  withFormatOptions(
6751
7043
  withApiOptions(
6752
7044
  withProjectOptions(
6753
7045
  withStateOptions(
6754
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
7046
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
6755
7047
  resolveData: {
6756
7048
  type: "boolean",
6757
7049
  default: false,
@@ -6785,13 +7077,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
6785
7077
  var EntryListModule = {
6786
7078
  command: "list",
6787
7079
  describe: "List entries",
6788
- builder: (yargs44) => withConfiguration(
7080
+ builder: (yargs45) => withConfiguration(
6789
7081
  withDebugOptions(
6790
7082
  withFormatOptions(
6791
7083
  withApiOptions(
6792
7084
  withProjectOptions(
6793
7085
  withStateOptions(
6794
- yargs44.options({
7086
+ yargs45.options({
6795
7087
  offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
6796
7088
  limit: {
6797
7089
  describe: "Number of rows to fetch",
@@ -6920,13 +7212,13 @@ function createEntryEngineDataSource({
6920
7212
  var EntryPublishModule = {
6921
7213
  command: "publish [ids]",
6922
7214
  describe: "Publishes entry(ies)",
6923
- builder: (yargs44) => withConfiguration(
7215
+ builder: (yargs45) => withConfiguration(
6924
7216
  withDebugOptions(
6925
7217
  withDiffOptions(
6926
7218
  withApiOptions(
6927
7219
  withProjectOptions(
6928
7220
  withBatchSizeOptions(
6929
- yargs44.positional("ids", {
7221
+ yargs45.positional("ids", {
6930
7222
  describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
6931
7223
  type: "string"
6932
7224
  }).option("all", {
@@ -7003,14 +7295,14 @@ var EntryPublishModule = {
7003
7295
  var EntryPullModule = {
7004
7296
  command: "pull <directory>",
7005
7297
  describe: "Pulls all entries to local files in a directory",
7006
- builder: (yargs44) => withConfiguration(
7298
+ builder: (yargs45) => withConfiguration(
7007
7299
  withDebugOptions(
7008
7300
  withApiOptions(
7009
7301
  withProjectOptions(
7010
7302
  withStateOptions(
7011
7303
  withDiffOptions(
7012
7304
  withBatchSizeOptions(
7013
- yargs44.positional("directory", {
7305
+ yargs45.positional("directory", {
7014
7306
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7015
7307
  type: "string"
7016
7308
  }).option("format", {
@@ -7119,14 +7411,14 @@ var EntryPullModule = {
7119
7411
  var EntryPushModule = {
7120
7412
  command: "push <directory>",
7121
7413
  describe: "Pushes all entries from files in a directory to Uniform",
7122
- builder: (yargs44) => withConfiguration(
7414
+ builder: (yargs45) => withConfiguration(
7123
7415
  withDebugOptions(
7124
7416
  withApiOptions(
7125
7417
  withProjectOptions(
7126
7418
  withStateOptions(
7127
7419
  withDiffOptions(
7128
7420
  withBatchSizeOptions(
7129
- yargs44.positional("directory", {
7421
+ yargs45.positional("directory", {
7130
7422
  describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
7131
7423
  type: "string"
7132
7424
  }).option("mode", {
@@ -7265,11 +7557,11 @@ var EntryRemoveModule = {
7265
7557
  command: "remove <id>",
7266
7558
  aliases: ["delete", "rm"],
7267
7559
  describe: "Delete an entry",
7268
- builder: (yargs44) => withConfiguration(
7560
+ builder: (yargs45) => withConfiguration(
7269
7561
  withDebugOptions(
7270
7562
  withApiOptions(
7271
7563
  withProjectOptions(
7272
- yargs44.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7564
+ yargs45.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
7273
7565
  )
7274
7566
  )
7275
7567
  )
@@ -7283,12 +7575,12 @@ import { diffJson as diffJson3 } from "diff";
7283
7575
  var EntryUnpublishModule = {
7284
7576
  command: "unpublish [ids]",
7285
7577
  describe: "Unpublish an entry(ies)",
7286
- builder: (yargs44) => withConfiguration(
7578
+ builder: (yargs45) => withConfiguration(
7287
7579
  withDebugOptions(
7288
7580
  withApiOptions(
7289
7581
  withProjectOptions(
7290
7582
  withBatchSizeOptions(
7291
- yargs44.positional("ids", {
7583
+ yargs45.positional("ids", {
7292
7584
  describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7293
7585
  type: "string"
7294
7586
  }).option("all", {
@@ -7426,12 +7718,12 @@ var EntryUpdateModule = {
7426
7718
  command: "update <filename>",
7427
7719
  aliases: ["put"],
7428
7720
  describe: "Insert or update an entry",
7429
- builder: (yargs44) => withConfiguration(
7721
+ builder: (yargs45) => withConfiguration(
7430
7722
  withDebugOptions(
7431
7723
  withApiOptions(
7432
7724
  withProjectOptions(
7433
7725
  withStateOptions(
7434
- yargs44.positional("filename", { demandOption: true, describe: "Entry file to put" })
7726
+ yargs45.positional("filename", { demandOption: true, describe: "Entry file to put" })
7435
7727
  )
7436
7728
  )
7437
7729
  )
@@ -7444,26 +7736,26 @@ var EntryUpdateModule = {
7444
7736
  var EntryModule = {
7445
7737
  command: "entry <command>",
7446
7738
  describe: "Commands for Entries",
7447
- builder: (yargs44) => yargs44.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7739
+ builder: (yargs45) => yargs45.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
7448
7740
  handler: () => {
7449
- yargs14.help();
7741
+ yargs15.help();
7450
7742
  }
7451
7743
  };
7452
7744
 
7453
7745
  // src/commands/canvas/commands/entryPattern.ts
7454
- import yargs15 from "yargs";
7746
+ import yargs16 from "yargs";
7455
7747
 
7456
7748
  // src/commands/canvas/commands/entryPattern/get.ts
7457
7749
  var EntryPatternGetModule = {
7458
7750
  command: "get <id>",
7459
7751
  describe: "Get an entry pattern",
7460
- builder: (yargs44) => withConfiguration(
7752
+ builder: (yargs45) => withConfiguration(
7461
7753
  withDebugOptions(
7462
7754
  withFormatOptions(
7463
7755
  withApiOptions(
7464
7756
  withProjectOptions(
7465
7757
  withStateOptions(
7466
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7758
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to fetch" }).option({
7467
7759
  resolveData: {
7468
7760
  type: "boolean",
7469
7761
  default: false,
@@ -7495,9 +7787,9 @@ var EntryPatternGetModule = {
7495
7787
  var EntryPatternListModule = {
7496
7788
  command: "list",
7497
7789
  describe: "List entry patterns",
7498
- builder: (yargs44) => withConfiguration(
7790
+ builder: (yargs45) => withConfiguration(
7499
7791
  withDebugOptions(
7500
- withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs44, "published"))))
7792
+ withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs45, "published"))))
7501
7793
  )
7502
7794
  ),
7503
7795
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, state, verbose }) => {
@@ -7517,13 +7809,13 @@ var EntryPatternListModule = {
7517
7809
  var EntryPatternPublishModule = {
7518
7810
  command: "publish [ids]",
7519
7811
  describe: "Publishes entry pattern(s)",
7520
- builder: (yargs44) => withConfiguration(
7812
+ builder: (yargs45) => withConfiguration(
7521
7813
  withDebugOptions(
7522
7814
  withApiOptions(
7523
7815
  withProjectOptions(
7524
7816
  withDiffOptions(
7525
7817
  withBatchSizeOptions(
7526
- yargs44.positional("ids", {
7818
+ yargs45.positional("ids", {
7527
7819
  describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
7528
7820
  type: "string"
7529
7821
  }).option("all", {
@@ -7600,14 +7892,14 @@ var EntryPatternPublishModule = {
7600
7892
  var EntryPatternPullModule = {
7601
7893
  command: "pull <directory>",
7602
7894
  describe: "Pulls all entry patterns to local files in a directory",
7603
- builder: (yargs44) => withConfiguration(
7895
+ builder: (yargs45) => withConfiguration(
7604
7896
  withApiOptions(
7605
7897
  withDebugOptions(
7606
7898
  withProjectOptions(
7607
7899
  withStateOptions(
7608
7900
  withDiffOptions(
7609
7901
  withBatchSizeOptions(
7610
- yargs44.positional("directory", {
7902
+ yargs45.positional("directory", {
7611
7903
  describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
7612
7904
  type: "string"
7613
7905
  }).option("format", {
@@ -7716,14 +8008,14 @@ var EntryPatternPullModule = {
7716
8008
  var EntryPatternPushModule = {
7717
8009
  command: "push <directory>",
7718
8010
  describe: "Pushes all entry patterns from files in a directory to Uniform",
7719
- builder: (yargs44) => withConfiguration(
8011
+ builder: (yargs45) => withConfiguration(
7720
8012
  withDebugOptions(
7721
8013
  withApiOptions(
7722
8014
  withProjectOptions(
7723
8015
  withStateOptions(
7724
8016
  withDiffOptions(
7725
8017
  withBatchSizeOptions(
7726
- yargs44.positional("directory", {
8018
+ yargs45.positional("directory", {
7727
8019
  describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
7728
8020
  type: "string"
7729
8021
  }).option("what-if", {
@@ -7836,11 +8128,11 @@ var EntryPatternRemoveModule = {
7836
8128
  command: "remove <id>",
7837
8129
  aliases: ["delete", "rm"],
7838
8130
  describe: "Delete an entry pattern",
7839
- builder: (yargs44) => withConfiguration(
8131
+ builder: (yargs45) => withConfiguration(
7840
8132
  withDebugOptions(
7841
8133
  withApiOptions(
7842
8134
  withProjectOptions(
7843
- yargs44.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
8135
+ yargs45.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
7844
8136
  )
7845
8137
  )
7846
8138
  )
@@ -7854,12 +8146,12 @@ import { diffJson as diffJson4 } from "diff";
7854
8146
  var EntryPatternUnpublishModule = {
7855
8147
  command: "unpublish [ids]",
7856
8148
  describe: "Unpublish entry pattern(s)",
7857
- builder: (yargs44) => withConfiguration(
8149
+ builder: (yargs45) => withConfiguration(
7858
8150
  withDebugOptions(
7859
8151
  withApiOptions(
7860
8152
  withProjectOptions(
7861
8153
  withBatchSizeOptions(
7862
- yargs44.positional("ids", {
8154
+ yargs45.positional("ids", {
7863
8155
  describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
7864
8156
  type: "string"
7865
8157
  }).option("all", {
@@ -7963,12 +8255,12 @@ var EntryPatternUpdateModule = {
7963
8255
  command: "update <filename>",
7964
8256
  aliases: ["put"],
7965
8257
  describe: "Insert or update an entry pattern",
7966
- builder: (yargs44) => withConfiguration(
8258
+ builder: (yargs45) => withConfiguration(
7967
8259
  withDebugOptions(
7968
8260
  withApiOptions(
7969
8261
  withProjectOptions(
7970
8262
  withStateOptions(
7971
- yargs44.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
8263
+ yargs45.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
7972
8264
  )
7973
8265
  )
7974
8266
  )
@@ -7981,14 +8273,14 @@ var EntryPatternUpdateModule = {
7981
8273
  var EntryPatternModule = {
7982
8274
  command: "entry-pattern <command>",
7983
8275
  describe: "Commands for Entry patterns",
7984
- builder: (yargs44) => yargs44.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
8276
+ builder: (yargs45) => yargs45.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
7985
8277
  handler: () => {
7986
- yargs15.help();
8278
+ yargs16.help();
7987
8279
  }
7988
8280
  };
7989
8281
 
7990
8282
  // src/commands/canvas/commands/label.ts
7991
- import yargs16 from "yargs";
8283
+ import yargs17 from "yargs";
7992
8284
 
7993
8285
  // src/commands/canvas/labelsEngineDataSource.ts
7994
8286
  function normalizeLabelForSync(label) {
@@ -8040,13 +8332,13 @@ function getLabelClient(options) {
8040
8332
  var LabelPullModule = {
8041
8333
  command: "pull <directory>",
8042
8334
  describe: "Pulls all labels to local files in a directory",
8043
- builder: (yargs44) => withConfiguration(
8335
+ builder: (yargs45) => withConfiguration(
8044
8336
  withDebugOptions(
8045
8337
  withApiOptions(
8046
8338
  withProjectOptions(
8047
8339
  withDiffOptions(
8048
8340
  withBatchSizeOptions(
8049
- yargs44.positional("directory", {
8341
+ yargs45.positional("directory", {
8050
8342
  describe: "Directory to save the labels to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8051
8343
  type: "string"
8052
8344
  }).option("format", {
@@ -8135,13 +8427,13 @@ var __INTERNAL_MISSING_PARENT_LABEL_ERROR = "Parent label with public ID";
8135
8427
  var LabelPushModule = {
8136
8428
  command: "push <directory>",
8137
8429
  describe: "Pushes all labels from files in a directory to Uniform",
8138
- builder: (yargs44) => withConfiguration(
8430
+ builder: (yargs45) => withConfiguration(
8139
8431
  withDebugOptions(
8140
8432
  withApiOptions(
8141
8433
  withProjectOptions(
8142
8434
  withDiffOptions(
8143
8435
  withBatchSizeOptions(
8144
- yargs44.positional("directory", {
8436
+ yargs45.positional("directory", {
8145
8437
  describe: "Directory to read the labels from. If a filename is used, a package will be read instead.",
8146
8438
  type: "string"
8147
8439
  }).option("mode", {
@@ -8239,14 +8531,14 @@ var LabelPushModule = {
8239
8531
  var LabelModule = {
8240
8532
  command: "label <command>",
8241
8533
  describe: "Commands for label definitions",
8242
- builder: (yargs44) => yargs44.command(LabelPullModule).command(LabelPushModule),
8534
+ builder: (yargs45) => yargs45.command(LabelPullModule).command(LabelPushModule),
8243
8535
  handler: () => {
8244
- yargs16.help();
8536
+ yargs17.help();
8245
8537
  }
8246
8538
  };
8247
8539
 
8248
8540
  // src/commands/canvas/commands/locale.ts
8249
- import yargs17 from "yargs";
8541
+ import yargs18 from "yargs";
8250
8542
 
8251
8543
  // src/commands/canvas/localesEngineDataSource.ts
8252
8544
  function createLocaleEngineDataSource({
@@ -8288,12 +8580,12 @@ function getLocaleClient(options) {
8288
8580
  var LocalePullModule = {
8289
8581
  command: "pull <directory>",
8290
8582
  describe: "Pulls all locales to local files in a directory",
8291
- builder: (yargs44) => withConfiguration(
8583
+ builder: (yargs45) => withConfiguration(
8292
8584
  withDebugOptions(
8293
8585
  withApiOptions(
8294
8586
  withProjectOptions(
8295
8587
  withDiffOptions(
8296
- yargs44.positional("directory", {
8588
+ yargs45.positional("directory", {
8297
8589
  describe: "Directory to save the locales to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8298
8590
  type: "string"
8299
8591
  }).option("format", {
@@ -8373,12 +8665,12 @@ var LocalePullModule = {
8373
8665
  var LocalePushModule = {
8374
8666
  command: "push <directory>",
8375
8667
  describe: "Pushes all locales from files in a directory to Uniform",
8376
- builder: (yargs44) => withConfiguration(
8668
+ builder: (yargs45) => withConfiguration(
8377
8669
  withDebugOptions(
8378
8670
  withApiOptions(
8379
8671
  withProjectOptions(
8380
8672
  withDiffOptions(
8381
- yargs44.positional("directory", {
8673
+ yargs45.positional("directory", {
8382
8674
  describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
8383
8675
  type: "string"
8384
8676
  }).option("mode", {
@@ -8446,19 +8738,19 @@ var LocalePushModule = {
8446
8738
  var LocaleModule = {
8447
8739
  command: "locale <command>",
8448
8740
  describe: "Commands for locale definitions",
8449
- builder: (yargs44) => yargs44.command(LocalePullModule).command(LocalePushModule),
8741
+ builder: (yargs45) => yargs45.command(LocalePullModule).command(LocalePushModule),
8450
8742
  handler: () => {
8451
- yargs17.help();
8743
+ yargs18.help();
8452
8744
  }
8453
8745
  };
8454
8746
 
8455
8747
  // src/commands/canvas/commands/previewUrl.ts
8456
- import yargs18 from "yargs";
8748
+ import yargs19 from "yargs";
8457
8749
 
8458
8750
  // src/commands/canvas/commands/previewUrl/_util.ts
8459
8751
  import { PreviewClient } from "@uniformdev/canvas";
8460
- var selectIdentifier5 = (previewUrl) => previewUrl.id;
8461
- var selectDisplayName5 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8752
+ var selectIdentifier6 = (previewUrl) => previewUrl.id;
8753
+ var selectDisplayName6 = (previewUrl) => `${previewUrl.name} (pid: ${previewUrl.id})`;
8462
8754
  function getPreviewClient(options) {
8463
8755
  return new PreviewClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
8464
8756
  }
@@ -8467,12 +8759,12 @@ function getPreviewClient(options) {
8467
8759
  var PreviewUrlGetModule = {
8468
8760
  command: "get <id>",
8469
8761
  describe: "Fetch a preview URL",
8470
- builder: (yargs44) => withConfiguration(
8762
+ builder: (yargs45) => withConfiguration(
8471
8763
  withFormatOptions(
8472
8764
  withDebugOptions(
8473
8765
  withApiOptions(
8474
8766
  withProjectOptions(
8475
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8767
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
8476
8768
  )
8477
8769
  )
8478
8770
  )
@@ -8496,8 +8788,8 @@ var PreviewUrlListModule = {
8496
8788
  command: "list",
8497
8789
  describe: "List preview URLs",
8498
8790
  aliases: ["ls"],
8499
- builder: (yargs44) => withConfiguration(
8500
- withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs44.options({})))))
8791
+ builder: (yargs45) => withConfiguration(
8792
+ withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs45.options({})))))
8501
8793
  ),
8502
8794
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8503
8795
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8515,8 +8807,8 @@ function createPreviewUrlEngineDataSource({
8515
8807
  const previewUrls = (await client.getPreviewUrls()).previewUrls;
8516
8808
  for await (const previewUrl of previewUrls) {
8517
8809
  const result = {
8518
- id: selectIdentifier5(previewUrl),
8519
- displayName: selectDisplayName5(previewUrl),
8810
+ id: selectIdentifier6(previewUrl),
8811
+ displayName: selectDisplayName6(previewUrl),
8520
8812
  providerId: previewUrl.id,
8521
8813
  object: previewUrl
8522
8814
  };
@@ -8539,12 +8831,12 @@ function createPreviewUrlEngineDataSource({
8539
8831
  var PreviewUrlPullModule = {
8540
8832
  command: "pull <directory>",
8541
8833
  describe: "Pulls all preview urls to local files in a directory",
8542
- builder: (yargs44) => withConfiguration(
8834
+ builder: (yargs45) => withConfiguration(
8543
8835
  withApiOptions(
8544
8836
  withProjectOptions(
8545
8837
  withDebugOptions(
8546
8838
  withDiffOptions(
8547
- yargs44.positional("directory", {
8839
+ yargs45.positional("directory", {
8548
8840
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8549
8841
  type: "string"
8550
8842
  }).option("format", {
@@ -8588,8 +8880,8 @@ var PreviewUrlPullModule = {
8588
8880
  target = await createArraySyncEngineDataSource({
8589
8881
  name: `Package file ${directory}`,
8590
8882
  objects: packageContents.previewUrls ?? [],
8591
- selectIdentifier: selectIdentifier5,
8592
- selectDisplayName: selectDisplayName5,
8883
+ selectIdentifier: selectIdentifier6,
8884
+ selectDisplayName: selectDisplayName6,
8593
8885
  onSyncComplete: async (_, synced) => {
8594
8886
  packageContents.previewUrls = synced;
8595
8887
  writeCanvasPackage(directory, packageContents);
@@ -8598,9 +8890,9 @@ var PreviewUrlPullModule = {
8598
8890
  } else {
8599
8891
  target = await createFileSyncEngineDataSource({
8600
8892
  directory,
8601
- selectIdentifier: selectIdentifier5,
8602
- selectDisplayName: selectDisplayName5,
8603
- format,
8893
+ selectIdentifier: selectIdentifier6,
8894
+ selectDisplayName: selectDisplayName6,
8895
+ format,
8604
8896
  verbose
8605
8897
  });
8606
8898
  }
@@ -8619,12 +8911,12 @@ var PreviewUrlPullModule = {
8619
8911
  var PreviewUrlPushModule = {
8620
8912
  command: "push <directory>",
8621
8913
  describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
8622
- builder: (yargs44) => withConfiguration(
8914
+ builder: (yargs45) => withConfiguration(
8623
8915
  withApiOptions(
8624
8916
  withProjectOptions(
8625
8917
  withDiffOptions(
8626
8918
  withDebugOptions(
8627
- yargs44.positional("directory", {
8919
+ yargs45.positional("directory", {
8628
8920
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8629
8921
  type: "string"
8630
8922
  }).option("mode", {
@@ -8660,14 +8952,14 @@ var PreviewUrlPushModule = {
8660
8952
  source = await createArraySyncEngineDataSource({
8661
8953
  name: `Package file ${directory}`,
8662
8954
  objects: packageContents.previewUrls ?? [],
8663
- selectIdentifier: selectIdentifier5,
8664
- selectDisplayName: selectDisplayName5
8955
+ selectIdentifier: selectIdentifier6,
8956
+ selectDisplayName: selectDisplayName6
8665
8957
  });
8666
8958
  } else {
8667
8959
  source = await createFileSyncEngineDataSource({
8668
8960
  directory,
8669
- selectIdentifier: selectIdentifier5,
8670
- selectDisplayName: selectDisplayName5,
8961
+ selectIdentifier: selectIdentifier6,
8962
+ selectDisplayName: selectDisplayName6,
8671
8963
  verbose
8672
8964
  });
8673
8965
  }
@@ -8688,11 +8980,11 @@ var PreviewUrlRemoveModule = {
8688
8980
  command: "remove <id>",
8689
8981
  aliases: ["delete", "rm"],
8690
8982
  describe: "Delete a preview URL",
8691
- builder: (yargs44) => withConfiguration(
8983
+ builder: (yargs45) => withConfiguration(
8692
8984
  withApiOptions(
8693
8985
  withDebugOptions(
8694
8986
  withProjectOptions(
8695
- yargs44.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8987
+ yargs45.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
8696
8988
  )
8697
8989
  )
8698
8990
  )
@@ -8713,11 +9005,11 @@ var PreviewUrlUpdateModule = {
8713
9005
  command: "update <filename>",
8714
9006
  aliases: ["put"],
8715
9007
  describe: "Insert or update a preview URL",
8716
- builder: (yargs44) => withConfiguration(
9008
+ builder: (yargs45) => withConfiguration(
8717
9009
  withDebugOptions(
8718
9010
  withApiOptions(
8719
9011
  withProjectOptions(
8720
- yargs44.positional("filename", { demandOption: true, describe: "Category file to put" })
9012
+ yargs45.positional("filename", { demandOption: true, describe: "Category file to put" })
8721
9013
  )
8722
9014
  )
8723
9015
  )
@@ -8739,25 +9031,25 @@ var PreviewUrlModule = {
8739
9031
  command: "preview-url <command>",
8740
9032
  aliases: ["pu"],
8741
9033
  describe: "Commands for Canvas preview urls",
8742
- builder: (yargs44) => yargs44.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
9034
+ builder: (yargs45) => yargs45.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
8743
9035
  handler: () => {
8744
- yargs18.help();
9036
+ yargs19.help();
8745
9037
  }
8746
9038
  };
8747
9039
 
8748
9040
  // src/commands/canvas/commands/previewViewport.ts
8749
- import yargs19 from "yargs";
9041
+ import yargs20 from "yargs";
8750
9042
 
8751
9043
  // src/commands/canvas/commands/previewViewport/get.ts
8752
9044
  var PreviewViewportGetModule = {
8753
9045
  command: "get <id>",
8754
9046
  describe: "Fetch a preview viewport",
8755
- builder: (yargs44) => withConfiguration(
9047
+ builder: (yargs45) => withConfiguration(
8756
9048
  withFormatOptions(
8757
9049
  withDebugOptions(
8758
9050
  withApiOptions(
8759
9051
  withProjectOptions(
8760
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
9052
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
8761
9053
  )
8762
9054
  )
8763
9055
  )
@@ -8781,8 +9073,8 @@ var PreviewViewportListModule = {
8781
9073
  command: "list",
8782
9074
  describe: "List preview viewports",
8783
9075
  aliases: ["ls"],
8784
- builder: (yargs44) => withConfiguration(
8785
- withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs44.options({})))))
9076
+ builder: (yargs45) => withConfiguration(
9077
+ withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs45.options({})))))
8786
9078
  ),
8787
9079
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
8788
9080
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8793,8 +9085,8 @@ var PreviewViewportListModule = {
8793
9085
  };
8794
9086
 
8795
9087
  // src/commands/canvas/commands/previewViewport/_util.ts
8796
- var selectIdentifier6 = (previewViewport) => previewViewport.id;
8797
- var selectDisplayName6 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
9088
+ var selectIdentifier7 = (previewViewport) => previewViewport.id;
9089
+ var selectDisplayName7 = (previewViewport) => `${previewViewport.name} (pid: ${previewViewport.id})`;
8798
9090
 
8799
9091
  // src/commands/canvas/previewViewportEngineDataSource.ts
8800
9092
  function createPreviewViewportEngineDataSource({
@@ -8804,8 +9096,8 @@ function createPreviewViewportEngineDataSource({
8804
9096
  const previewViewports = (await client.getPreviewViewports()).previewViewports;
8805
9097
  for await (const previewViewport of previewViewports) {
8806
9098
  const result = {
8807
- id: selectIdentifier6(previewViewport),
8808
- displayName: selectDisplayName6(previewViewport),
9099
+ id: selectIdentifier7(previewViewport),
9100
+ displayName: selectDisplayName7(previewViewport),
8809
9101
  providerId: previewViewport.id,
8810
9102
  object: previewViewport
8811
9103
  };
@@ -8828,12 +9120,12 @@ function createPreviewViewportEngineDataSource({
8828
9120
  var PreviewViewportPullModule = {
8829
9121
  command: "pull <directory>",
8830
9122
  describe: "Pulls all preview viewports to local files in a directory",
8831
- builder: (yargs44) => withConfiguration(
9123
+ builder: (yargs45) => withConfiguration(
8832
9124
  withApiOptions(
8833
9125
  withProjectOptions(
8834
9126
  withDebugOptions(
8835
9127
  withDiffOptions(
8836
- yargs44.positional("directory", {
9128
+ yargs45.positional("directory", {
8837
9129
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
8838
9130
  type: "string"
8839
9131
  }).option("format", {
@@ -8877,8 +9169,8 @@ var PreviewViewportPullModule = {
8877
9169
  target = await createArraySyncEngineDataSource({
8878
9170
  name: `Package file ${directory}`,
8879
9171
  objects: packageContents.previewViewports ?? [],
8880
- selectIdentifier: selectIdentifier6,
8881
- selectDisplayName: selectDisplayName6,
9172
+ selectIdentifier: selectIdentifier7,
9173
+ selectDisplayName: selectDisplayName7,
8882
9174
  onSyncComplete: async (_, synced) => {
8883
9175
  packageContents.previewViewports = synced;
8884
9176
  writeCanvasPackage(directory, packageContents);
@@ -8887,8 +9179,8 @@ var PreviewViewportPullModule = {
8887
9179
  } else {
8888
9180
  target = await createFileSyncEngineDataSource({
8889
9181
  directory,
8890
- selectIdentifier: selectIdentifier6,
8891
- selectDisplayName: selectDisplayName6,
9182
+ selectIdentifier: selectIdentifier7,
9183
+ selectDisplayName: selectDisplayName7,
8892
9184
  format,
8893
9185
  verbose
8894
9186
  });
@@ -8908,12 +9200,12 @@ var PreviewViewportPullModule = {
8908
9200
  var PreviewViewportPushModule = {
8909
9201
  command: "push <directory>",
8910
9202
  describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
8911
- builder: (yargs44) => withConfiguration(
9203
+ builder: (yargs45) => withConfiguration(
8912
9204
  withApiOptions(
8913
9205
  withProjectOptions(
8914
9206
  withDiffOptions(
8915
9207
  withDebugOptions(
8916
- yargs44.positional("directory", {
9208
+ yargs45.positional("directory", {
8917
9209
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
8918
9210
  type: "string"
8919
9211
  }).option("mode", {
@@ -8949,14 +9241,14 @@ var PreviewViewportPushModule = {
8949
9241
  source = await createArraySyncEngineDataSource({
8950
9242
  name: `Package file ${directory}`,
8951
9243
  objects: packageContents.previewViewports ?? [],
8952
- selectIdentifier: selectIdentifier6,
8953
- selectDisplayName: selectDisplayName6
9244
+ selectIdentifier: selectIdentifier7,
9245
+ selectDisplayName: selectDisplayName7
8954
9246
  });
8955
9247
  } else {
8956
9248
  source = await createFileSyncEngineDataSource({
8957
9249
  directory,
8958
- selectIdentifier: selectIdentifier6,
8959
- selectDisplayName: selectDisplayName6,
9250
+ selectIdentifier: selectIdentifier7,
9251
+ selectDisplayName: selectDisplayName7,
8960
9252
  verbose
8961
9253
  });
8962
9254
  }
@@ -8977,11 +9269,11 @@ var PreviewViewportRemoveModule = {
8977
9269
  command: "remove <id>",
8978
9270
  aliases: ["delete", "rm"],
8979
9271
  describe: "Delete a preview viewport",
8980
- builder: (yargs44) => withConfiguration(
9272
+ builder: (yargs45) => withConfiguration(
8981
9273
  withApiOptions(
8982
9274
  withDebugOptions(
8983
9275
  withProjectOptions(
8984
- yargs44.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
9276
+ yargs45.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
8985
9277
  )
8986
9278
  )
8987
9279
  )
@@ -9002,11 +9294,11 @@ var PreviewViewportUpdateModule = {
9002
9294
  command: "update <filename>",
9003
9295
  aliases: ["put"],
9004
9296
  describe: "Insert or update a preview viewport",
9005
- builder: (yargs44) => withConfiguration(
9297
+ builder: (yargs45) => withConfiguration(
9006
9298
  withDebugOptions(
9007
9299
  withApiOptions(
9008
9300
  withProjectOptions(
9009
- yargs44.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9301
+ yargs45.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
9010
9302
  )
9011
9303
  )
9012
9304
  )
@@ -9028,14 +9320,14 @@ var PreviewViewportModule = {
9028
9320
  command: "preview-viewport <command>",
9029
9321
  aliases: ["pv"],
9030
9322
  describe: "Commands for Canvas preview viewports",
9031
- builder: (yargs44) => yargs44.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9323
+ builder: (yargs45) => yargs45.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
9032
9324
  handler: () => {
9033
- yargs19.help();
9325
+ yargs20.help();
9034
9326
  }
9035
9327
  };
9036
9328
 
9037
9329
  // src/commands/canvas/commands/prompts.ts
9038
- import yargs20 from "yargs";
9330
+ import yargs21 from "yargs";
9039
9331
 
9040
9332
  // src/commands/canvas/commands/prompts/_util.ts
9041
9333
  import { PromptClient } from "@uniformdev/canvas";
@@ -9047,12 +9339,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
9047
9339
  var PromptGetModule = {
9048
9340
  command: "get <id>",
9049
9341
  describe: "Get a prompt",
9050
- builder: (yargs44) => withConfiguration(
9342
+ builder: (yargs45) => withConfiguration(
9051
9343
  withDebugOptions(
9052
9344
  withFormatOptions(
9053
9345
  withApiOptions(
9054
9346
  withProjectOptions(
9055
- yargs44.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9347
+ yargs45.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
9056
9348
  )
9057
9349
  )
9058
9350
  )
@@ -9073,7 +9365,7 @@ var PromptGetModule = {
9073
9365
  var PromptListModule = {
9074
9366
  command: "list",
9075
9367
  describe: "List prompts",
9076
- builder: (yargs44) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs44))))),
9368
+ builder: (yargs45) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs45))))),
9077
9369
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
9078
9370
  const fetch2 = nodeFetchProxy(proxy, verbose);
9079
9371
  const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9114,13 +9406,13 @@ function createPromptEngineDataSource({
9114
9406
  var PromptPullModule = {
9115
9407
  command: "pull <directory>",
9116
9408
  describe: "Pulls all prompts to local files in a directory",
9117
- builder: (yargs44) => withConfiguration(
9409
+ builder: (yargs45) => withConfiguration(
9118
9410
  withDebugOptions(
9119
9411
  withApiOptions(
9120
9412
  withProjectOptions(
9121
9413
  withStateOptions(
9122
9414
  withDiffOptions(
9123
- yargs44.positional("directory", {
9415
+ yargs45.positional("directory", {
9124
9416
  describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9125
9417
  type: "string"
9126
9418
  }).option("format", {
@@ -9201,12 +9493,12 @@ var PromptPullModule = {
9201
9493
  var PromptPushModule = {
9202
9494
  command: "push <directory>",
9203
9495
  describe: "Pushes all prompts from files in a directory to Uniform",
9204
- builder: (yargs44) => withConfiguration(
9496
+ builder: (yargs45) => withConfiguration(
9205
9497
  withApiOptions(
9206
9498
  withProjectOptions(
9207
9499
  withStateOptions(
9208
9500
  withDiffOptions(
9209
- yargs44.positional("directory", {
9501
+ yargs45.positional("directory", {
9210
9502
  describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
9211
9503
  type: "string"
9212
9504
  }).option("mode", {
@@ -9275,10 +9567,10 @@ var PromptRemoveModule = {
9275
9567
  command: "remove <id>",
9276
9568
  aliases: ["delete", "rm"],
9277
9569
  describe: "Delete a prompt",
9278
- builder: (yargs44) => withConfiguration(
9570
+ builder: (yargs45) => withConfiguration(
9279
9571
  withDebugOptions(
9280
9572
  withApiOptions(
9281
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9573
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
9282
9574
  )
9283
9575
  )
9284
9576
  ),
@@ -9298,11 +9590,11 @@ var PromptUpdateModule = {
9298
9590
  command: "update <filename>",
9299
9591
  aliases: ["put"],
9300
9592
  describe: "Insert or update a prompt",
9301
- builder: (yargs44) => withConfiguration(
9593
+ builder: (yargs45) => withConfiguration(
9302
9594
  withDebugOptions(
9303
9595
  withApiOptions(
9304
9596
  withProjectOptions(
9305
- yargs44.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9597
+ yargs45.positional("filename", { demandOption: true, describe: "Prompt file to put" })
9306
9598
  )
9307
9599
  )
9308
9600
  )
@@ -9323,19 +9615,19 @@ var PromptUpdateModule = {
9323
9615
  var PromptModule = {
9324
9616
  command: "prompt <command>",
9325
9617
  describe: "Commands for AI Prompt definitions",
9326
- builder: (yargs44) => yargs44.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9618
+ builder: (yargs45) => yargs45.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
9327
9619
  handler: () => {
9328
- yargs20.help();
9620
+ yargs21.help();
9329
9621
  }
9330
9622
  };
9331
9623
 
9332
9624
  // src/commands/canvas/commands/workflow.ts
9333
- import yargs21 from "yargs";
9625
+ import yargs22 from "yargs";
9334
9626
 
9335
9627
  // src/commands/canvas/commands/workflow/_util.ts
9336
9628
  import { WorkflowClient } from "@uniformdev/canvas";
9337
- var selectIdentifier7 = (workflow) => workflow.id;
9338
- var selectDisplayName7 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9629
+ var selectIdentifier8 = (workflow) => workflow.id;
9630
+ var selectDisplayName8 = (workflow) => `${workflow.name} (pid: ${workflow.id})`;
9339
9631
  var getWorkflowClient = (options) => new WorkflowClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9340
9632
 
9341
9633
  // src/commands/canvas/workflowEngineDataSource.ts
@@ -9353,8 +9645,8 @@ function createWorkflowEngineDataSource({
9353
9645
  for await (const workflow of workflows) {
9354
9646
  const { modified, modifiedBy, created, createdBy, ...workflowWithoutStatistics } = workflow;
9355
9647
  const result = {
9356
- id: selectIdentifier7(workflow),
9357
- displayName: selectDisplayName7(workflow),
9648
+ id: selectIdentifier8(workflow),
9649
+ displayName: selectDisplayName8(workflow),
9358
9650
  providerId: workflow.id,
9359
9651
  object: workflowWithoutStatistics
9360
9652
  };
@@ -9377,13 +9669,13 @@ function createWorkflowEngineDataSource({
9377
9669
  var WorkflowPullModule = {
9378
9670
  command: "pull <directory>",
9379
9671
  describe: "Pulls all workflows to local files in a directory",
9380
- builder: (yargs44) => withConfiguration(
9672
+ builder: (yargs45) => withConfiguration(
9381
9673
  withApiOptions(
9382
9674
  withDebugOptions(
9383
9675
  withProjectOptions(
9384
9676
  withDiffOptions(
9385
9677
  withBatchSizeOptions(
9386
- yargs44.positional("directory", {
9678
+ yargs45.positional("directory", {
9387
9679
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9388
9680
  type: "string"
9389
9681
  }).option("format", {
@@ -9434,8 +9726,8 @@ var WorkflowPullModule = {
9434
9726
  target = await createArraySyncEngineDataSource({
9435
9727
  name: `Package file ${directory}`,
9436
9728
  objects: packageContents.workflows ?? [],
9437
- selectIdentifier: selectIdentifier7,
9438
- selectDisplayName: selectDisplayName7,
9729
+ selectIdentifier: selectIdentifier8,
9730
+ selectDisplayName: selectDisplayName8,
9439
9731
  onSyncComplete: async (_, synced) => {
9440
9732
  packageContents.workflows = synced;
9441
9733
  writeCanvasPackage(directory, packageContents);
@@ -9444,8 +9736,8 @@ var WorkflowPullModule = {
9444
9736
  } else {
9445
9737
  target = await createFileSyncEngineDataSource({
9446
9738
  directory,
9447
- selectIdentifier: selectIdentifier7,
9448
- selectDisplayName: selectDisplayName7,
9739
+ selectIdentifier: selectIdentifier8,
9740
+ selectDisplayName: selectDisplayName8,
9449
9741
  format,
9450
9742
  verbose
9451
9743
  });
@@ -9465,13 +9757,13 @@ var WorkflowPullModule = {
9465
9757
  var WorkflowPushModule = {
9466
9758
  command: "push <directory>",
9467
9759
  describe: "Pushes all workflows from files in a directory to Uniform Canvas",
9468
- builder: (yargs44) => withConfiguration(
9760
+ builder: (yargs45) => withConfiguration(
9469
9761
  withDebugOptions(
9470
9762
  withApiOptions(
9471
9763
  withProjectOptions(
9472
9764
  withDiffOptions(
9473
9765
  withBatchSizeOptions(
9474
- yargs44.positional("directory", {
9766
+ yargs45.positional("directory", {
9475
9767
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
9476
9768
  type: "string"
9477
9769
  }).option("mode", {
@@ -9510,14 +9802,14 @@ var WorkflowPushModule = {
9510
9802
  source = await createArraySyncEngineDataSource({
9511
9803
  name: `Package file ${directory}`,
9512
9804
  objects: packageContents.workflows ?? [],
9513
- selectIdentifier: selectIdentifier7,
9514
- selectDisplayName: selectDisplayName7
9805
+ selectIdentifier: selectIdentifier8,
9806
+ selectDisplayName: selectDisplayName8
9515
9807
  });
9516
9808
  } else {
9517
9809
  source = await createFileSyncEngineDataSource({
9518
9810
  directory,
9519
- selectIdentifier: selectIdentifier7,
9520
- selectDisplayName: selectDisplayName7,
9811
+ selectIdentifier: selectIdentifier8,
9812
+ selectDisplayName: selectDisplayName8,
9521
9813
  verbose
9522
9814
  });
9523
9815
  }
@@ -9542,9 +9834,9 @@ var WorkflowModule = {
9542
9834
  command: "workflow <command>",
9543
9835
  aliases: ["wf"],
9544
9836
  describe: "Commands for Canvas workflows",
9545
- builder: (yargs44) => yargs44.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9837
+ builder: (yargs45) => yargs45.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
9546
9838
  handler: () => {
9547
- yargs21.help();
9839
+ yargs22.help();
9548
9840
  }
9549
9841
  };
9550
9842
 
@@ -9553,33 +9845,33 @@ var CanvasCommand = {
9553
9845
  command: "canvas <command>",
9554
9846
  aliases: ["cv", "pm", "presentation"],
9555
9847
  describe: "Uniform Canvas commands",
9556
- builder: (yargs44) => yargs44.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LabelModule).command(LocaleModule).command(WorkflowModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
9848
+ builder: (yargs45) => yargs45.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LabelModule).command(LocaleModule).command(WorkflowModule).command(CustomViewModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
9557
9849
  handler: () => {
9558
- yargs22.showHelp();
9850
+ yargs23.showHelp();
9559
9851
  }
9560
9852
  };
9561
9853
 
9562
9854
  // src/commands/context/index.ts
9563
- import yargs29 from "yargs";
9855
+ import yargs30 from "yargs";
9564
9856
 
9565
9857
  // src/commands/context/commands/aggregate.ts
9566
- import yargs23 from "yargs";
9858
+ import yargs24 from "yargs";
9567
9859
 
9568
9860
  // src/commands/context/commands/aggregate/_util.ts
9569
9861
  import { AggregateClient } from "@uniformdev/context/api";
9570
- var selectIdentifier8 = (source) => source.id;
9571
- var selectDisplayName8 = (source) => `${source.name} (pid: ${source.id})`;
9862
+ var selectIdentifier9 = (source) => source.id;
9863
+ var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
9572
9864
  var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
9573
9865
 
9574
9866
  // src/commands/context/commands/aggregate/get.ts
9575
9867
  var AggregateGetModule = {
9576
9868
  command: "get <id>",
9577
9869
  describe: "Fetch an aggregate",
9578
- builder: (yargs44) => withConfiguration(
9870
+ builder: (yargs45) => withConfiguration(
9579
9871
  withFormatOptions(
9580
9872
  withApiOptions(
9581
9873
  withProjectOptions(
9582
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9874
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
9583
9875
  )
9584
9876
  )
9585
9877
  )
@@ -9602,7 +9894,7 @@ var AggregateListModule = {
9602
9894
  command: "list",
9603
9895
  describe: "List aggregates",
9604
9896
  aliases: ["ls"],
9605
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
9897
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9606
9898
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9607
9899
  const fetch2 = nodeFetchProxy(proxy);
9608
9900
  const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9620,8 +9912,8 @@ function createAggregateEngineDataSource({
9620
9912
  const aggregates = (await client.get({ type })).aggregates;
9621
9913
  for await (const def of aggregates) {
9622
9914
  const result = {
9623
- id: selectIdentifier8(def),
9624
- displayName: selectDisplayName8(def),
9915
+ id: selectIdentifier9(def),
9916
+ displayName: selectDisplayName9(def),
9625
9917
  providerId: def.id,
9626
9918
  object: def
9627
9919
  };
@@ -9665,12 +9957,12 @@ function writeContextPackage(filename, packageContents) {
9665
9957
  var AggregatePullModule = {
9666
9958
  command: "pull <directory>",
9667
9959
  describe: "Pulls all aggregates to local files in a directory",
9668
- builder: (yargs44) => withConfiguration(
9960
+ builder: (yargs45) => withConfiguration(
9669
9961
  withApiOptions(
9670
9962
  withDebugOptions(
9671
9963
  withProjectOptions(
9672
9964
  withDiffOptions(
9673
- yargs44.positional("directory", {
9965
+ yargs45.positional("directory", {
9674
9966
  describe: "Directory to save the aggregates to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
9675
9967
  type: "string"
9676
9968
  }).option("format", {
@@ -9714,8 +10006,8 @@ var AggregatePullModule = {
9714
10006
  target = await createArraySyncEngineDataSource({
9715
10007
  name: `Package file ${directory}`,
9716
10008
  objects: packageContents.aggregates ?? [],
9717
- selectIdentifier: selectIdentifier8,
9718
- selectDisplayName: selectDisplayName8,
10009
+ selectIdentifier: selectIdentifier9,
10010
+ selectDisplayName: selectDisplayName9,
9719
10011
  onSyncComplete: async (_, synced) => {
9720
10012
  packageContents.aggregates = synced;
9721
10013
  writeContextPackage(directory, packageContents);
@@ -9724,8 +10016,8 @@ var AggregatePullModule = {
9724
10016
  } else {
9725
10017
  target = await createFileSyncEngineDataSource({
9726
10018
  directory,
9727
- selectIdentifier: selectIdentifier8,
9728
- selectDisplayName: selectDisplayName8,
10019
+ selectIdentifier: selectIdentifier9,
10020
+ selectDisplayName: selectDisplayName9,
9729
10021
  format,
9730
10022
  verbose
9731
10023
  });
@@ -9745,12 +10037,12 @@ var AggregatePullModule = {
9745
10037
  var AggregatePushModule = {
9746
10038
  command: "push <directory>",
9747
10039
  describe: "Pushes all aggregates from files in a directory or package to Uniform",
9748
- builder: (yargs44) => withConfiguration(
10040
+ builder: (yargs45) => withConfiguration(
9749
10041
  withApiOptions(
9750
10042
  withProjectOptions(
9751
10043
  withDiffOptions(
9752
10044
  withDebugOptions(
9753
- yargs44.positional("directory", {
10045
+ yargs45.positional("directory", {
9754
10046
  describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
9755
10047
  type: "string"
9756
10048
  }).option("mode", {
@@ -9786,14 +10078,14 @@ var AggregatePushModule = {
9786
10078
  source = await createArraySyncEngineDataSource({
9787
10079
  name: `Package file ${directory}`,
9788
10080
  objects: packageContents.aggregates ?? [],
9789
- selectIdentifier: selectIdentifier8,
9790
- selectDisplayName: selectDisplayName8
10081
+ selectIdentifier: selectIdentifier9,
10082
+ selectDisplayName: selectDisplayName9
9791
10083
  });
9792
10084
  } else {
9793
10085
  source = await createFileSyncEngineDataSource({
9794
10086
  directory,
9795
- selectIdentifier: selectIdentifier8,
9796
- selectDisplayName: selectDisplayName8,
10087
+ selectIdentifier: selectIdentifier9,
10088
+ selectDisplayName: selectDisplayName9,
9797
10089
  verbose
9798
10090
  });
9799
10091
  }
@@ -9815,10 +10107,10 @@ var AggregateRemoveModule = {
9815
10107
  command: "remove <id>",
9816
10108
  aliases: ["delete", "rm"],
9817
10109
  describe: "Delete an aggregate",
9818
- builder: (yargs44) => withConfiguration(
10110
+ builder: (yargs45) => withConfiguration(
9819
10111
  withApiOptions(
9820
10112
  withProjectOptions(
9821
- yargs44.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
10113
+ yargs45.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
9822
10114
  )
9823
10115
  )
9824
10116
  ),
@@ -9834,10 +10126,10 @@ var AggregateUpdateModule = {
9834
10126
  command: "update <filename>",
9835
10127
  aliases: ["put"],
9836
10128
  describe: "Insert or update an aggregate",
9837
- builder: (yargs44) => withConfiguration(
10129
+ builder: (yargs45) => withConfiguration(
9838
10130
  withApiOptions(
9839
10131
  withProjectOptions(
9840
- yargs44.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
10132
+ yargs45.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
9841
10133
  )
9842
10134
  )
9843
10135
  ),
@@ -9854,19 +10146,19 @@ var AggregateModule = {
9854
10146
  command: "aggregate <command>",
9855
10147
  aliases: ["agg", "intent", "audience"],
9856
10148
  describe: "Commands for Context aggregates (intents, audiences)",
9857
- builder: (yargs44) => yargs44.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
10149
+ builder: (yargs45) => yargs45.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
9858
10150
  handler: () => {
9859
- yargs23.help();
10151
+ yargs24.help();
9860
10152
  }
9861
10153
  };
9862
10154
 
9863
10155
  // src/commands/context/commands/enrichment.ts
9864
- import yargs24 from "yargs";
10156
+ import yargs25 from "yargs";
9865
10157
 
9866
10158
  // src/commands/context/commands/enrichment/_util.ts
9867
10159
  import { EnrichmentClient } from "@uniformdev/context/api";
9868
- var selectIdentifier9 = (source) => source.id;
9869
- var selectDisplayName9 = (source) => `${source.name} (pid: ${source.id})`;
10160
+ var selectIdentifier10 = (source) => source.id;
10161
+ var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
9870
10162
  function getEnrichmentClient(options) {
9871
10163
  return new EnrichmentClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
9872
10164
  }
@@ -9875,11 +10167,11 @@ function getEnrichmentClient(options) {
9875
10167
  var EnrichmentGetModule = {
9876
10168
  command: "get <id>",
9877
10169
  describe: "Fetch an enrichment category and its values",
9878
- builder: (yargs44) => withFormatOptions(
10170
+ builder: (yargs45) => withFormatOptions(
9879
10171
  withConfiguration(
9880
10172
  withApiOptions(
9881
10173
  withProjectOptions(
9882
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
10174
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
9883
10175
  )
9884
10176
  )
9885
10177
  )
@@ -9902,7 +10194,7 @@ var EnrichmentListModule = {
9902
10194
  command: "list",
9903
10195
  describe: "List enrichments",
9904
10196
  aliases: ["ls"],
9905
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10197
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
9906
10198
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
9907
10199
  const fetch2 = nodeFetchProxy(proxy);
9908
10200
  const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -9919,8 +10211,8 @@ function createEnrichmentEngineDataSource({
9919
10211
  const enrichments = (await client.get()).enrichments;
9920
10212
  for await (const def of enrichments) {
9921
10213
  const result = {
9922
- id: selectIdentifier9(def),
9923
- displayName: selectDisplayName9(def),
10214
+ id: selectIdentifier10(def),
10215
+ displayName: selectDisplayName10(def),
9924
10216
  providerId: def.id,
9925
10217
  object: def
9926
10218
  };
@@ -9997,12 +10289,12 @@ var createEnrichmentValueEngineDataSource = ({
9997
10289
  var EnrichmentPullModule = {
9998
10290
  command: "pull <directory>",
9999
10291
  describe: "Pulls all enrichments to local files in a directory",
10000
- builder: (yargs44) => withConfiguration(
10292
+ builder: (yargs45) => withConfiguration(
10001
10293
  withDebugOptions(
10002
10294
  withApiOptions(
10003
10295
  withProjectOptions(
10004
10296
  withDiffOptions(
10005
- yargs44.positional("directory", {
10297
+ yargs45.positional("directory", {
10006
10298
  describe: "Directory to save the enrichments to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10007
10299
  type: "string"
10008
10300
  }).option("format", {
@@ -10046,8 +10338,8 @@ var EnrichmentPullModule = {
10046
10338
  target = await createArraySyncEngineDataSource({
10047
10339
  name: `Package file ${directory}`,
10048
10340
  objects: packageContents.enrichments ?? [],
10049
- selectIdentifier: selectIdentifier9,
10050
- selectDisplayName: selectDisplayName9,
10341
+ selectIdentifier: selectIdentifier10,
10342
+ selectDisplayName: selectDisplayName10,
10051
10343
  onSyncComplete: async (_, synced) => {
10052
10344
  packageContents.enrichments = synced;
10053
10345
  writeContextPackage(directory, packageContents);
@@ -10056,8 +10348,8 @@ var EnrichmentPullModule = {
10056
10348
  } else {
10057
10349
  target = await createFileSyncEngineDataSource({
10058
10350
  directory,
10059
- selectIdentifier: selectIdentifier9,
10060
- selectDisplayName: selectDisplayName9,
10351
+ selectIdentifier: selectIdentifier10,
10352
+ selectDisplayName: selectDisplayName10,
10061
10353
  format,
10062
10354
  verbose
10063
10355
  });
@@ -10077,11 +10369,11 @@ var EnrichmentPullModule = {
10077
10369
  var EnrichmentPushModule = {
10078
10370
  command: "push <directory>",
10079
10371
  describe: "Pushes all enrichments from files in a directory or package to Uniform",
10080
- builder: (yargs44) => withConfiguration(
10372
+ builder: (yargs45) => withConfiguration(
10081
10373
  withApiOptions(
10082
10374
  withProjectOptions(
10083
10375
  withDiffOptions(
10084
- yargs44.positional("directory", {
10376
+ yargs45.positional("directory", {
10085
10377
  describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
10086
10378
  type: "string"
10087
10379
  }).option("mode", {
@@ -10116,14 +10408,14 @@ var EnrichmentPushModule = {
10116
10408
  source = await createArraySyncEngineDataSource({
10117
10409
  name: `Package file ${directory}`,
10118
10410
  objects: packageContents.enrichments ?? [],
10119
- selectIdentifier: selectIdentifier9,
10120
- selectDisplayName: selectDisplayName9
10411
+ selectIdentifier: selectIdentifier10,
10412
+ selectDisplayName: selectDisplayName10
10121
10413
  });
10122
10414
  } else {
10123
10415
  source = await createFileSyncEngineDataSource({
10124
10416
  directory,
10125
- selectIdentifier: selectIdentifier9,
10126
- selectDisplayName: selectDisplayName9,
10417
+ selectIdentifier: selectIdentifier10,
10418
+ selectDisplayName: selectDisplayName10,
10127
10419
  verbose
10128
10420
  });
10129
10421
  }
@@ -10144,10 +10436,10 @@ var EnrichmentRemoveModule = {
10144
10436
  command: "remove <id>",
10145
10437
  aliases: ["delete", "rm"],
10146
10438
  describe: "Delete an enrichment category and its values",
10147
- builder: (yargs44) => withConfiguration(
10439
+ builder: (yargs45) => withConfiguration(
10148
10440
  withApiOptions(
10149
10441
  withProjectOptions(
10150
- yargs44.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10442
+ yargs45.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
10151
10443
  )
10152
10444
  )
10153
10445
  ),
@@ -10163,14 +10455,14 @@ var EnrichmentModule = {
10163
10455
  command: "enrichment <command>",
10164
10456
  aliases: ["enr"],
10165
10457
  describe: "Commands for Context enrichments",
10166
- builder: (yargs44) => yargs44.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10458
+ builder: (yargs45) => yargs45.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
10167
10459
  handler: () => {
10168
- yargs24.help();
10460
+ yargs25.help();
10169
10461
  }
10170
10462
  };
10171
10463
 
10172
10464
  // src/commands/context/commands/manifest.ts
10173
- import yargs25 from "yargs";
10465
+ import yargs26 from "yargs";
10174
10466
 
10175
10467
  // src/commands/context/commands/manifest/get.ts
10176
10468
  import { ApiClientError as ApiClientError5, ManifestClient } from "@uniformdev/context/api";
@@ -10181,10 +10473,10 @@ var ManifestGetModule = {
10181
10473
  command: "get [output]",
10182
10474
  aliases: ["dl", "download"],
10183
10475
  describe: "Download the Uniform Context manifest for a project",
10184
- builder: (yargs44) => withConfiguration(
10476
+ builder: (yargs45) => withConfiguration(
10185
10477
  withApiOptions(
10186
10478
  withProjectOptions(
10187
- yargs44.option("preview", {
10479
+ yargs45.option("preview", {
10188
10480
  describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
10189
10481
  default: false,
10190
10482
  type: "boolean",
@@ -10247,7 +10539,7 @@ import { exit as exit2 } from "process";
10247
10539
  var ManifestPublishModule = {
10248
10540
  command: "publish",
10249
10541
  describe: "Publish the Uniform Context manifest for a project",
10250
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(yargs44))),
10542
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(yargs45))),
10251
10543
  handler: async ({ apiKey, apiHost, proxy, project }) => {
10252
10544
  const fetch2 = nodeFetchProxy(proxy);
10253
10545
  try {
@@ -10281,25 +10573,25 @@ var ManifestModule = {
10281
10573
  command: "manifest <command>",
10282
10574
  describe: "Commands for context manifests",
10283
10575
  aliases: ["man"],
10284
- builder: (yargs44) => yargs44.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10576
+ builder: (yargs45) => yargs45.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
10285
10577
  handler: () => {
10286
- yargs25.help();
10578
+ yargs26.help();
10287
10579
  }
10288
10580
  };
10289
10581
 
10290
10582
  // src/commands/context/commands/quirk.ts
10291
- import yargs26 from "yargs";
10583
+ import yargs27 from "yargs";
10292
10584
 
10293
10585
  // src/commands/context/commands/quirk/get.ts
10294
10586
  import { QuirkClient } from "@uniformdev/context/api";
10295
10587
  var QuirkGetModule = {
10296
10588
  command: "get <id>",
10297
10589
  describe: "Fetch a quirk",
10298
- builder: (yargs44) => withConfiguration(
10590
+ builder: (yargs45) => withConfiguration(
10299
10591
  withFormatOptions(
10300
10592
  withApiOptions(
10301
10593
  withProjectOptions(
10302
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10594
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
10303
10595
  )
10304
10596
  )
10305
10597
  )
@@ -10323,11 +10615,11 @@ var QuirkListModule = {
10323
10615
  command: "list",
10324
10616
  describe: "List quirks",
10325
10617
  aliases: ["ls"],
10326
- builder: (yargs44) => withConfiguration(
10618
+ builder: (yargs45) => withConfiguration(
10327
10619
  withFormatOptions(
10328
10620
  withApiOptions(
10329
10621
  withProjectOptions(
10330
- yargs44.option("withIntegrations", {
10622
+ yargs45.option("withIntegrations", {
10331
10623
  alias: ["i"],
10332
10624
  describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
10333
10625
  type: "boolean"
@@ -10348,8 +10640,8 @@ var QuirkListModule = {
10348
10640
  import { QuirkClient as QuirkClient3 } from "@uniformdev/context/api";
10349
10641
 
10350
10642
  // src/commands/context/commands/quirk/_util.ts
10351
- var selectIdentifier10 = (source) => source.id;
10352
- var selectDisplayName10 = (source) => `${source.name} (pid: ${source.id})`;
10643
+ var selectIdentifier11 = (source) => source.id;
10644
+ var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10353
10645
 
10354
10646
  // src/commands/context/quirkEngineDataSource.ts
10355
10647
  function createQuirkEngineDataSource({
@@ -10359,8 +10651,8 @@ function createQuirkEngineDataSource({
10359
10651
  const quirks = (await client.get({ withIntegrations: false })).quirks;
10360
10652
  for await (const def of quirks) {
10361
10653
  const result = {
10362
- id: selectIdentifier10(def),
10363
- displayName: selectDisplayName10(def),
10654
+ id: selectIdentifier11(def),
10655
+ displayName: selectDisplayName11(def),
10364
10656
  providerId: def.id,
10365
10657
  object: def
10366
10658
  };
@@ -10385,12 +10677,12 @@ function createQuirkEngineDataSource({
10385
10677
  var QuirkPullModule = {
10386
10678
  command: "pull <directory>",
10387
10679
  describe: "Pulls all quirks to local files in a directory",
10388
- builder: (yargs44) => withConfiguration(
10680
+ builder: (yargs45) => withConfiguration(
10389
10681
  withDebugOptions(
10390
10682
  withApiOptions(
10391
10683
  withProjectOptions(
10392
10684
  withDiffOptions(
10393
- yargs44.positional("directory", {
10685
+ yargs45.positional("directory", {
10394
10686
  describe: "Directory to save the quirks to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10395
10687
  type: "string"
10396
10688
  }).option("format", {
@@ -10434,8 +10726,8 @@ var QuirkPullModule = {
10434
10726
  target = await createArraySyncEngineDataSource({
10435
10727
  name: `Package file ${directory}`,
10436
10728
  objects: packageContents.quirks ?? [],
10437
- selectIdentifier: selectIdentifier10,
10438
- selectDisplayName: selectDisplayName10,
10729
+ selectIdentifier: selectIdentifier11,
10730
+ selectDisplayName: selectDisplayName11,
10439
10731
  onSyncComplete: async (_, synced) => {
10440
10732
  packageContents.quirks = synced;
10441
10733
  writeContextPackage(directory, packageContents);
@@ -10444,8 +10736,8 @@ var QuirkPullModule = {
10444
10736
  } else {
10445
10737
  target = await createFileSyncEngineDataSource({
10446
10738
  directory,
10447
- selectIdentifier: selectIdentifier10,
10448
- selectDisplayName: selectDisplayName10,
10739
+ selectIdentifier: selectIdentifier11,
10740
+ selectDisplayName: selectDisplayName11,
10449
10741
  format,
10450
10742
  verbose
10451
10743
  });
@@ -10466,12 +10758,12 @@ import { QuirkClient as QuirkClient4 } from "@uniformdev/context/api";
10466
10758
  var QuirkPushModule = {
10467
10759
  command: "push <directory>",
10468
10760
  describe: "Pushes all quirks from files in a directory or package to Uniform",
10469
- builder: (yargs44) => withConfiguration(
10761
+ builder: (yargs45) => withConfiguration(
10470
10762
  withDebugOptions(
10471
10763
  withApiOptions(
10472
10764
  withProjectOptions(
10473
10765
  withDiffOptions(
10474
- yargs44.positional("directory", {
10766
+ yargs45.positional("directory", {
10475
10767
  describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
10476
10768
  type: "string"
10477
10769
  }).option("mode", {
@@ -10507,14 +10799,14 @@ var QuirkPushModule = {
10507
10799
  source = await createArraySyncEngineDataSource({
10508
10800
  name: `Package file ${directory}`,
10509
10801
  objects: packageContents.quirks ?? [],
10510
- selectIdentifier: selectIdentifier10,
10511
- selectDisplayName: selectDisplayName10
10802
+ selectIdentifier: selectIdentifier11,
10803
+ selectDisplayName: selectDisplayName11
10512
10804
  });
10513
10805
  } else {
10514
10806
  source = await createFileSyncEngineDataSource({
10515
10807
  directory,
10516
- selectIdentifier: selectIdentifier10,
10517
- selectDisplayName: selectDisplayName10,
10808
+ selectIdentifier: selectIdentifier11,
10809
+ selectDisplayName: selectDisplayName11,
10518
10810
  verbose
10519
10811
  });
10520
10812
  }
@@ -10536,10 +10828,10 @@ var QuirkRemoveModule = {
10536
10828
  command: "remove <id>",
10537
10829
  aliases: ["delete", "rm"],
10538
10830
  describe: "Delete a quirk",
10539
- builder: (yargs44) => withConfiguration(
10831
+ builder: (yargs45) => withConfiguration(
10540
10832
  withApiOptions(
10541
10833
  withProjectOptions(
10542
- yargs44.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10834
+ yargs45.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
10543
10835
  )
10544
10836
  )
10545
10837
  ),
@@ -10556,10 +10848,10 @@ var QuirkUpdateModule = {
10556
10848
  command: "update <filename>",
10557
10849
  aliases: ["put"],
10558
10850
  describe: "Insert or update a quirk",
10559
- builder: (yargs44) => withConfiguration(
10851
+ builder: (yargs45) => withConfiguration(
10560
10852
  withApiOptions(
10561
10853
  withProjectOptions(
10562
- yargs44.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10854
+ yargs45.positional("filename", { demandOption: true, describe: "Quirk file to put" })
10563
10855
  )
10564
10856
  )
10565
10857
  ),
@@ -10576,25 +10868,25 @@ var QuirkModule = {
10576
10868
  command: "quirk <command>",
10577
10869
  aliases: ["qk"],
10578
10870
  describe: "Commands for Context quirks",
10579
- builder: (yargs44) => yargs44.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10871
+ builder: (yargs45) => yargs45.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
10580
10872
  handler: () => {
10581
- yargs26.help();
10873
+ yargs27.help();
10582
10874
  }
10583
10875
  };
10584
10876
 
10585
10877
  // src/commands/context/commands/signal.ts
10586
- import yargs27 from "yargs";
10878
+ import yargs28 from "yargs";
10587
10879
 
10588
10880
  // src/commands/context/commands/signal/get.ts
10589
10881
  import { SignalClient } from "@uniformdev/context/api";
10590
10882
  var SignalGetModule = {
10591
10883
  command: "get <id>",
10592
10884
  describe: "Fetch a signal",
10593
- builder: (yargs44) => withConfiguration(
10885
+ builder: (yargs45) => withConfiguration(
10594
10886
  withFormatOptions(
10595
10887
  withApiOptions(
10596
10888
  withProjectOptions(
10597
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10889
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
10598
10890
  )
10599
10891
  )
10600
10892
  )
@@ -10618,7 +10910,7 @@ var SignalListModule = {
10618
10910
  command: "list",
10619
10911
  describe: "List signals",
10620
10912
  aliases: ["ls"],
10621
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
10913
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10622
10914
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10623
10915
  const fetch2 = nodeFetchProxy(proxy);
10624
10916
  const client = new SignalClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10631,8 +10923,8 @@ var SignalListModule = {
10631
10923
  import { SignalClient as SignalClient3 } from "@uniformdev/context/api";
10632
10924
 
10633
10925
  // src/commands/context/commands/signal/_util.ts
10634
- var selectIdentifier11 = (source) => source.id;
10635
- var selectDisplayName11 = (source) => `${source.name} (pid: ${source.id})`;
10926
+ var selectIdentifier12 = (source) => source.id;
10927
+ var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
10636
10928
 
10637
10929
  // src/commands/context/signalEngineDataSource.ts
10638
10930
  function createSignalEngineDataSource({
@@ -10642,8 +10934,8 @@ function createSignalEngineDataSource({
10642
10934
  const signals = (await client.get()).signals;
10643
10935
  for await (const def of signals) {
10644
10936
  const result = {
10645
- id: selectIdentifier11(def),
10646
- displayName: selectDisplayName11(def),
10937
+ id: selectIdentifier12(def),
10938
+ displayName: selectDisplayName12(def),
10647
10939
  providerId: def.id,
10648
10940
  object: def
10649
10941
  };
@@ -10668,12 +10960,12 @@ function createSignalEngineDataSource({
10668
10960
  var SignalPullModule = {
10669
10961
  command: "pull <directory>",
10670
10962
  describe: "Pulls all signals to local files in a directory",
10671
- builder: (yargs44) => withConfiguration(
10963
+ builder: (yargs45) => withConfiguration(
10672
10964
  withDebugOptions(
10673
10965
  withApiOptions(
10674
10966
  withProjectOptions(
10675
10967
  withDiffOptions(
10676
- yargs44.positional("directory", {
10968
+ yargs45.positional("directory", {
10677
10969
  describe: "Directory to save the signals to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10678
10970
  type: "string"
10679
10971
  }).option("format", {
@@ -10717,8 +11009,8 @@ var SignalPullModule = {
10717
11009
  target = await createArraySyncEngineDataSource({
10718
11010
  name: `Package file ${directory}`,
10719
11011
  objects: packageContents.signals ?? [],
10720
- selectIdentifier: selectIdentifier11,
10721
- selectDisplayName: selectDisplayName11,
11012
+ selectIdentifier: selectIdentifier12,
11013
+ selectDisplayName: selectDisplayName12,
10722
11014
  onSyncComplete: async (_, synced) => {
10723
11015
  packageContents.signals = synced;
10724
11016
  writeContextPackage(directory, packageContents);
@@ -10727,8 +11019,8 @@ var SignalPullModule = {
10727
11019
  } else {
10728
11020
  target = await createFileSyncEngineDataSource({
10729
11021
  directory,
10730
- selectIdentifier: selectIdentifier11,
10731
- selectDisplayName: selectDisplayName11,
11022
+ selectIdentifier: selectIdentifier12,
11023
+ selectDisplayName: selectDisplayName12,
10732
11024
  format,
10733
11025
  verbose
10734
11026
  });
@@ -10749,12 +11041,12 @@ import { SignalClient as SignalClient4 } from "@uniformdev/context/api";
10749
11041
  var SignalPushModule = {
10750
11042
  command: "push <directory>",
10751
11043
  describe: "Pushes all signals from files in a directory or package to Uniform",
10752
- builder: (yargs44) => withConfiguration(
11044
+ builder: (yargs45) => withConfiguration(
10753
11045
  withDebugOptions(
10754
11046
  withApiOptions(
10755
11047
  withProjectOptions(
10756
11048
  withDiffOptions(
10757
- yargs44.positional("directory", {
11049
+ yargs45.positional("directory", {
10758
11050
  describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
10759
11051
  type: "string"
10760
11052
  }).option("mode", {
@@ -10790,14 +11082,14 @@ var SignalPushModule = {
10790
11082
  source = await createArraySyncEngineDataSource({
10791
11083
  name: `Package file ${directory}`,
10792
11084
  objects: packageContents.signals ?? [],
10793
- selectIdentifier: selectIdentifier11,
10794
- selectDisplayName: selectDisplayName11
11085
+ selectIdentifier: selectIdentifier12,
11086
+ selectDisplayName: selectDisplayName12
10795
11087
  });
10796
11088
  } else {
10797
11089
  source = await createFileSyncEngineDataSource({
10798
11090
  directory,
10799
- selectIdentifier: selectIdentifier11,
10800
- selectDisplayName: selectDisplayName11,
11091
+ selectIdentifier: selectIdentifier12,
11092
+ selectDisplayName: selectDisplayName12,
10801
11093
  verbose
10802
11094
  });
10803
11095
  }
@@ -10819,10 +11111,10 @@ var SignalRemoveModule = {
10819
11111
  command: "remove <id>",
10820
11112
  aliases: ["delete", "rm"],
10821
11113
  describe: "Delete a signal",
10822
- builder: (yargs44) => withConfiguration(
11114
+ builder: (yargs45) => withConfiguration(
10823
11115
  withApiOptions(
10824
11116
  withProjectOptions(
10825
- yargs44.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
11117
+ yargs45.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
10826
11118
  )
10827
11119
  )
10828
11120
  ),
@@ -10839,10 +11131,10 @@ var SignalUpdateModule = {
10839
11131
  command: "update <filename>",
10840
11132
  aliases: ["put"],
10841
11133
  describe: "Insert or update a signal",
10842
- builder: (yargs44) => withConfiguration(
11134
+ builder: (yargs45) => withConfiguration(
10843
11135
  withApiOptions(
10844
11136
  withProjectOptions(
10845
- yargs44.positional("filename", { demandOption: true, describe: "Signal file to put" })
11137
+ yargs45.positional("filename", { demandOption: true, describe: "Signal file to put" })
10846
11138
  )
10847
11139
  )
10848
11140
  ),
@@ -10859,25 +11151,25 @@ var SignalModule = {
10859
11151
  command: "signal <command>",
10860
11152
  aliases: ["sig"],
10861
11153
  describe: "Commands for Context signals",
10862
- builder: (yargs44) => yargs44.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
11154
+ builder: (yargs45) => yargs45.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
10863
11155
  handler: () => {
10864
- yargs27.help();
11156
+ yargs28.help();
10865
11157
  }
10866
11158
  };
10867
11159
 
10868
11160
  // src/commands/context/commands/test.ts
10869
- import yargs28 from "yargs";
11161
+ import yargs29 from "yargs";
10870
11162
 
10871
11163
  // src/commands/context/commands/test/get.ts
10872
11164
  import { TestClient } from "@uniformdev/context/api";
10873
11165
  var TestGetModule = {
10874
11166
  command: "get <id>",
10875
11167
  describe: "Fetch a test",
10876
- builder: (yargs44) => withConfiguration(
11168
+ builder: (yargs45) => withConfiguration(
10877
11169
  withFormatOptions(
10878
11170
  withApiOptions(
10879
11171
  withProjectOptions(
10880
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
11172
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
10881
11173
  )
10882
11174
  )
10883
11175
  )
@@ -10901,7 +11193,7 @@ var TestListModule = {
10901
11193
  command: "list",
10902
11194
  describe: "List tests",
10903
11195
  aliases: ["ls"],
10904
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
11196
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
10905
11197
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
10906
11198
  const fetch2 = nodeFetchProxy(proxy);
10907
11199
  const client = new TestClient2({ apiKey, apiHost, fetch: fetch2, projectId, bypassCache: true });
@@ -10914,8 +11206,8 @@ var TestListModule = {
10914
11206
  import { TestClient as TestClient3 } from "@uniformdev/context/api";
10915
11207
 
10916
11208
  // src/commands/context/commands/test/_util.ts
10917
- var selectIdentifier12 = (source) => source.id;
10918
- var selectDisplayName12 = (source) => `${source.name} (pid: ${source.id})`;
11209
+ var selectIdentifier13 = (source) => source.id;
11210
+ var selectDisplayName13 = (source) => `${source.name} (pid: ${source.id})`;
10919
11211
 
10920
11212
  // src/commands/context/testEngineDataSource.ts
10921
11213
  function createTestEngineDataSource({
@@ -10925,8 +11217,8 @@ function createTestEngineDataSource({
10925
11217
  const tests = (await client.get()).tests;
10926
11218
  for await (const def of tests) {
10927
11219
  const result = {
10928
- id: selectIdentifier12(def),
10929
- displayName: selectDisplayName12(def),
11220
+ id: selectIdentifier13(def),
11221
+ displayName: selectDisplayName13(def),
10930
11222
  providerId: def.id,
10931
11223
  object: def
10932
11224
  };
@@ -10951,12 +11243,12 @@ function createTestEngineDataSource({
10951
11243
  var TestPullModule = {
10952
11244
  command: "pull <directory>",
10953
11245
  describe: "Pulls all tests to local files in a directory",
10954
- builder: (yargs44) => withConfiguration(
11246
+ builder: (yargs45) => withConfiguration(
10955
11247
  withDebugOptions(
10956
11248
  withApiOptions(
10957
11249
  withProjectOptions(
10958
11250
  withDiffOptions(
10959
- yargs44.positional("directory", {
11251
+ yargs45.positional("directory", {
10960
11252
  describe: "Directory to save the tests to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
10961
11253
  type: "string"
10962
11254
  }).option("format", {
@@ -11000,8 +11292,8 @@ var TestPullModule = {
11000
11292
  target = await createArraySyncEngineDataSource({
11001
11293
  name: `Package file ${directory}`,
11002
11294
  objects: packageContents.tests ?? [],
11003
- selectIdentifier: selectIdentifier12,
11004
- selectDisplayName: selectDisplayName12,
11295
+ selectIdentifier: selectIdentifier13,
11296
+ selectDisplayName: selectDisplayName13,
11005
11297
  onSyncComplete: async (_, synced) => {
11006
11298
  packageContents.tests = synced;
11007
11299
  writeContextPackage(directory, packageContents);
@@ -11010,8 +11302,8 @@ var TestPullModule = {
11010
11302
  } else {
11011
11303
  target = await createFileSyncEngineDataSource({
11012
11304
  directory,
11013
- selectIdentifier: selectIdentifier12,
11014
- selectDisplayName: selectDisplayName12,
11305
+ selectIdentifier: selectIdentifier13,
11306
+ selectDisplayName: selectDisplayName13,
11015
11307
  format,
11016
11308
  verbose
11017
11309
  });
@@ -11032,12 +11324,12 @@ import { TestClient as TestClient4 } from "@uniformdev/context/api";
11032
11324
  var TestPushModule = {
11033
11325
  command: "push <directory>",
11034
11326
  describe: "Pushes all tests from files in a directory or package to Uniform",
11035
- builder: (yargs44) => withConfiguration(
11327
+ builder: (yargs45) => withConfiguration(
11036
11328
  withDebugOptions(
11037
11329
  withApiOptions(
11038
11330
  withProjectOptions(
11039
11331
  withDiffOptions(
11040
- yargs44.positional("directory", {
11332
+ yargs45.positional("directory", {
11041
11333
  describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
11042
11334
  type: "string"
11043
11335
  }).option("mode", {
@@ -11073,14 +11365,14 @@ var TestPushModule = {
11073
11365
  source = await createArraySyncEngineDataSource({
11074
11366
  name: `Package file ${directory}`,
11075
11367
  objects: packageContents.tests ?? [],
11076
- selectIdentifier: selectIdentifier12,
11077
- selectDisplayName: selectDisplayName12
11368
+ selectIdentifier: selectIdentifier13,
11369
+ selectDisplayName: selectDisplayName13
11078
11370
  });
11079
11371
  } else {
11080
11372
  source = await createFileSyncEngineDataSource({
11081
11373
  directory,
11082
- selectIdentifier: selectIdentifier12,
11083
- selectDisplayName: selectDisplayName12,
11374
+ selectIdentifier: selectIdentifier13,
11375
+ selectDisplayName: selectDisplayName13,
11084
11376
  verbose
11085
11377
  });
11086
11378
  }
@@ -11102,10 +11394,10 @@ var TestRemoveModule = {
11102
11394
  command: "remove <id>",
11103
11395
  aliases: ["delete", "rm"],
11104
11396
  describe: "Delete a test",
11105
- builder: (yargs44) => withConfiguration(
11397
+ builder: (yargs45) => withConfiguration(
11106
11398
  withApiOptions(
11107
11399
  withProjectOptions(
11108
- yargs44.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11400
+ yargs45.positional("id", { demandOption: true, describe: "Test public ID to delete" })
11109
11401
  )
11110
11402
  )
11111
11403
  ),
@@ -11122,9 +11414,9 @@ var TestUpdateModule = {
11122
11414
  command: "update <filename>",
11123
11415
  aliases: ["put"],
11124
11416
  describe: "Insert or update a test",
11125
- builder: (yargs44) => withConfiguration(
11417
+ builder: (yargs45) => withConfiguration(
11126
11418
  withApiOptions(
11127
- withProjectOptions(yargs44.positional("filename", { demandOption: true, describe: "Test file to put" }))
11419
+ withProjectOptions(yargs45.positional("filename", { demandOption: true, describe: "Test file to put" }))
11128
11420
  )
11129
11421
  ),
11130
11422
  handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
@@ -11139,9 +11431,9 @@ var TestUpdateModule = {
11139
11431
  var TestModule = {
11140
11432
  command: "test <command>",
11141
11433
  describe: "Commands for Context A/B tests",
11142
- builder: (yargs44) => yargs44.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11434
+ builder: (yargs45) => yargs45.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
11143
11435
  handler: () => {
11144
- yargs28.help();
11436
+ yargs29.help();
11145
11437
  }
11146
11438
  };
11147
11439
 
@@ -11150,29 +11442,29 @@ var ContextCommand = {
11150
11442
  command: "context <command>",
11151
11443
  aliases: ["ctx"],
11152
11444
  describe: "Uniform Context commands",
11153
- builder: (yargs44) => yargs44.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11445
+ builder: (yargs45) => yargs45.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
11154
11446
  handler: () => {
11155
- yargs29.showHelp();
11447
+ yargs30.showHelp();
11156
11448
  }
11157
11449
  };
11158
11450
 
11159
11451
  // src/commands/integration/index.ts
11160
- import yargs34 from "yargs";
11452
+ import yargs35 from "yargs";
11161
11453
 
11162
11454
  // src/commands/integration/commands/definition.ts
11163
- import yargs33 from "yargs";
11455
+ import yargs34 from "yargs";
11164
11456
 
11165
11457
  // src/commands/integration/commands/definition/dataResourceEditor/dataResourceEditor.ts
11166
- import yargs30 from "yargs";
11458
+ import yargs31 from "yargs";
11167
11459
 
11168
11460
  // src/commands/integration/commands/definition/dataResourceEditor/deploy.ts
11169
11461
  import { readFileSync as readFileSync3 } from "fs";
11170
11462
 
11171
11463
  // src/commands/integration/commands/definition/edgehancer/EdgehancerClient.ts
11172
11464
  import { createLimitPolicy as createLimitPolicy2 } from "@uniformdev/canvas";
11173
- import { ApiClient } from "@uniformdev/context/api";
11465
+ import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11174
11466
  var ENDPOINT = "/api/v1/integration-edgehancers";
11175
- var EdgehancerClient = class extends ApiClient {
11467
+ var EdgehancerClient = class extends ApiClient2 {
11176
11468
  constructor(options) {
11177
11469
  if (!options.limitPolicy) {
11178
11470
  options.limitPolicy = createLimitPolicy2({});
@@ -11201,8 +11493,8 @@ var EdgehancerClient = class extends ApiClient {
11201
11493
  };
11202
11494
 
11203
11495
  // src/commands/integration/commands/definition/dataResourceEditor/util.ts
11204
- function withDataResourceEditorIdOptions(yargs44) {
11205
- return yargs44.option("connectorType", {
11496
+ function withDataResourceEditorIdOptions(yargs45) {
11497
+ return yargs45.option("connectorType", {
11206
11498
  describe: "Integration data connector type to attach the data resource editor to, as defined in the integration manifest file.",
11207
11499
  demandOption: true,
11208
11500
  type: "string"
@@ -11222,11 +11514,11 @@ function withDataResourceEditorIdOptions(yargs44) {
11222
11514
  var IntegrationDataResourceEditorDeployModule = {
11223
11515
  command: "deploy <filename>",
11224
11516
  describe: "Deploys a custom AI data resource editor hook to run when AI edits data resources of a specific archetype. The API key used must have team admin permissions.",
11225
- builder: (yargs44) => withConfiguration(
11517
+ builder: (yargs45) => withConfiguration(
11226
11518
  withApiOptions(
11227
11519
  withTeamOptions(
11228
11520
  withDataResourceEditorIdOptions(
11229
- yargs44.positional("filename", {
11521
+ yargs45.positional("filename", {
11230
11522
  demandOption: true,
11231
11523
  describe: "ESM code file to run for the target data resource editor hook. Refer to the documentation for expected types."
11232
11524
  }).option("compatibilityDate", {
@@ -11269,7 +11561,7 @@ var IntegrationDataResourceEditorDeployModule = {
11269
11561
  var IntegrationDataResourceEditorRemoveModule = {
11270
11562
  command: "remove",
11271
11563
  describe: "Removes a custom AI data resource editor hook from a data resource archetype. The API key used must have team admin permissions.",
11272
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs44)))),
11564
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withDataResourceEditorIdOptions(yargs45)))),
11273
11565
  handler: async ({ apiHost, apiKey, proxy, team: teamId, connectorType, archetype, hook }) => {
11274
11566
  const fetch2 = nodeFetchProxy(proxy);
11275
11567
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11281,21 +11573,21 @@ var IntegrationDataResourceEditorRemoveModule = {
11281
11573
  var IntegrationDataResourceEditorModule = {
11282
11574
  command: "dataResourceEditor <command>",
11283
11575
  describe: "Commands for managing custom AI data resource editors at the team level.",
11284
- builder: (yargs44) => yargs44.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11576
+ builder: (yargs45) => yargs45.command(IntegrationDataResourceEditorDeployModule).command(IntegrationDataResourceEditorRemoveModule).demandCommand(),
11285
11577
  handler: () => {
11286
- yargs30.help();
11578
+ yargs31.help();
11287
11579
  }
11288
11580
  };
11289
11581
 
11290
11582
  // src/commands/integration/commands/definition/edgehancer/edgehancer.ts
11291
- import yargs31 from "yargs";
11583
+ import yargs32 from "yargs";
11292
11584
 
11293
11585
  // src/commands/integration/commands/definition/edgehancer/deploy.ts
11294
11586
  import { readFileSync as readFileSync4 } from "fs";
11295
11587
 
11296
11588
  // src/commands/integration/commands/definition/edgehancer/util.ts
11297
- function withEdgehancerIdOptions(yargs44) {
11298
- return yargs44.option("connectorType", {
11589
+ function withEdgehancerIdOptions(yargs45) {
11590
+ return yargs45.option("connectorType", {
11299
11591
  describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
11300
11592
  demandOption: true,
11301
11593
  type: "string"
@@ -11315,11 +11607,11 @@ function withEdgehancerIdOptions(yargs44) {
11315
11607
  var IntegrationEdgehancerDeployModule = {
11316
11608
  command: "deploy <filename>",
11317
11609
  describe: "Deploys a custom edgehancer hook to run when a data resource of a specific archetype is fetched. The API key used must have team admin permissions.",
11318
- builder: (yargs44) => withConfiguration(
11610
+ builder: (yargs45) => withConfiguration(
11319
11611
  withApiOptions(
11320
11612
  withTeamOptions(
11321
11613
  withEdgehancerIdOptions(
11322
- yargs44.positional("filename", {
11614
+ yargs45.positional("filename", {
11323
11615
  demandOption: true,
11324
11616
  describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
11325
11617
  }).option("compatibilityDate", {
@@ -11362,7 +11654,7 @@ var IntegrationEdgehancerDeployModule = {
11362
11654
  var IntegrationEdgehancerRemoveModule = {
11363
11655
  command: "remove",
11364
11656
  describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
11365
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs44)))),
11657
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs45)))),
11366
11658
  handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
11367
11659
  const fetch2 = nodeFetchProxy(proxy);
11368
11660
  const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11374,22 +11666,22 @@ var IntegrationEdgehancerRemoveModule = {
11374
11666
  var IntegrationEdgehancerModule = {
11375
11667
  command: "edgehancer <command>",
11376
11668
  describe: "Commands for managing custom integration edgehancers at the team level.",
11377
- builder: (yargs44) => yargs44.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11669
+ builder: (yargs45) => yargs45.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
11378
11670
  handler: () => {
11379
- yargs31.help();
11671
+ yargs32.help();
11380
11672
  }
11381
11673
  };
11382
11674
 
11383
11675
  // src/commands/integration/commands/definition/propertyEditor/propertyEditor.ts
11384
- import yargs32 from "yargs";
11676
+ import yargs33 from "yargs";
11385
11677
 
11386
11678
  // src/commands/integration/commands/definition/propertyEditor/deploy.ts
11387
11679
  import { IntegrationPropertyEditorsClient } from "@uniformdev/canvas";
11388
11680
  import { readFileSync as readFileSync5 } from "fs";
11389
11681
 
11390
11682
  // src/commands/integration/commands/definition/propertyEditor/util.ts
11391
- function withPropertyEditorIdOptions(yargs44) {
11392
- return yargs44.option("propertyType", {
11683
+ function withPropertyEditorIdOptions(yargs45) {
11684
+ return yargs45.option("propertyType", {
11393
11685
  describe: "Property type to attach the editor to.",
11394
11686
  demandOption: true,
11395
11687
  type: "string"
@@ -11405,11 +11697,11 @@ function withPropertyEditorIdOptions(yargs44) {
11405
11697
  var IntegrationPropertyEditorDeployModule = {
11406
11698
  command: "deploy <filename>",
11407
11699
  describe: "Deploys a custom AI property editor hook to run when a property of a specific type is edited. The API key used must have team admin permissions.",
11408
- builder: (yargs44) => withConfiguration(
11700
+ builder: (yargs45) => withConfiguration(
11409
11701
  withApiOptions(
11410
11702
  withTeamOptions(
11411
11703
  withPropertyEditorIdOptions(
11412
- yargs44.positional("filename", {
11704
+ yargs45.positional("filename", {
11413
11705
  demandOption: true,
11414
11706
  describe: "ESM code file to run for the target property editor hook. Refer to the documentation for expected types."
11415
11707
  }).option("compatibilityDate", {
@@ -11452,7 +11744,7 @@ import { IntegrationPropertyEditorsClient as IntegrationPropertyEditorsClient2 }
11452
11744
  var IntegrationPropertyEditorRemoveModule = {
11453
11745
  command: "remove",
11454
11746
  describe: "Deletes a custom AI property editor hook from a property type. The API key used must have team admin permissions.",
11455
- builder: (yargs44) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs44)))),
11747
+ builder: (yargs45) => withConfiguration(withApiOptions(withTeamOptions(withPropertyEditorIdOptions(yargs45)))),
11456
11748
  handler: async ({ apiHost, apiKey, proxy, team: teamId, propertyType, hook }) => {
11457
11749
  const fetch2 = nodeFetchProxy(proxy);
11458
11750
  const client = new IntegrationPropertyEditorsClient2({ apiKey, apiHost, fetch: fetch2, teamId });
@@ -11464,17 +11756,17 @@ var IntegrationPropertyEditorRemoveModule = {
11464
11756
  var IntegrationPropertyEditorModule = {
11465
11757
  command: "propertyEditor <command>",
11466
11758
  describe: "Commands for managing custom AI property editors at the team level.",
11467
- builder: (yargs44) => yargs44.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11759
+ builder: (yargs45) => yargs45.command(IntegrationPropertyEditorDeployModule).command(IntegrationPropertyEditorRemoveModule).demandCommand(),
11468
11760
  handler: () => {
11469
- yargs32.help();
11761
+ yargs33.help();
11470
11762
  }
11471
11763
  };
11472
11764
 
11473
11765
  // src/commands/integration/commands/definition/DefinitionClient.ts
11474
11766
  import { createLimitPolicy as createLimitPolicy3 } from "@uniformdev/canvas";
11475
- import { ApiClient as ApiClient2 } from "@uniformdev/context/api";
11767
+ import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11476
11768
  var ENDPOINT2 = "/api/v1/integration-definitions";
11477
- var DefinitionClient = class extends ApiClient2 {
11769
+ var DefinitionClient = class extends ApiClient3 {
11478
11770
  constructor(options) {
11479
11771
  if (!options.limitPolicy) {
11480
11772
  options.limitPolicy = createLimitPolicy3({});
@@ -11506,10 +11798,10 @@ var DefinitionClient = class extends ApiClient2 {
11506
11798
  var IntegrationDefinitionRegisterModule = {
11507
11799
  command: "register <filename>",
11508
11800
  describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
11509
- builder: (yargs44) => withConfiguration(
11801
+ builder: (yargs45) => withConfiguration(
11510
11802
  withApiOptions(
11511
11803
  withTeamOptions(
11512
- yargs44.positional("filename", {
11804
+ yargs45.positional("filename", {
11513
11805
  demandOption: true,
11514
11806
  describe: "Integration definition manifest to register"
11515
11807
  })
@@ -11528,10 +11820,10 @@ var IntegrationDefinitionRegisterModule = {
11528
11820
  var IntegrationDefinitionRemoveModule = {
11529
11821
  command: "remove <type>",
11530
11822
  describe: "Deletes a custom integration definition from a team. This will uninstall it on any active projects. Existing usages of the integration may break. The API key used must have team admin permissions.",
11531
- builder: (yargs44) => withConfiguration(
11823
+ builder: (yargs45) => withConfiguration(
11532
11824
  withApiOptions(
11533
11825
  withTeamOptions(
11534
- yargs44.positional("type", {
11826
+ yargs45.positional("type", {
11535
11827
  demandOption: true,
11536
11828
  describe: "Integration type (from its manifest) to remove."
11537
11829
  })
@@ -11549,17 +11841,17 @@ var IntegrationDefinitionRemoveModule = {
11549
11841
  var IntegrationDefinitionModule = {
11550
11842
  command: "definition <command>",
11551
11843
  describe: "Commands for managing custom integration definitions at the team level.",
11552
- builder: (yargs44) => yargs44.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11844
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).command(IntegrationDataResourceEditorModule).command(IntegrationPropertyEditorModule).demandCommand(),
11553
11845
  handler: () => {
11554
- yargs33.help();
11846
+ yargs34.help();
11555
11847
  }
11556
11848
  };
11557
11849
 
11558
11850
  // src/commands/integration/commands/InstallClient.ts
11559
11851
  import { createLimitPolicy as createLimitPolicy4 } from "@uniformdev/canvas";
11560
- import { ApiClient as ApiClient3 } from "@uniformdev/context/api";
11852
+ import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
11561
11853
  var ENDPOINT3 = "/api/v1/integration-installations";
11562
- var InstallClient = class extends ApiClient3 {
11854
+ var InstallClient = class extends ApiClient4 {
11563
11855
  constructor(options) {
11564
11856
  if (!options.limitPolicy) {
11565
11857
  options.limitPolicy = createLimitPolicy4({});
@@ -11591,10 +11883,10 @@ var InstallClient = class extends ApiClient3 {
11591
11883
  var IntegrationInstallModule = {
11592
11884
  command: "install <type>",
11593
11885
  describe: "Installs an integration to a project. The integration may be built-in or custom. Custom integrations must be registered to the parent team first.",
11594
- builder: (yargs44) => withConfiguration(
11886
+ builder: (yargs45) => withConfiguration(
11595
11887
  withApiOptions(
11596
11888
  withProjectOptions(
11597
- yargs44.positional("type", {
11889
+ yargs45.positional("type", {
11598
11890
  demandOption: true,
11599
11891
  describe: "Integration type to install (as defined in its manifest)"
11600
11892
  }).option("configuration", {
@@ -11616,10 +11908,10 @@ var IntegrationInstallModule = {
11616
11908
  var IntegrationUninstallModule = {
11617
11909
  command: "uninstall <type>",
11618
11910
  describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
11619
- builder: (yargs44) => withConfiguration(
11911
+ builder: (yargs45) => withConfiguration(
11620
11912
  withApiOptions(
11621
11913
  withProjectOptions(
11622
- yargs44.positional("type", {
11914
+ yargs45.positional("type", {
11623
11915
  demandOption: true,
11624
11916
  describe: "Integration type to uninstall (as defined in its manifest)"
11625
11917
  })
@@ -11637,9 +11929,9 @@ var IntegrationUninstallModule = {
11637
11929
  var IntegrationCommand = {
11638
11930
  command: "integration <command>",
11639
11931
  describe: "Integration management commands",
11640
- builder: (yargs44) => yargs44.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11932
+ builder: (yargs45) => yargs45.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
11641
11933
  handler: () => {
11642
- yargs34.showHelp();
11934
+ yargs35.showHelp();
11643
11935
  }
11644
11936
  };
11645
11937
 
@@ -11667,7 +11959,7 @@ ${err.message}`);
11667
11959
  };
11668
11960
 
11669
11961
  // src/projects/cloneStarter.ts
11670
- import crypto2 from "crypto";
11962
+ import crypto3 from "crypto";
11671
11963
  import fs7 from "fs";
11672
11964
  import fsj5 from "fs-jetpack";
11673
11965
  import * as git from "isomorphic-git";
@@ -11682,7 +11974,7 @@ async function cloneStarter({
11682
11974
  githubBranch
11683
11975
  }) {
11684
11976
  const done = await spin("Fetching starter code...");
11685
- const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto2.randomBytes(20).toString("hex")}`);
11977
+ const cloneDir = path6.join(os.tmpdir(), `uniform-new-${crypto3.randomBytes(20).toString("hex")}`);
11686
11978
  const [user, repo, ...pathSegments] = githubPath.split("/");
11687
11979
  try {
11688
11980
  await git.clone({
@@ -12104,14 +12396,14 @@ var NewMeshCmd = {
12104
12396
  };
12105
12397
 
12106
12398
  // src/commands/policy-documents/index.ts
12107
- import yargs35 from "yargs";
12399
+ import yargs36 from "yargs";
12108
12400
 
12109
12401
  // src/commands/policy-documents/commands/list.ts
12110
12402
  var PolicyDocumentsListModule = {
12111
12403
  command: "list",
12112
12404
  describe: "List policy documents for a project",
12113
12405
  aliases: ["ls"],
12114
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12406
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12115
12407
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
12116
12408
  const fetch2 = nodeFetchProxy(proxy, verbose);
12117
12409
  const url = new URL(`/api/v1/policy-documents`, apiHost);
@@ -12189,19 +12481,19 @@ ${errorText}`
12189
12481
  }
12190
12482
 
12191
12483
  // src/commands/policy-documents/commands/_util.ts
12192
- var selectIdentifier13 = (policyDoc) => policyDoc.roleId;
12193
- var selectDisplayName13 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12484
+ var selectIdentifier14 = (policyDoc) => policyDoc.roleId;
12485
+ var selectDisplayName14 = (policyDoc) => `Policy document for role ${policyDoc.roleId}`;
12194
12486
 
12195
12487
  // src/commands/policy-documents/commands/pull.ts
12196
12488
  var PolicyDocumentsPullModule = {
12197
12489
  command: "pull <directory>",
12198
12490
  describe: "Pulls all policy documents to local files in a directory",
12199
- builder: (yargs44) => withConfiguration(
12491
+ builder: (yargs45) => withConfiguration(
12200
12492
  withApiOptions(
12201
12493
  withDebugOptions(
12202
12494
  withProjectOptions(
12203
12495
  withDiffOptions(
12204
- yargs44.positional("directory", {
12496
+ yargs45.positional("directory", {
12205
12497
  describe: "Directory to save to. Each policy document will be saved as a separate file named by role ID.",
12206
12498
  type: "string"
12207
12499
  }).option("format", {
@@ -12239,8 +12531,8 @@ var PolicyDocumentsPullModule = {
12239
12531
  const source = createPolicyDocumentsEngineDataSource({ apiKey, apiHost, fetch: fetch2, projectId });
12240
12532
  const target = await createFileSyncEngineDataSource({
12241
12533
  directory,
12242
- selectIdentifier: selectIdentifier13,
12243
- selectDisplayName: selectDisplayName13,
12534
+ selectIdentifier: selectIdentifier14,
12535
+ selectDisplayName: selectDisplayName14,
12244
12536
  format,
12245
12537
  verbose
12246
12538
  });
@@ -12335,12 +12627,12 @@ function mergePolicyDocuments(localDocs, remoteDocs, mode) {
12335
12627
  var PolicyDocumentsPushModule = {
12336
12628
  command: "push <directory>",
12337
12629
  describe: "Pushes policy documents from local files to Uniform",
12338
- builder: (yargs44) => withConfiguration(
12630
+ builder: (yargs45) => withConfiguration(
12339
12631
  withApiOptions(
12340
12632
  withDebugOptions(
12341
12633
  withProjectOptions(
12342
12634
  withDiffOptions(
12343
- yargs44.positional("directory", {
12635
+ yargs45.positional("directory", {
12344
12636
  describe: "Directory containing policy document files (one file per role ID).",
12345
12637
  type: "string"
12346
12638
  }).option("format", {
@@ -12389,8 +12681,8 @@ var PolicyDocumentsPushModule = {
12389
12681
  const finalDocs = mergePolicyDocuments(localDocs, remoteDocs, mode);
12390
12682
  const source = await createFileSyncEngineDataSource({
12391
12683
  directory,
12392
- selectIdentifier: selectIdentifier13,
12393
- selectDisplayName: selectDisplayName13,
12684
+ selectIdentifier: selectIdentifier14,
12685
+ selectDisplayName: selectDisplayName14,
12394
12686
  format,
12395
12687
  verbose
12396
12688
  });
@@ -12436,22 +12728,22 @@ var PolicyDocumentsCommand = {
12436
12728
  command: "policy-documents <command>",
12437
12729
  aliases: ["policy", "policies"],
12438
12730
  describe: "Uniform Policy Documents commands",
12439
- builder: (yargs44) => yargs44.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12731
+ builder: (yargs45) => yargs45.command(PolicyDocumentsListModule).command(PolicyDocumentsPullModule).command(PolicyDocumentsPushModule).demandCommand(),
12440
12732
  handler: () => {
12441
- yargs35.showHelp();
12733
+ yargs36.showHelp();
12442
12734
  }
12443
12735
  };
12444
12736
 
12445
12737
  // src/commands/project-map/index.ts
12446
- import yargs38 from "yargs";
12738
+ import yargs39 from "yargs";
12447
12739
 
12448
12740
  // src/commands/project-map/commands/projectMapDefinition.ts
12449
- import yargs36 from "yargs";
12741
+ import yargs37 from "yargs";
12450
12742
 
12451
12743
  // src/commands/project-map/commands/ProjectMapDefinition/_util.ts
12452
12744
  import { ProjectMapClient } from "@uniformdev/project-map";
12453
- var selectIdentifier14 = (source) => source.id;
12454
- var selectDisplayName14 = (source) => `${source.name} (pid: ${source.id})`;
12745
+ var selectIdentifier15 = (source) => source.id;
12746
+ var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
12455
12747
  function getProjectMapClient(options) {
12456
12748
  return new ProjectMapClient({ ...options, limitPolicy: cliLimitPolicy, bypassCache: true });
12457
12749
  }
@@ -12460,11 +12752,11 @@ function getProjectMapClient(options) {
12460
12752
  var ProjectMapDefinitionGetModule = {
12461
12753
  command: "get <id>",
12462
12754
  describe: "Fetch a project map",
12463
- builder: (yargs44) => withFormatOptions(
12755
+ builder: (yargs45) => withFormatOptions(
12464
12756
  withConfiguration(
12465
12757
  withApiOptions(
12466
12758
  withProjectOptions(
12467
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12759
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
12468
12760
  )
12469
12761
  )
12470
12762
  )
@@ -12487,7 +12779,7 @@ var ProjectMapDefinitionListModule = {
12487
12779
  command: "list",
12488
12780
  describe: "List of project maps",
12489
12781
  aliases: ["ls"],
12490
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
12782
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
12491
12783
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
12492
12784
  const fetch2 = nodeFetchProxy(proxy);
12493
12785
  const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -12515,9 +12807,9 @@ function createProjectMapDefinitionEngineDataSource({
12515
12807
  const projectMaps = (await client.getProjectMapDefinitions()).projectMaps;
12516
12808
  for await (const def of projectMaps) {
12517
12809
  const result = {
12518
- id: selectIdentifier14(def),
12519
- displayName: selectDisplayName14(def),
12520
- providerId: selectIdentifier14(def),
12810
+ id: selectIdentifier15(def),
12811
+ displayName: selectDisplayName15(def),
12812
+ providerId: selectIdentifier15(def),
12521
12813
  object: def
12522
12814
  };
12523
12815
  yield result;
@@ -12541,12 +12833,12 @@ function createProjectMapDefinitionEngineDataSource({
12541
12833
  var ProjectMapDefinitionPullModule = {
12542
12834
  command: "pull <directory>",
12543
12835
  describe: "Pulls all project maps to local files in a directory",
12544
- builder: (yargs44) => withConfiguration(
12836
+ builder: (yargs45) => withConfiguration(
12545
12837
  withDebugOptions(
12546
12838
  withApiOptions(
12547
12839
  withProjectOptions(
12548
12840
  withDiffOptions(
12549
- yargs44.positional("directory", {
12841
+ yargs45.positional("directory", {
12550
12842
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
12551
12843
  type: "string"
12552
12844
  }).option("format", {
@@ -12590,8 +12882,8 @@ var ProjectMapDefinitionPullModule = {
12590
12882
  target = await createArraySyncEngineDataSource({
12591
12883
  name: `Package file ${directory}`,
12592
12884
  objects: packageContents.projectMaps ?? [],
12593
- selectIdentifier: selectIdentifier14,
12594
- selectDisplayName: selectDisplayName14,
12885
+ selectIdentifier: selectIdentifier15,
12886
+ selectDisplayName: selectDisplayName15,
12595
12887
  onSyncComplete: async (_, synced) => {
12596
12888
  packageContents.projectMaps = synced;
12597
12889
  writeContextPackage2(directory, packageContents);
@@ -12600,8 +12892,8 @@ var ProjectMapDefinitionPullModule = {
12600
12892
  } else {
12601
12893
  target = await createFileSyncEngineDataSource({
12602
12894
  directory,
12603
- selectIdentifier: selectIdentifier14,
12604
- selectDisplayName: selectDisplayName14,
12895
+ selectIdentifier: selectIdentifier15,
12896
+ selectDisplayName: selectDisplayName15,
12605
12897
  format,
12606
12898
  verbose
12607
12899
  });
@@ -12621,12 +12913,12 @@ var ProjectMapDefinitionPullModule = {
12621
12913
  var ProjectMapDefinitionPushModule = {
12622
12914
  command: "push <directory>",
12623
12915
  describe: "Pushes all project maps from files in a directory or package to Uniform",
12624
- builder: (yargs44) => withConfiguration(
12916
+ builder: (yargs45) => withConfiguration(
12625
12917
  withDebugOptions(
12626
12918
  withApiOptions(
12627
12919
  withProjectOptions(
12628
12920
  withDiffOptions(
12629
- yargs44.positional("directory", {
12921
+ yargs45.positional("directory", {
12630
12922
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12631
12923
  type: "string"
12632
12924
  }).option("mode", {
@@ -12662,14 +12954,14 @@ var ProjectMapDefinitionPushModule = {
12662
12954
  source = await createArraySyncEngineDataSource({
12663
12955
  name: `Package file ${directory}`,
12664
12956
  objects: packageContents.projectMaps ?? [],
12665
- selectIdentifier: selectIdentifier14,
12666
- selectDisplayName: selectDisplayName14
12957
+ selectIdentifier: selectIdentifier15,
12958
+ selectDisplayName: selectDisplayName15
12667
12959
  });
12668
12960
  } else {
12669
12961
  source = await createFileSyncEngineDataSource({
12670
12962
  directory,
12671
- selectIdentifier: selectIdentifier14,
12672
- selectDisplayName: selectDisplayName14,
12963
+ selectIdentifier: selectIdentifier15,
12964
+ selectDisplayName: selectDisplayName15,
12673
12965
  verbose
12674
12966
  });
12675
12967
  }
@@ -12690,9 +12982,9 @@ var ProjectMapDefinitionRemoveModule = {
12690
12982
  command: "remove <id>",
12691
12983
  aliases: ["delete", "rm"],
12692
12984
  describe: "Delete a project map",
12693
- builder: (yargs44) => withConfiguration(
12985
+ builder: (yargs45) => withConfiguration(
12694
12986
  withApiOptions(
12695
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
12987
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
12696
12988
  )
12697
12989
  ),
12698
12990
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -12707,10 +12999,10 @@ var ProjectMapDefinitionUpdateModule = {
12707
12999
  command: "update <filename>",
12708
13000
  aliases: ["put"],
12709
13001
  describe: "Insert or update a project map",
12710
- builder: (yargs44) => withConfiguration(
13002
+ builder: (yargs45) => withConfiguration(
12711
13003
  withApiOptions(
12712
13004
  withProjectOptions(
12713
- yargs44.positional("filename", { demandOption: true, describe: "Project map file to put" })
13005
+ yargs45.positional("filename", { demandOption: true, describe: "Project map file to put" })
12714
13006
  )
12715
13007
  )
12716
13008
  ),
@@ -12726,24 +13018,24 @@ var ProjectMapDefinitionUpdateModule = {
12726
13018
  var ProjectMapDefinitionModule = {
12727
13019
  command: "definition <command>",
12728
13020
  describe: "Commands for ProjectMap Definitions",
12729
- builder: (yargs44) => yargs44.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
13021
+ builder: (yargs45) => yargs45.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
12730
13022
  handler: () => {
12731
- yargs36.help();
13023
+ yargs37.help();
12732
13024
  }
12733
13025
  };
12734
13026
 
12735
13027
  // src/commands/project-map/commands/projectMapNode.ts
12736
- import yargs37 from "yargs";
13028
+ import yargs38 from "yargs";
12737
13029
 
12738
13030
  // src/commands/project-map/commands/ProjectMapNode/get.ts
12739
13031
  var ProjectMapNodeGetModule = {
12740
13032
  command: "get <id> <projectMapId>",
12741
13033
  describe: "Fetch a project map node",
12742
- builder: (yargs44) => withConfiguration(
13034
+ builder: (yargs45) => withConfiguration(
12743
13035
  withFormatOptions(
12744
13036
  withApiOptions(
12745
13037
  withProjectOptions(
12746
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
13038
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
12747
13039
  )
12748
13040
  )
12749
13041
  )
@@ -12766,12 +13058,12 @@ var ProjectMapNodeListModule = {
12766
13058
  command: "list <projectMapId>",
12767
13059
  describe: "List project map nodes",
12768
13060
  aliases: ["ls"],
12769
- builder: (yargs44) => withConfiguration(
13061
+ builder: (yargs45) => withConfiguration(
12770
13062
  withFormatOptions(
12771
13063
  withApiOptions(
12772
13064
  withProjectOptions(
12773
13065
  withStateOptions(
12774
- yargs44.positional("projectMapId", {
13066
+ yargs45.positional("projectMapId", {
12775
13067
  demandOption: true,
12776
13068
  describe: "ProjectMap UUID to fetch from"
12777
13069
  })
@@ -12789,13 +13081,13 @@ var ProjectMapNodeListModule = {
12789
13081
  };
12790
13082
 
12791
13083
  // src/commands/project-map/commands/ProjectMapNode/_util.ts
12792
- var selectIdentifier15 = (source, projectId) => [
13084
+ var selectIdentifier16 = (source, projectId) => [
12793
13085
  projectId + source.projectMapId + source.id,
12794
13086
  projectId + source.projectMapId + source.path
12795
13087
  ];
12796
13088
  var selectNodeDepth = (source) => source.path.split("/").filter((segment) => segment.length > 0).length;
12797
13089
  var selectFilename = (source) => cleanFileName(`${source.pathSegment}_${source.id}`);
12798
- var selectDisplayName15 = (source) => `${source.name} (pid: ${source.id})`;
13090
+ var selectDisplayName16 = (source) => `${source.name} (pid: ${source.id})`;
12799
13091
  function alignProjectMapNodeWithTargetIdentifier(sourceObject, targetObject) {
12800
13092
  if (!targetObject) {
12801
13093
  return sourceObject;
@@ -12823,9 +13115,9 @@ function createProjectMapNodeEngineDataSource({
12823
13115
  for await (const node of nodes ?? []) {
12824
13116
  if (node) {
12825
13117
  const result = {
12826
- id: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId),
12827
- displayName: selectDisplayName15(node),
12828
- providerId: selectIdentifier15({ ...node, projectMapId: projectMap.id }, projectId)[0],
13118
+ id: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId),
13119
+ displayName: selectDisplayName16(node),
13120
+ providerId: selectIdentifier16({ ...node, projectMapId: projectMap.id }, projectId)[0],
12829
13121
  object: { ...node, projectMapId: projectMap.id }
12830
13122
  };
12831
13123
  yield result;
@@ -12864,12 +13156,12 @@ function createProjectMapNodeEngineDataSource({
12864
13156
  var ProjectMapNodePullModule = {
12865
13157
  command: "pull <directory>",
12866
13158
  describe: "Pulls all project maps nodes to local files in a directory",
12867
- builder: (yargs44) => withConfiguration(
13159
+ builder: (yargs45) => withConfiguration(
12868
13160
  withDebugOptions(
12869
13161
  withApiOptions(
12870
13162
  withProjectOptions(
12871
13163
  withDiffOptions(
12872
- yargs44.positional("directory", {
13164
+ yargs45.positional("directory", {
12873
13165
  describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
12874
13166
  type: "string"
12875
13167
  }).option("format", {
@@ -12909,7 +13201,7 @@ var ProjectMapNodePullModule = {
12909
13201
  let target;
12910
13202
  const isPackage = isPathAPackageFile(directory);
12911
13203
  const expandedSelectIdentifier = (object4) => {
12912
- return selectIdentifier15(object4, projectId);
13204
+ return selectIdentifier16(object4, projectId);
12913
13205
  };
12914
13206
  if (isPackage) {
12915
13207
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -12917,7 +13209,7 @@ var ProjectMapNodePullModule = {
12917
13209
  name: `Package file ${directory}`,
12918
13210
  objects: packageContents.projectMapNodes ?? [],
12919
13211
  selectIdentifier: expandedSelectIdentifier,
12920
- selectDisplayName: selectDisplayName15,
13212
+ selectDisplayName: selectDisplayName16,
12921
13213
  onSyncComplete: async (_, synced) => {
12922
13214
  packageContents.projectMapNodes = synced;
12923
13215
  writeContextPackage2(directory, packageContents);
@@ -12927,7 +13219,7 @@ var ProjectMapNodePullModule = {
12927
13219
  target = await createFileSyncEngineDataSource({
12928
13220
  directory,
12929
13221
  selectIdentifier: expandedSelectIdentifier,
12930
- selectDisplayName: selectDisplayName15,
13222
+ selectDisplayName: selectDisplayName16,
12931
13223
  format,
12932
13224
  selectFilename,
12933
13225
  verbose
@@ -12951,12 +13243,12 @@ import {
12951
13243
  var ProjectMapNodePushModule = {
12952
13244
  command: "push <directory>",
12953
13245
  describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
12954
- builder: (yargs44) => withConfiguration(
13246
+ builder: (yargs45) => withConfiguration(
12955
13247
  withDebugOptions(
12956
13248
  withApiOptions(
12957
13249
  withProjectOptions(
12958
13250
  withDiffOptions(
12959
- yargs44.positional("directory", {
13251
+ yargs45.positional("directory", {
12960
13252
  describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
12961
13253
  type: "string"
12962
13254
  }).option("mode", {
@@ -12993,7 +13285,7 @@ var ProjectMapNodePushModule = {
12993
13285
  let source;
12994
13286
  const isPackage = isPathAPackageFile(directory);
12995
13287
  const expandedSelectIdentifier = (object4) => {
12996
- return selectIdentifier15(object4, projectId);
13288
+ return selectIdentifier16(object4, projectId);
12997
13289
  };
12998
13290
  if (isPackage) {
12999
13291
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -13003,13 +13295,13 @@ var ProjectMapNodePushModule = {
13003
13295
  return selectNodeDepth(a) - selectNodeDepth(b);
13004
13296
  }) ?? [],
13005
13297
  selectIdentifier: expandedSelectIdentifier,
13006
- selectDisplayName: selectDisplayName15
13298
+ selectDisplayName: selectDisplayName16
13007
13299
  });
13008
13300
  } else {
13009
13301
  source = await createFileSyncEngineDataSource({
13010
13302
  directory,
13011
13303
  selectIdentifier: expandedSelectIdentifier,
13012
- selectDisplayName: selectDisplayName15,
13304
+ selectDisplayName: selectDisplayName16,
13013
13305
  selectFilename,
13014
13306
  verbose
13015
13307
  });
@@ -13050,7 +13342,7 @@ var ProjectMapNodePushModule = {
13050
13342
  name: `Nodes re-push from ${directory}`,
13051
13343
  objects: Array.from(nodesFailedDueToMissingParent),
13052
13344
  selectIdentifier: expandedSelectIdentifier,
13053
- selectDisplayName: selectDisplayName15
13345
+ selectDisplayName: selectDisplayName16
13054
13346
  });
13055
13347
  await attemptSync();
13056
13348
  } else {
@@ -13067,10 +13359,10 @@ var ProjectMapNodeRemoveModule = {
13067
13359
  command: "remove <id> <projectMapId>",
13068
13360
  aliases: ["delete", "rm"],
13069
13361
  describe: "Delete a project map node",
13070
- builder: (yargs44) => withConfiguration(
13362
+ builder: (yargs45) => withConfiguration(
13071
13363
  withApiOptions(
13072
13364
  withProjectOptions(
13073
- yargs44.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13365
+ yargs45.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
13074
13366
  )
13075
13367
  )
13076
13368
  ),
@@ -13086,10 +13378,10 @@ var ProjectMapNodeUpdateModule = {
13086
13378
  command: "update <filename> <projectMapId>",
13087
13379
  aliases: ["put"],
13088
13380
  describe: "Insert or update a project map node",
13089
- builder: (yargs44) => withConfiguration(
13381
+ builder: (yargs45) => withConfiguration(
13090
13382
  withApiOptions(
13091
13383
  withProjectOptions(
13092
- yargs44.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13384
+ yargs45.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
13093
13385
  )
13094
13386
  )
13095
13387
  ),
@@ -13105,9 +13397,9 @@ var ProjectMapNodeUpdateModule = {
13105
13397
  var ProjectMapNodeModule = {
13106
13398
  command: "node <command>",
13107
13399
  describe: "Commands for ProjectMap Nodes",
13108
- builder: (yargs44) => yargs44.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13400
+ builder: (yargs45) => yargs45.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
13109
13401
  handler: () => {
13110
- yargs37.help();
13402
+ yargs38.help();
13111
13403
  }
13112
13404
  };
13113
13405
 
@@ -13116,26 +13408,26 @@ var ProjectMapCommand = {
13116
13408
  command: "project-map <command>",
13117
13409
  aliases: ["prm"],
13118
13410
  describe: "Uniform ProjectMap commands",
13119
- builder: (yargs44) => yargs44.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13411
+ builder: (yargs45) => yargs45.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
13120
13412
  handler: () => {
13121
- yargs38.showHelp();
13413
+ yargs39.showHelp();
13122
13414
  }
13123
13415
  };
13124
13416
 
13125
13417
  // src/commands/redirect/index.ts
13126
- import yargs40 from "yargs";
13418
+ import yargs41 from "yargs";
13127
13419
 
13128
13420
  // src/commands/redirect/commands/redirect.ts
13129
- import yargs39 from "yargs";
13421
+ import yargs40 from "yargs";
13130
13422
 
13131
13423
  // src/commands/redirect/commands/RedirectDefinition/_util.ts
13132
13424
  import { RedirectClient } from "@uniformdev/redirect";
13133
- var selectIdentifier16 = (source) => source.id;
13425
+ var selectIdentifier17 = (source) => source.id;
13134
13426
  var selectFilename2 = (source) => {
13135
13427
  const index = source.sourceUrl.lastIndexOf("/");
13136
13428
  return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
13137
13429
  };
13138
- var selectDisplayName16 = (source) => {
13430
+ var selectDisplayName17 = (source) => {
13139
13431
  let pathName = source.sourceUrl;
13140
13432
  if (pathName.length > 30) {
13141
13433
  const slashIndex = source.sourceUrl.indexOf("/", source.sourceUrl.length - 30);
@@ -13151,11 +13443,11 @@ function getRedirectClient(options) {
13151
13443
  var RedirectDefinitionGetModule = {
13152
13444
  command: "get <id>",
13153
13445
  describe: "Fetch a redirect",
13154
- builder: (yargs44) => withConfiguration(
13446
+ builder: (yargs45) => withConfiguration(
13155
13447
  withFormatOptions(
13156
13448
  withApiOptions(
13157
13449
  withProjectOptions(
13158
- yargs44.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13450
+ yargs45.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
13159
13451
  )
13160
13452
  )
13161
13453
  )
@@ -13178,7 +13470,7 @@ var RedirectDefinitionListModule = {
13178
13470
  command: "list",
13179
13471
  describe: "List of redirects",
13180
13472
  aliases: ["ls"],
13181
- builder: (yargs44) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs44)))),
13473
+ builder: (yargs45) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs45)))),
13182
13474
  handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
13183
13475
  const fetch2 = nodeFetchProxy(proxy);
13184
13476
  const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
@@ -13206,9 +13498,9 @@ function createRedirectDefinitionEngineDataSource({
13206
13498
  const redirects = client.getAllRedirects();
13207
13499
  for await (const redirect of redirects) {
13208
13500
  const result = {
13209
- id: selectIdentifier16(redirect.redirect),
13210
- displayName: selectDisplayName16(redirect.redirect),
13211
- providerId: selectIdentifier16(redirect.redirect),
13501
+ id: selectIdentifier17(redirect.redirect),
13502
+ displayName: selectDisplayName17(redirect.redirect),
13503
+ providerId: selectIdentifier17(redirect.redirect),
13212
13504
  object: redirect.redirect
13213
13505
  };
13214
13506
  yield result;
@@ -13230,12 +13522,12 @@ function createRedirectDefinitionEngineDataSource({
13230
13522
  var RedirectDefinitionPullModule = {
13231
13523
  command: "pull <directory>",
13232
13524
  describe: "Pulls all redirects to local files in a directory",
13233
- builder: (yargs44) => withConfiguration(
13525
+ builder: (yargs45) => withConfiguration(
13234
13526
  withDebugOptions(
13235
13527
  withApiOptions(
13236
13528
  withProjectOptions(
13237
13529
  withDiffOptions(
13238
- yargs44.positional("directory", {
13530
+ yargs45.positional("directory", {
13239
13531
  describe: "Directory to save redirects to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
13240
13532
  type: "string"
13241
13533
  }).option("format", {
@@ -13279,8 +13571,8 @@ var RedirectDefinitionPullModule = {
13279
13571
  target = await createArraySyncEngineDataSource({
13280
13572
  name: `Package file ${directory}`,
13281
13573
  objects: packageContents.redirects ?? [],
13282
- selectIdentifier: selectIdentifier16,
13283
- selectDisplayName: selectDisplayName16,
13574
+ selectIdentifier: selectIdentifier17,
13575
+ selectDisplayName: selectDisplayName17,
13284
13576
  onSyncComplete: async (_, synced) => {
13285
13577
  packageContents.redirects = synced;
13286
13578
  writeContextPackage3(directory, packageContents);
@@ -13290,8 +13582,8 @@ var RedirectDefinitionPullModule = {
13290
13582
  target = await createFileSyncEngineDataSource({
13291
13583
  directory,
13292
13584
  selectFilename: selectFilename2,
13293
- selectIdentifier: selectIdentifier16,
13294
- selectDisplayName: selectDisplayName16,
13585
+ selectIdentifier: selectIdentifier17,
13586
+ selectDisplayName: selectDisplayName17,
13295
13587
  format,
13296
13588
  verbose
13297
13589
  });
@@ -13311,12 +13603,12 @@ var RedirectDefinitionPullModule = {
13311
13603
  var RedirectDefinitionPushModule = {
13312
13604
  command: "push <directory>",
13313
13605
  describe: "Pushes all redirects from files in a directory or package to Uniform",
13314
- builder: (yargs44) => withConfiguration(
13606
+ builder: (yargs45) => withConfiguration(
13315
13607
  withDebugOptions(
13316
13608
  withApiOptions(
13317
13609
  withProjectOptions(
13318
13610
  withDiffOptions(
13319
- yargs44.positional("directory", {
13611
+ yargs45.positional("directory", {
13320
13612
  describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
13321
13613
  type: "string"
13322
13614
  }).option("mode", {
@@ -13352,14 +13644,14 @@ var RedirectDefinitionPushModule = {
13352
13644
  source = await createArraySyncEngineDataSource({
13353
13645
  name: `Package file ${directory}`,
13354
13646
  objects: packageContents.redirects ?? [],
13355
- selectIdentifier: selectIdentifier16,
13356
- selectDisplayName: selectDisplayName16
13647
+ selectIdentifier: selectIdentifier17,
13648
+ selectDisplayName: selectDisplayName17
13357
13649
  });
13358
13650
  } else {
13359
13651
  source = await createFileSyncEngineDataSource({
13360
13652
  directory,
13361
- selectIdentifier: selectIdentifier16,
13362
- selectDisplayName: selectDisplayName16,
13653
+ selectIdentifier: selectIdentifier17,
13654
+ selectDisplayName: selectDisplayName17,
13363
13655
  verbose
13364
13656
  });
13365
13657
  }
@@ -13380,9 +13672,9 @@ var RedirectDefinitionRemoveModule = {
13380
13672
  command: "remove <id>",
13381
13673
  aliases: ["delete", "rm"],
13382
13674
  describe: "Delete a redirect",
13383
- builder: (yargs44) => withConfiguration(
13675
+ builder: (yargs45) => withConfiguration(
13384
13676
  withApiOptions(
13385
- withProjectOptions(yargs44.positional("id", { demandOption: true, describe: " UUID to delete" }))
13677
+ withProjectOptions(yargs45.positional("id", { demandOption: true, describe: " UUID to delete" }))
13386
13678
  )
13387
13679
  ),
13388
13680
  handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
@@ -13397,10 +13689,10 @@ var RedirectDefinitionUpdateModule = {
13397
13689
  command: "update <filename>",
13398
13690
  aliases: ["put"],
13399
13691
  describe: "Insert or update a redirect",
13400
- builder: (yargs44) => withConfiguration(
13692
+ builder: (yargs45) => withConfiguration(
13401
13693
  withApiOptions(
13402
13694
  withProjectOptions(
13403
- yargs44.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13695
+ yargs45.positional("filename", { demandOption: true, describe: "Redirect file to put" })
13404
13696
  )
13405
13697
  )
13406
13698
  ),
@@ -13416,9 +13708,9 @@ var RedirectDefinitionUpdateModule = {
13416
13708
  var RedirectDefinitionModule = {
13417
13709
  command: "definition <command>",
13418
13710
  describe: "Commands for Redirect Definitions",
13419
- builder: (yargs44) => yargs44.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13711
+ builder: (yargs45) => yargs45.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
13420
13712
  handler: () => {
13421
- yargs39.help();
13713
+ yargs40.help();
13422
13714
  }
13423
13715
  };
13424
13716
 
@@ -13427,22 +13719,22 @@ var RedirectCommand = {
13427
13719
  command: "redirect <command>",
13428
13720
  aliases: ["red"],
13429
13721
  describe: "Uniform Redirect commands",
13430
- builder: (yargs44) => yargs44.command(RedirectDefinitionModule).demandCommand(),
13722
+ builder: (yargs45) => yargs45.command(RedirectDefinitionModule).demandCommand(),
13431
13723
  handler: () => {
13432
- yargs40.showHelp();
13724
+ yargs41.showHelp();
13433
13725
  }
13434
13726
  };
13435
13727
 
13436
13728
  // src/commands/sync/index.ts
13437
- import yargs41 from "yargs";
13729
+ import yargs42 from "yargs";
13438
13730
 
13439
13731
  // src/webhooksClient.ts
13440
- import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
13732
+ import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
13441
13733
  import PQueue4 from "p-queue";
13442
13734
  import { Svix } from "svix";
13443
13735
  import * as z4 from "zod";
13444
13736
  var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
13445
- var WebhooksClient = class extends ApiClient4 {
13737
+ var WebhooksClient = class extends ApiClient5 {
13446
13738
  constructor(options) {
13447
13739
  super(options);
13448
13740
  }
@@ -13568,8 +13860,8 @@ var WebhooksClient = class extends ApiClient4 {
13568
13860
  };
13569
13861
 
13570
13862
  // src/commands/webhook/commands/_util.ts
13571
- var selectIdentifier17 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13572
- var selectDisplayName17 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13863
+ var selectIdentifier18 = (webhook) => webhook.endpoint.uid ?? webhook.endpoint.id;
13864
+ var selectDisplayName18 = (webhook) => `${webhook.endpoint.url} (pid: ${webhook.endpoint.uid ?? webhook.endpoint.id})`;
13573
13865
  var getWebhooksClient = (options) => new WebhooksClient({ ...options, bypassCache: true, limitPolicy: cliLimitPolicy });
13574
13866
  var compareWebhooks = (source, target) => {
13575
13867
  const { endpoint: sourceEndpoint, ...sourceWithoutEndpoint } = source.object;
@@ -13604,8 +13896,8 @@ function createWebhookEngineDataSource({
13604
13896
  const webhooks = await client.get();
13605
13897
  for await (const webhook of webhooks) {
13606
13898
  const result = {
13607
- id: selectIdentifier17(webhook),
13608
- displayName: selectDisplayName17(webhook),
13899
+ id: selectIdentifier18(webhook),
13900
+ displayName: selectDisplayName18(webhook),
13609
13901
  providerId: webhook.endpoint.id,
13610
13902
  object: webhook
13611
13903
  };
@@ -13628,12 +13920,12 @@ function createWebhookEngineDataSource({
13628
13920
  var WebhookPullModule = {
13629
13921
  command: "pull <directory>",
13630
13922
  describe: "Pulls all webhooks to local files in a directory",
13631
- builder: (yargs44) => withConfiguration(
13923
+ builder: (yargs45) => withConfiguration(
13632
13924
  withApiOptions(
13633
13925
  withDebugOptions(
13634
13926
  withProjectOptions(
13635
13927
  withDiffOptions(
13636
- yargs44.positional("directory", {
13928
+ yargs45.positional("directory", {
13637
13929
  describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
13638
13930
  type: "string"
13639
13931
  }).option("format", {
@@ -13677,8 +13969,8 @@ var WebhookPullModule = {
13677
13969
  target = await createArraySyncEngineDataSource({
13678
13970
  name: `Package file ${directory}`,
13679
13971
  objects: packageContents.webhooks ?? [],
13680
- selectIdentifier: selectIdentifier17,
13681
- selectDisplayName: selectDisplayName17,
13972
+ selectIdentifier: selectIdentifier18,
13973
+ selectDisplayName: selectDisplayName18,
13682
13974
  onSyncComplete: async (_, synced) => {
13683
13975
  packageContents.webhooks = synced;
13684
13976
  writeCanvasPackage(directory, packageContents);
@@ -13687,8 +13979,8 @@ var WebhookPullModule = {
13687
13979
  } else {
13688
13980
  target = await createFileSyncEngineDataSource({
13689
13981
  directory,
13690
- selectIdentifier: selectIdentifier17,
13691
- selectDisplayName: selectDisplayName17,
13982
+ selectIdentifier: selectIdentifier18,
13983
+ selectDisplayName: selectDisplayName18,
13692
13984
  format,
13693
13985
  verbose
13694
13986
  });
@@ -13820,7 +14112,7 @@ function numPad(num, spaces = 6) {
13820
14112
  var SyncPullModule = {
13821
14113
  command: "pull",
13822
14114
  describe: "Pulls whole project to local files in a directory",
13823
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs44))))),
14115
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs45))))),
13824
14116
  handler: async ({ serialization, ...otherParams }) => {
13825
14117
  const config2 = serialization;
13826
14118
  const enabledEntities = Object.entries({
@@ -13846,6 +14138,7 @@ var SyncPullModule = {
13846
14138
  entry: EntryPullModule,
13847
14139
  entryPattern: EntryPatternPullModule,
13848
14140
  contentType: ContentTypePullModule,
14141
+ customView: CustomViewPullModule,
13849
14142
  previewUrl: PreviewUrlPullModule,
13850
14143
  previewViewport: PreviewViewportPullModule,
13851
14144
  policyDocument: PolicyDocumentsPullModule,
@@ -13921,12 +14214,12 @@ var getFormat = (entityType, config2) => {
13921
14214
  var WebhookPushModule = {
13922
14215
  command: "push <directory>",
13923
14216
  describe: "Pushes all webhooks from files in a directory to Uniform",
13924
- builder: (yargs44) => withConfiguration(
14217
+ builder: (yargs45) => withConfiguration(
13925
14218
  withDebugOptions(
13926
14219
  withApiOptions(
13927
14220
  withProjectOptions(
13928
14221
  withDiffOptions(
13929
- yargs44.positional("directory", {
14222
+ yargs45.positional("directory", {
13930
14223
  describe: "Directory to read from. If a filename is used, a package will be read instead.",
13931
14224
  type: "string"
13932
14225
  }).option("mode", {
@@ -13962,14 +14255,14 @@ var WebhookPushModule = {
13962
14255
  source = await createArraySyncEngineDataSource({
13963
14256
  name: `Package file ${directory}`,
13964
14257
  objects: packageContents.webhooks ?? [],
13965
- selectIdentifier: selectIdentifier17,
13966
- selectDisplayName: selectDisplayName17
14258
+ selectIdentifier: selectIdentifier18,
14259
+ selectDisplayName: selectDisplayName18
13967
14260
  });
13968
14261
  } else {
13969
14262
  source = await createFileSyncEngineDataSource({
13970
14263
  directory,
13971
- selectIdentifier: selectIdentifier17,
13972
- selectDisplayName: selectDisplayName17,
14264
+ selectIdentifier: selectIdentifier18,
14265
+ selectDisplayName: selectDisplayName18,
13973
14266
  verbose
13974
14267
  });
13975
14268
  }
@@ -13990,7 +14283,7 @@ var WebhookPushModule = {
13990
14283
  var SyncPushModule = {
13991
14284
  command: "push",
13992
14285
  describe: "Pushes whole project data from files in a directory or package to Uniform",
13993
- builder: (yargs44) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs44))))),
14286
+ builder: (yargs45) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs45))))),
13994
14287
  handler: async ({ serialization, ...otherParams }) => {
13995
14288
  const config2 = serialization;
13996
14289
  const enabledEntities = Object.entries({
@@ -14014,6 +14307,7 @@ var SyncPushModule = {
14014
14307
  projectMapNode: ProjectMapNodePushModule,
14015
14308
  redirect: RedirectDefinitionPushModule,
14016
14309
  contentType: ContentTypePushModule,
14310
+ customView: CustomViewPushModule,
14017
14311
  entry: EntryPushModule,
14018
14312
  entryPattern: EntryPatternPushModule,
14019
14313
  previewUrl: PreviewUrlPushModule,
@@ -14167,21 +14461,21 @@ var getFormat2 = (entityType, config2) => {
14167
14461
  var SyncCommand = {
14168
14462
  command: "sync <command>",
14169
14463
  describe: "Uniform Sync commands",
14170
- builder: (yargs44) => yargs44.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14464
+ builder: (yargs45) => yargs45.command(SyncPullModule).command(SyncPushModule).demandCommand(),
14171
14465
  handler: () => {
14172
- yargs41.showHelp();
14466
+ yargs42.showHelp();
14173
14467
  }
14174
14468
  };
14175
14469
 
14176
14470
  // src/commands/webhook/index.ts
14177
- import yargs42 from "yargs";
14471
+ import yargs43 from "yargs";
14178
14472
  var WebhookCommand = {
14179
14473
  command: "webhook <command>",
14180
14474
  aliases: ["wh"],
14181
14475
  describe: "Commands for webhooks",
14182
- builder: (yargs44) => yargs44.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14476
+ builder: (yargs45) => yargs45.command(WebhookPullModule).command(WebhookPushModule).demandCommand(),
14183
14477
  handler: () => {
14184
- yargs42.help();
14478
+ yargs43.help();
14185
14479
  }
14186
14480
  };
14187
14481
 
@@ -14190,8 +14484,8 @@ import { ProjectClient as ProjectClient2 } from "@uniformdev/canvas";
14190
14484
  var WhoamiCommand = {
14191
14485
  command: "whoami",
14192
14486
  describe: "Prints configured identity and connection context.",
14193
- builder: (yargs44) => withConfiguration(
14194
- withFormatOptions(withApiOptions(yargs44, { includeEdgeApiHost: true })).option("project", {
14487
+ builder: (yargs45) => withConfiguration(
14488
+ withFormatOptions(withApiOptions(yargs45, { includeEdgeApiHost: true })).option("project", {
14195
14489
  describe: "Uniform project ID. Defaults to UNIFORM_CLI_PROJECT_ID or UNIFORM_PROJECT_ID env. Supports dotenv.",
14196
14490
  default: process.env.UNIFORM_CLI_PROJECT_ID ?? process.env.UNIFORM_PROJECT_ID,
14197
14491
  type: "string",
@@ -14458,7 +14752,7 @@ First found was: v${firstVersion}`;
14458
14752
 
14459
14753
  // src/index.ts
14460
14754
  dotenv.config({ quiet: true });
14461
- var yarggery = yargs43(hideBin(process.argv));
14755
+ var yarggery = yargs44(hideBin(process.argv));
14462
14756
  var useDefaultConfig = !process.argv.includes("--config");
14463
14757
  var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
14464
14758
  yarggery.option("verbose", {