@uniformdev/cli 20.57.1 → 20.57.2-alpha.22

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.
@@ -1,4 +1,4 @@
1
- import { C as CLIConfiguration, E as EntityTypes } from './index-BurxbjCD.mjs';
1
+ import { C as CLIConfiguration, E as EntityTypes } from './index-Cs_pXOjF.mjs';
2
2
 
3
3
  type UniformConfigAllOptions = {
4
4
  /**
@@ -6,12 +6,33 @@ type StateArgs = {
6
6
  type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
7
7
  type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'webhook' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'label' | 'locale' | 'componentPattern' | 'compositionPattern' | 'policyDocument' | 'projectMapDefinition' | 'projectMapNode' | 'previewUrl' | 'previewViewport' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
8
8
  type SyncFileFormat = 'yaml' | 'json';
9
- type EntityConfiguration = {
9
+ type EntityConfigurationBase = {
10
10
  mode?: SyncMode;
11
11
  directory?: string;
12
12
  format?: SyncFileFormat;
13
13
  disabled?: true;
14
14
  };
15
+ type EntityFilterInclude = {
16
+ /** If set, only entities matching the criteria will be synced. Cannot be combined with `exclude`. */
17
+ include: {
18
+ ids?: string[];
19
+ namePattern?: string;
20
+ };
21
+ exclude?: never;
22
+ };
23
+ type EntityFilterExclude = {
24
+ include?: never;
25
+ /** If set, entities matching the criteria will be excluded from sync. Cannot be combined with `include`. */
26
+ exclude: {
27
+ ids?: string[];
28
+ namePattern?: string;
29
+ };
30
+ };
31
+ type EntityFilterNone = {
32
+ include?: never;
33
+ exclude?: never;
34
+ };
35
+ type EntityConfiguration = EntityConfigurationBase & (EntityFilterInclude | EntityFilterExclude | EntityFilterNone);
15
36
  type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
16
37
  type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
17
38
  publish?: boolean;
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { C as CLIConfiguration } from './index-BurxbjCD.mjs';
2
+ export { C as CLIConfiguration } from './index-Cs_pXOjF.mjs';
package/dist/index.mjs CHANGED
@@ -558,6 +558,71 @@ async function createArraySyncEngineDataSource({
558
558
  };
559
559
  }
560
560
 
561
+ // src/sync/entityFilter.ts
562
+ function resolveEntityFilter(entityConfig, operation) {
563
+ const directional = entityConfig?.[operation];
564
+ const resolvedInclude = directional?.include ?? entityConfig?.include;
565
+ const resolvedExclude = directional?.exclude ?? entityConfig?.exclude;
566
+ const includeIds = resolvedInclude?.ids;
567
+ const excludeIds = resolvedExclude?.ids;
568
+ const includeNamePattern = resolvedInclude?.namePattern;
569
+ const excludeNamePattern = resolvedExclude?.namePattern;
570
+ const hasInclude = !!(includeIds?.length || includeNamePattern);
571
+ const hasExclude = !!(excludeIds?.length || excludeNamePattern);
572
+ if (hasInclude && hasExclude) {
573
+ const includeSource = directional?.include ? `${operation}.include` : "include";
574
+ const excludeSource = directional?.exclude ? `${operation}.exclude` : "exclude";
575
+ throw new Error(
576
+ `Entity filter for '${operation}' resolved both ${includeSource} and ${excludeSource}. Use one or the other. If a top-level filter conflicts with a per-direction filter, set the unwanted direction to { ids: [] } to clear it.`
577
+ );
578
+ }
579
+ return createEntityFilter(
580
+ { ids: includeIds, namePattern: includeNamePattern },
581
+ { ids: excludeIds, namePattern: excludeNamePattern }
582
+ );
583
+ }
584
+ function createEntityFilter(include, exclude) {
585
+ const includeIds = Array.isArray(include) ? include : include?.ids;
586
+ const excludeIds = Array.isArray(exclude) ? exclude : exclude?.ids;
587
+ const includeNamePattern = Array.isArray(include) ? void 0 : include?.namePattern;
588
+ const excludeNamePattern = Array.isArray(exclude) ? void 0 : exclude?.namePattern;
589
+ const hasInclude = !!(includeIds?.length || includeNamePattern);
590
+ const hasExclude = !!(excludeIds?.length || excludeNamePattern);
591
+ if (hasInclude && hasExclude) {
592
+ throw new Error("Entity filter cannot have both `include` and `exclude` defined. Use one or the other.");
593
+ }
594
+ if (!hasInclude && !hasExclude) {
595
+ return void 0;
596
+ }
597
+ const includeRegex = includeNamePattern ? safeRegex(includeNamePattern) : void 0;
598
+ const excludeRegex = excludeNamePattern ? safeRegex(excludeNamePattern) : void 0;
599
+ if (hasInclude) {
600
+ const includeSet = includeIds?.length ? new Set(includeIds) : void 0;
601
+ return (obj) => {
602
+ const ids = Array.isArray(obj.id) ? obj.id : [obj.id];
603
+ const matchesIds = includeSet ? ids.some((id) => includeSet.has(id)) : true;
604
+ const matchesName = includeRegex ? includeRegex.test(obj.displayName ?? "") : true;
605
+ return matchesIds && matchesName;
606
+ };
607
+ }
608
+ const excludeSet = excludeIds?.length ? new Set(excludeIds) : void 0;
609
+ return (obj) => {
610
+ const ids = Array.isArray(obj.id) ? obj.id : [obj.id];
611
+ const matchesIds = excludeSet ? ids.some((id) => excludeSet.has(id)) : false;
612
+ const matchesName = excludeRegex ? excludeRegex.test(obj.displayName ?? "") : false;
613
+ return !(matchesIds || matchesName);
614
+ };
615
+ }
616
+ function safeRegex(pattern) {
617
+ try {
618
+ return new RegExp(pattern);
619
+ } catch {
620
+ throw new Error(
621
+ `Invalid namePattern regex: "${pattern}". Provide a valid JavaScript regular expression.`
622
+ );
623
+ }
624
+ }
625
+
561
626
  // src/sync/fileSyncEngineDataSource.ts
562
627
  import { red } from "colorette";
563
628
  import { existsSync as existsSync2, mkdirSync as mkdirSync2 } from "fs";
@@ -656,9 +721,13 @@ async function createFileSyncEngineDataSource({
656
721
  const fullFilename = join(directory, filename);
657
722
  try {
658
723
  const contents = readFileToObject(fullFilename);
724
+ const id = selectIdentifier18(contents);
725
+ if (id === void 0 || id === null || id === "" || Array.isArray(id) && (id.length === 0 || id.every((s) => !s))) {
726
+ throw new Error(`File does not contain a valid identifier.`);
727
+ }
659
728
  const displayName = selectDisplayName18(contents);
660
729
  const object4 = {
661
- id: selectIdentifier18(contents),
730
+ id,
662
731
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
663
732
  providerId: fullFilename,
664
733
  object: omit(contents, ["$schema"])
@@ -785,12 +854,14 @@ async function syncEngine({
785
854
  onBeforeProcessObject,
786
855
  onBeforeCompareObjects,
787
856
  onBeforeWriteObject,
788
- onError
857
+ onError,
858
+ objectFilter
789
859
  //verbose = false,
790
860
  }) {
791
861
  const status = new ReactiveStatusUpdate((status2) => syncEngineEvents.emit("statusUpdate", status2));
792
862
  const targetItems = /* @__PURE__ */ new Map();
793
863
  const deleteTracker = /* @__PURE__ */ new Set();
864
+ const getFirstId = (id) => Array.isArray(id) ? id[0] : id;
794
865
  const processDelete = async (object4) => {
795
866
  if (deleteTracker.has(object4)) return;
796
867
  deleteTracker.add(object4);
@@ -808,7 +879,7 @@ async function syncEngine({
808
879
  } finally {
809
880
  log2({
810
881
  action: "delete",
811
- id: object4.id[0],
882
+ id: getFirstId(object4.id),
812
883
  providerId: object4.providerId,
813
884
  displayName: object4.displayName ?? object4.providerId,
814
885
  whatIf,
@@ -817,6 +888,9 @@ async function syncEngine({
817
888
  }
818
889
  };
819
890
  for await (const obj of target.objects) {
891
+ if (objectFilter && !objectFilter(obj)) {
892
+ continue;
893
+ }
820
894
  status.fetched++;
821
895
  if (Array.isArray(obj.id)) {
822
896
  obj.id.forEach((o) => targetItems.set(o, obj));
@@ -826,7 +900,12 @@ async function syncEngine({
826
900
  }
827
901
  const actions = [];
828
902
  let sourceHasItems = false;
903
+ let totalSourceItems = 0;
829
904
  for await (let sourceObject of source.objects) {
905
+ totalSourceItems++;
906
+ if (objectFilter && !objectFilter(sourceObject)) {
907
+ continue;
908
+ }
830
909
  sourceHasItems = true;
831
910
  if (onBeforeProcessObject) {
832
911
  await onBeforeProcessObject(sourceObject);
@@ -911,6 +990,11 @@ async function syncEngine({
911
990
  }
912
991
  }
913
992
  }
993
+ if (objectFilter && totalSourceItems > 0 && !sourceHasItems) {
994
+ console.warn(
995
+ `Warning: objectFilter is active but matched 0 of ${totalSourceItems} source entities from '${source.name}'. Check your include/exclude filter configuration.`
996
+ );
997
+ }
914
998
  status.changeCount += targetItems.size;
915
999
  status.compared += targetItems.size;
916
1000
  if (mode === "mirror") {
@@ -2887,7 +2971,8 @@ var AssetPullModule = {
2887
2971
  whatIf,
2888
2972
  project: projectId,
2889
2973
  diff: diffMode,
2890
- allowEmptySource
2974
+ allowEmptySource,
2975
+ objectFilter
2891
2976
  }) => {
2892
2977
  const fetch2 = nodeFetchProxy(proxy, verbose);
2893
2978
  const client = getAssetClient({
@@ -2938,6 +3023,7 @@ var AssetPullModule = {
2938
3023
  mode,
2939
3024
  whatIf,
2940
3025
  allowEmptySource: allowEmptySource ?? true,
3026
+ objectFilter,
2941
3027
  log: createSyncEngineConsoleLogger({ diffMode }),
2942
3028
  onBeforeCompareObjects: async (sourceObject) => {
2943
3029
  delete sourceObject.object.asset._author;
@@ -2997,6 +3083,7 @@ var AssetPushModule = {
2997
3083
  project: projectId,
2998
3084
  diff: diffMode,
2999
3085
  allowEmptySource,
3086
+ objectFilter,
3000
3087
  verbose
3001
3088
  }) => {
3002
3089
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3032,6 +3119,7 @@ var AssetPushModule = {
3032
3119
  mode,
3033
3120
  whatIf,
3034
3121
  allowEmptySource,
3122
+ objectFilter,
3035
3123
  log: createSyncEngineConsoleLogger({ diffMode }),
3036
3124
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
3037
3125
  if (targetObject) {
@@ -3283,6 +3371,7 @@ var CategoryPullModule = {
3283
3371
  project: projectId,
3284
3372
  diff: diffMode,
3285
3373
  allowEmptySource,
3374
+ objectFilter,
3286
3375
  verbose
3287
3376
  }) => {
3288
3377
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3317,6 +3406,7 @@ var CategoryPullModule = {
3317
3406
  mode,
3318
3407
  whatIf,
3319
3408
  allowEmptySource: allowEmptySource ?? true,
3409
+ objectFilter,
3320
3410
  log: createSyncEngineConsoleLogger({ diffMode })
3321
3411
  });
3322
3412
  }
@@ -3356,6 +3446,7 @@ var CategoryPushModule = {
3356
3446
  project: projectId,
3357
3447
  diff: diffMode,
3358
3448
  allowEmptySource,
3449
+ objectFilter,
3359
3450
  verbose
3360
3451
  }) => {
3361
3452
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3385,6 +3476,7 @@ var CategoryPushModule = {
3385
3476
  mode,
3386
3477
  whatIf,
3387
3478
  allowEmptySource,
3479
+ objectFilter,
3388
3480
  log: createSyncEngineConsoleLogger({ diffMode })
3389
3481
  });
3390
3482
  }
@@ -3618,6 +3710,7 @@ var ComponentPullModule = {
3618
3710
  project: projectId,
3619
3711
  diff: diffMode,
3620
3712
  allowEmptySource,
3713
+ objectFilter,
3621
3714
  verbose
3622
3715
  }) => {
3623
3716
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3653,6 +3746,7 @@ var ComponentPullModule = {
3653
3746
  mode,
3654
3747
  whatIf,
3655
3748
  allowEmptySource: allowEmptySource ?? true,
3749
+ objectFilter,
3656
3750
  log: createSyncEngineConsoleLogger({ diffMode })
3657
3751
  });
3658
3752
  }
@@ -3692,6 +3786,7 @@ var ComponentPushModule = {
3692
3786
  project: projectId,
3693
3787
  diff: diffMode,
3694
3788
  allowEmptySource,
3789
+ objectFilter,
3695
3790
  verbose
3696
3791
  }) => {
3697
3792
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -3722,6 +3817,7 @@ var ComponentPushModule = {
3722
3817
  mode,
3723
3818
  whatIf,
3724
3819
  allowEmptySource,
3820
+ objectFilter,
3725
3821
  log: createSyncEngineConsoleLogger({ diffMode })
3726
3822
  });
3727
3823
  }
@@ -4266,7 +4362,8 @@ var CompositionPublishModule = {
4266
4362
  onlyPatterns,
4267
4363
  patternType,
4268
4364
  verbose,
4269
- directory
4365
+ directory,
4366
+ objectFilter
4270
4367
  }) => {
4271
4368
  if (!all && !ids || all && ids) {
4272
4369
  console.error(`Specify --all or composition ID(s) to publish.`);
@@ -4301,6 +4398,7 @@ var CompositionPublishModule = {
4301
4398
  mode: "createOrUpdate",
4302
4399
  whatIf,
4303
4400
  verbose,
4401
+ objectFilter,
4304
4402
  log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
4305
4403
  onBeforeCompareObjects: async (sourceObject) => {
4306
4404
  return replaceLocalUrlsWithRemoteReferences({
@@ -4421,6 +4519,7 @@ function componentInstancePullModuleFactory(type) {
4421
4519
  project: projectId,
4422
4520
  diff: diffMode,
4423
4521
  allowEmptySource,
4522
+ objectFilter,
4424
4523
  verbose
4425
4524
  }) => {
4426
4525
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -4463,6 +4562,7 @@ function componentInstancePullModuleFactory(type) {
4463
4562
  mode,
4464
4563
  whatIf,
4465
4564
  allowEmptySource: allowEmptySource ?? true,
4565
+ objectFilter,
4466
4566
  log: createSyncEngineConsoleLogger({ diffMode }),
4467
4567
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
4468
4568
  return replaceRemoteUrlsWithLocalReferences({
@@ -4615,6 +4715,7 @@ function componentInstancePushModuleFactory(type) {
4615
4715
  patternType,
4616
4716
  diff: diffMode,
4617
4717
  allowEmptySource,
4718
+ objectFilter,
4618
4719
  verbose
4619
4720
  }) => {
4620
4721
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -4660,6 +4761,7 @@ function componentInstancePushModuleFactory(type) {
4660
4761
  whatIf,
4661
4762
  verbose,
4662
4763
  allowEmptySource,
4764
+ objectFilter,
4663
4765
  log: createSyncEngineConsoleLogger({ diffMode }),
4664
4766
  onBeforeProcessObject: async (sourceObject) => {
4665
4767
  await localeValidationHook({
@@ -5394,6 +5496,7 @@ var ContentTypePullModule = {
5394
5496
  project: projectId,
5395
5497
  diff: diffMode,
5396
5498
  allowEmptySource,
5499
+ objectFilter,
5397
5500
  verbose
5398
5501
  }) => {
5399
5502
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -5433,6 +5536,7 @@ var ContentTypePullModule = {
5433
5536
  mode,
5434
5537
  whatIf,
5435
5538
  allowEmptySource: allowEmptySource ?? true,
5539
+ objectFilter,
5436
5540
  log: createSyncEngineConsoleLogger({ diffMode })
5437
5541
  });
5438
5542
  }
@@ -5477,6 +5581,7 @@ var ContentTypePushModule = {
5477
5581
  project: projectId,
5478
5582
  diff: diffMode,
5479
5583
  allowEmptySource,
5584
+ objectFilter,
5480
5585
  verbose
5481
5586
  }) => {
5482
5587
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -5511,6 +5616,7 @@ var ContentTypePushModule = {
5511
5616
  mode,
5512
5617
  whatIf,
5513
5618
  allowEmptySource,
5619
+ objectFilter,
5514
5620
  log: createSyncEngineConsoleLogger({ diffMode })
5515
5621
  });
5516
5622
  }
@@ -5807,6 +5913,7 @@ var DataTypePullModule = {
5807
5913
  project: projectId,
5808
5914
  diff: diffMode,
5809
5915
  allowEmptySource,
5916
+ objectFilter,
5810
5917
  verbose
5811
5918
  }) => {
5812
5919
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -5846,6 +5953,7 @@ var DataTypePullModule = {
5846
5953
  mode,
5847
5954
  whatIf,
5848
5955
  allowEmptySource: allowEmptySource ?? true,
5956
+ objectFilter,
5849
5957
  log: createSyncEngineConsoleLogger({ diffMode })
5850
5958
  });
5851
5959
  }
@@ -5885,6 +5993,7 @@ var DataTypePushModule = {
5885
5993
  project: projectId,
5886
5994
  diff: diffMode,
5887
5995
  allowEmptySource,
5996
+ objectFilter,
5888
5997
  verbose
5889
5998
  }) => {
5890
5999
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -5919,6 +6028,7 @@ var DataTypePushModule = {
5919
6028
  mode,
5920
6029
  whatIf,
5921
6030
  allowEmptySource,
6031
+ objectFilter,
5922
6032
  log: createSyncEngineConsoleLogger({ diffMode })
5923
6033
  });
5924
6034
  }
@@ -6255,7 +6365,8 @@ var EntryPublishModule = {
6255
6365
  project: projectId,
6256
6366
  whatIf,
6257
6367
  verbose,
6258
- directory
6368
+ directory,
6369
+ objectFilter
6259
6370
  }) => {
6260
6371
  if (!all && !ids || all && ids) {
6261
6372
  console.error(`Specify --all or entry ID(s) to publish.`);
@@ -6283,6 +6394,7 @@ var EntryPublishModule = {
6283
6394
  // Publishing is one-direction operation, so no need to support automatic un-publishing
6284
6395
  mode: "createOrUpdate",
6285
6396
  whatIf,
6397
+ objectFilter,
6286
6398
  log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
6287
6399
  onBeforeCompareObjects: async (sourceObject) => {
6288
6400
  return replaceLocalUrlsWithRemoteReferences({
@@ -6346,6 +6458,7 @@ var EntryPullModule = {
6346
6458
  project: projectId,
6347
6459
  diff: diffMode,
6348
6460
  allowEmptySource,
6461
+ objectFilter,
6349
6462
  verbose
6350
6463
  }) => {
6351
6464
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -6386,6 +6499,7 @@ var EntryPullModule = {
6386
6499
  mode,
6387
6500
  whatIf,
6388
6501
  allowEmptySource: allowEmptySource ?? true,
6502
+ objectFilter,
6389
6503
  log: createSyncEngineConsoleLogger({ diffMode }),
6390
6504
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
6391
6505
  return replaceRemoteUrlsWithLocalReferences({
@@ -6445,6 +6559,7 @@ var EntryPushModule = {
6445
6559
  project: projectId,
6446
6560
  diff: diffMode,
6447
6561
  allowEmptySource,
6562
+ objectFilter,
6448
6563
  verbose
6449
6564
  }) => {
6450
6565
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -6487,6 +6602,7 @@ var EntryPushModule = {
6487
6602
  mode,
6488
6603
  whatIf,
6489
6604
  allowEmptySource,
6605
+ objectFilter,
6490
6606
  log: createSyncEngineConsoleLogger({ diffMode }),
6491
6607
  onBeforeProcessObject: async (sourceObject) => {
6492
6608
  await localeValidationHook({
@@ -6844,7 +6960,8 @@ var EntryPatternPublishModule = {
6844
6960
  whatIf,
6845
6961
  project: projectId,
6846
6962
  verbose,
6847
- directory
6963
+ directory,
6964
+ objectFilter
6848
6965
  }) => {
6849
6966
  if (!all && !ids || all && ids) {
6850
6967
  console.error(`Specify --all or entry pattern ID(s) to publish.`);
@@ -6872,6 +6989,7 @@ var EntryPatternPublishModule = {
6872
6989
  // Publishing is one-direction operation, so no need to support automatic un-publishing
6873
6990
  mode: "createOrUpdate",
6874
6991
  whatIf,
6992
+ objectFilter,
6875
6993
  log: createPublishStatusSyncEngineConsoleLogger({ status: "publish" }),
6876
6994
  onBeforeCompareObjects: async (sourceObject) => {
6877
6995
  return replaceLocalUrlsWithRemoteReferences({
@@ -6935,6 +7053,7 @@ var EntryPatternPullModule = {
6935
7053
  project: projectId,
6936
7054
  diff: diffMode,
6937
7055
  allowEmptySource,
7056
+ objectFilter,
6938
7057
  verbose
6939
7058
  }) => {
6940
7059
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -6975,6 +7094,7 @@ var EntryPatternPullModule = {
6975
7094
  mode,
6976
7095
  whatIf,
6977
7096
  allowEmptySource: allowEmptySource ?? true,
7097
+ objectFilter,
6978
7098
  log: createSyncEngineConsoleLogger({ diffMode }),
6979
7099
  onBeforeCompareObjects: async (sourceObject, targetObject) => {
6980
7100
  return replaceRemoteUrlsWithLocalReferences({
@@ -7039,6 +7159,7 @@ var EntryPatternPushModule = {
7039
7159
  project: projectId,
7040
7160
  diff: diffMode,
7041
7161
  allowEmptySource,
7162
+ objectFilter,
7042
7163
  verbose
7043
7164
  }) => {
7044
7165
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -7081,6 +7202,7 @@ var EntryPatternPushModule = {
7081
7202
  mode,
7082
7203
  whatIf,
7083
7204
  allowEmptySource,
7205
+ objectFilter,
7084
7206
  log: createSyncEngineConsoleLogger({ diffMode }),
7085
7207
  onBeforeProcessObject: async (sourceObject) => {
7086
7208
  await localeValidationHook({
@@ -7561,6 +7683,7 @@ var LocalePullModule = {
7561
7683
  project: projectId,
7562
7684
  diff: diffMode,
7563
7685
  allowEmptySource,
7686
+ objectFilter,
7564
7687
  verbose
7565
7688
  }) => {
7566
7689
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -7600,6 +7723,7 @@ var LocalePullModule = {
7600
7723
  mode,
7601
7724
  whatIf,
7602
7725
  allowEmptySource: allowEmptySource ?? true,
7726
+ objectFilter,
7603
7727
  log: createSyncEngineConsoleLogger({ diffMode })
7604
7728
  });
7605
7729
  }
@@ -7639,6 +7763,7 @@ var LocalePushModule = {
7639
7763
  project: projectId,
7640
7764
  diff: diffMode,
7641
7765
  allowEmptySource,
7766
+ objectFilter,
7642
7767
  verbose
7643
7768
  }) => {
7644
7769
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -7673,6 +7798,7 @@ var LocalePushModule = {
7673
7798
  mode,
7674
7799
  whatIf,
7675
7800
  allowEmptySource,
7801
+ objectFilter,
7676
7802
  log: createSyncEngineConsoleLogger({ diffMode })
7677
7803
  });
7678
7804
  }
@@ -7812,6 +7938,7 @@ var PreviewUrlPullModule = {
7812
7938
  project: projectId,
7813
7939
  diff: diffMode,
7814
7940
  allowEmptySource,
7941
+ objectFilter,
7815
7942
  verbose
7816
7943
  }) => {
7817
7944
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -7846,6 +7973,7 @@ var PreviewUrlPullModule = {
7846
7973
  mode,
7847
7974
  whatIf,
7848
7975
  allowEmptySource: allowEmptySource ?? true,
7976
+ objectFilter,
7849
7977
  log: createSyncEngineConsoleLogger({ diffMode })
7850
7978
  });
7851
7979
  }
@@ -7885,6 +8013,7 @@ var PreviewUrlPushModule = {
7885
8013
  project: projectId,
7886
8014
  diff: diffMode,
7887
8015
  allowEmptySource,
8016
+ objectFilter,
7888
8017
  verbose
7889
8018
  }) => {
7890
8019
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -7914,6 +8043,7 @@ var PreviewUrlPushModule = {
7914
8043
  mode,
7915
8044
  whatIf,
7916
8045
  allowEmptySource,
8046
+ objectFilter,
7917
8047
  log: createSyncEngineConsoleLogger({ diffMode })
7918
8048
  });
7919
8049
  }
@@ -8101,6 +8231,7 @@ var PreviewViewportPullModule = {
8101
8231
  project: projectId,
8102
8232
  diff: diffMode,
8103
8233
  allowEmptySource,
8234
+ objectFilter,
8104
8235
  verbose
8105
8236
  }) => {
8106
8237
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8135,6 +8266,7 @@ var PreviewViewportPullModule = {
8135
8266
  mode,
8136
8267
  whatIf,
8137
8268
  allowEmptySource: allowEmptySource ?? true,
8269
+ objectFilter,
8138
8270
  log: createSyncEngineConsoleLogger({ diffMode })
8139
8271
  });
8140
8272
  }
@@ -8174,6 +8306,7 @@ var PreviewViewportPushModule = {
8174
8306
  project: projectId,
8175
8307
  diff: diffMode,
8176
8308
  allowEmptySource,
8309
+ objectFilter,
8177
8310
  verbose
8178
8311
  }) => {
8179
8312
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8203,6 +8336,7 @@ var PreviewViewportPushModule = {
8203
8336
  mode,
8204
8337
  whatIf,
8205
8338
  allowEmptySource,
8339
+ objectFilter,
8206
8340
  log: createSyncEngineConsoleLogger({ diffMode })
8207
8341
  });
8208
8342
  }
@@ -8389,6 +8523,7 @@ var PromptPullModule = {
8389
8523
  project: projectId,
8390
8524
  diff: diffMode,
8391
8525
  allowEmptySource,
8526
+ objectFilter,
8392
8527
  verbose
8393
8528
  }) => {
8394
8529
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8428,6 +8563,7 @@ var PromptPullModule = {
8428
8563
  mode,
8429
8564
  whatIf,
8430
8565
  allowEmptySource: allowEmptySource ?? true,
8566
+ objectFilter,
8431
8567
  log: createSyncEngineConsoleLogger({ diffMode })
8432
8568
  });
8433
8569
  }
@@ -8467,6 +8603,7 @@ var PromptPushModule = {
8467
8603
  project: projectId,
8468
8604
  diff: diffMode,
8469
8605
  allowEmptySource,
8606
+ objectFilter,
8470
8607
  verbose
8471
8608
  }) => {
8472
8609
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8501,6 +8638,7 @@ var PromptPushModule = {
8501
8638
  mode,
8502
8639
  whatIf,
8503
8640
  allowEmptySource,
8641
+ objectFilter,
8504
8642
  log: createSyncEngineConsoleLogger({ diffMode })
8505
8643
  });
8506
8644
  }
@@ -8647,6 +8785,7 @@ var WorkflowPullModule = {
8647
8785
  project: projectId,
8648
8786
  diff: diffMode,
8649
8787
  allowEmptySource,
8788
+ objectFilter,
8650
8789
  verbose
8651
8790
  }) => {
8652
8791
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8681,6 +8820,7 @@ var WorkflowPullModule = {
8681
8820
  mode,
8682
8821
  whatIf,
8683
8822
  allowEmptySource: allowEmptySource ?? true,
8823
+ objectFilter,
8684
8824
  log: createSyncEngineConsoleLogger({ diffMode })
8685
8825
  });
8686
8826
  }
@@ -8720,6 +8860,7 @@ var WorkflowPushModule = {
8720
8860
  project: projectId,
8721
8861
  diff: diffMode,
8722
8862
  allowEmptySource,
8863
+ objectFilter,
8723
8864
  verbose
8724
8865
  }) => {
8725
8866
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8749,6 +8890,7 @@ var WorkflowPushModule = {
8749
8890
  mode,
8750
8891
  whatIf,
8751
8892
  allowEmptySource,
8893
+ objectFilter,
8752
8894
  log: createSyncEngineConsoleLogger({ diffMode })
8753
8895
  });
8754
8896
  }
@@ -8919,6 +9061,7 @@ var AggregatePullModule = {
8919
9061
  project: projectId,
8920
9062
  diff: diffMode,
8921
9063
  allowEmptySource,
9064
+ objectFilter,
8922
9065
  verbose
8923
9066
  }) => {
8924
9067
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -8953,6 +9096,7 @@ var AggregatePullModule = {
8953
9096
  mode,
8954
9097
  whatIf,
8955
9098
  allowEmptySource,
9099
+ objectFilter,
8956
9100
  log: createSyncEngineConsoleLogger({ diffMode })
8957
9101
  });
8958
9102
  }
@@ -8992,6 +9136,7 @@ var AggregatePushModule = {
8992
9136
  project: projectId,
8993
9137
  diff: diffMode,
8994
9138
  allowEmptySource,
9139
+ objectFilter,
8995
9140
  verbose
8996
9141
  }) => {
8997
9142
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9021,6 +9166,7 @@ var AggregatePushModule = {
9021
9166
  mode,
9022
9167
  whatIf,
9023
9168
  allowEmptySource,
9169
+ objectFilter,
9024
9170
  log: createSyncEngineConsoleLogger({ diffMode })
9025
9171
  });
9026
9172
  await target.complete();
@@ -9251,6 +9397,7 @@ var EnrichmentPullModule = {
9251
9397
  project: projectId,
9252
9398
  diff: diffMode,
9253
9399
  allowEmptySource,
9400
+ objectFilter,
9254
9401
  verbose
9255
9402
  }) => {
9256
9403
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9285,6 +9432,7 @@ var EnrichmentPullModule = {
9285
9432
  mode,
9286
9433
  whatIf,
9287
9434
  allowEmptySource,
9435
+ objectFilter,
9288
9436
  log: createSyncEngineConsoleLogger({ diffMode })
9289
9437
  });
9290
9438
  }
@@ -9322,6 +9470,7 @@ var EnrichmentPushModule = {
9322
9470
  project: projectId,
9323
9471
  diff: diffMode,
9324
9472
  allowEmptySource,
9473
+ objectFilter,
9325
9474
  verbose
9326
9475
  }) => {
9327
9476
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9351,6 +9500,7 @@ var EnrichmentPushModule = {
9351
9500
  mode,
9352
9501
  whatIf,
9353
9502
  allowEmptySource,
9503
+ objectFilter,
9354
9504
  log: createSyncEngineConsoleLogger({ diffMode })
9355
9505
  });
9356
9506
  }
@@ -9637,6 +9787,7 @@ var QuirkPullModule = {
9637
9787
  project: projectId,
9638
9788
  diff: diffMode,
9639
9789
  allowEmptySource,
9790
+ objectFilter,
9640
9791
  verbose
9641
9792
  }) => {
9642
9793
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9671,6 +9822,7 @@ var QuirkPullModule = {
9671
9822
  mode,
9672
9823
  whatIf,
9673
9824
  allowEmptySource,
9825
+ objectFilter,
9674
9826
  log: createSyncEngineConsoleLogger({ diffMode })
9675
9827
  });
9676
9828
  }
@@ -9711,6 +9863,7 @@ var QuirkPushModule = {
9711
9863
  project: projectId,
9712
9864
  diff: diffMode,
9713
9865
  allowEmptySource,
9866
+ objectFilter,
9714
9867
  verbose
9715
9868
  }) => {
9716
9869
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9740,6 +9893,7 @@ var QuirkPushModule = {
9740
9893
  mode,
9741
9894
  whatIf,
9742
9895
  allowEmptySource,
9896
+ objectFilter,
9743
9897
  log: createSyncEngineConsoleLogger({ diffMode })
9744
9898
  });
9745
9899
  }
@@ -9920,6 +10074,7 @@ var SignalPullModule = {
9920
10074
  project: projectId,
9921
10075
  diff: diffMode,
9922
10076
  allowEmptySource,
10077
+ objectFilter,
9923
10078
  verbose
9924
10079
  }) => {
9925
10080
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -9954,6 +10109,7 @@ var SignalPullModule = {
9954
10109
  mode,
9955
10110
  whatIf,
9956
10111
  allowEmptySource,
10112
+ objectFilter,
9957
10113
  log: createSyncEngineConsoleLogger({ diffMode })
9958
10114
  });
9959
10115
  }
@@ -9994,6 +10150,7 @@ var SignalPushModule = {
9994
10150
  project: projectId,
9995
10151
  diff: diffMode,
9996
10152
  allowEmptySource,
10153
+ objectFilter,
9997
10154
  verbose
9998
10155
  }) => {
9999
10156
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -10023,6 +10180,7 @@ var SignalPushModule = {
10023
10180
  mode,
10024
10181
  whatIf,
10025
10182
  allowEmptySource,
10183
+ objectFilter,
10026
10184
  log: createSyncEngineConsoleLogger({ diffMode })
10027
10185
  });
10028
10186
  }
@@ -10203,6 +10361,7 @@ var TestPullModule = {
10203
10361
  project: projectId,
10204
10362
  diff: diffMode,
10205
10363
  allowEmptySource,
10364
+ objectFilter,
10206
10365
  verbose
10207
10366
  }) => {
10208
10367
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -10237,6 +10396,7 @@ var TestPullModule = {
10237
10396
  mode,
10238
10397
  whatIf,
10239
10398
  allowEmptySource,
10399
+ objectFilter,
10240
10400
  log: createSyncEngineConsoleLogger({ diffMode })
10241
10401
  });
10242
10402
  }
@@ -10277,6 +10437,7 @@ var TestPushModule = {
10277
10437
  project: projectId,
10278
10438
  diff: diffMode,
10279
10439
  allowEmptySource,
10440
+ objectFilter,
10280
10441
  verbose
10281
10442
  }) => {
10282
10443
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -10306,6 +10467,7 @@ var TestPushModule = {
10306
10467
  mode,
10307
10468
  whatIf,
10308
10469
  allowEmptySource,
10470
+ objectFilter,
10309
10471
  log: createSyncEngineConsoleLogger({ diffMode })
10310
10472
  });
10311
10473
  }
@@ -11481,6 +11643,7 @@ var PolicyDocumentsPullModule = {
11481
11643
  project: projectId,
11482
11644
  diff: diffMode,
11483
11645
  allowEmptySource,
11646
+ objectFilter,
11484
11647
  verbose
11485
11648
  }) => {
11486
11649
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -11498,6 +11661,7 @@ var PolicyDocumentsPullModule = {
11498
11661
  mode,
11499
11662
  whatIf,
11500
11663
  allowEmptySource: allowEmptySource ?? true,
11664
+ objectFilter,
11501
11665
  log: createSyncEngineConsoleLogger({ diffMode })
11502
11666
  });
11503
11667
  }
@@ -11620,6 +11784,7 @@ var PolicyDocumentsPushModule = {
11620
11784
  project: projectId,
11621
11785
  diff: diffMode,
11622
11786
  allowEmptySource,
11787
+ objectFilter,
11623
11788
  verbose
11624
11789
  }) => {
11625
11790
  if (!existsSync5(directory)) {
@@ -11649,6 +11814,7 @@ var PolicyDocumentsPushModule = {
11649
11814
  mode,
11650
11815
  whatIf,
11651
11816
  allowEmptySource: allowEmptySource ?? true,
11817
+ objectFilter,
11652
11818
  log: createSyncEngineConsoleLogger({ diffMode })
11653
11819
  });
11654
11820
  if (!whatIf) {
@@ -11826,6 +11992,7 @@ var ProjectMapDefinitionPullModule = {
11826
11992
  project: projectId,
11827
11993
  diff: diffMode,
11828
11994
  allowEmptySource,
11995
+ objectFilter,
11829
11996
  verbose
11830
11997
  }) => {
11831
11998
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -11860,6 +12027,7 @@ var ProjectMapDefinitionPullModule = {
11860
12027
  mode,
11861
12028
  whatIf,
11862
12029
  allowEmptySource: allowEmptySource ?? true,
12030
+ objectFilter,
11863
12031
  log: createSyncEngineConsoleLogger({ diffMode })
11864
12032
  });
11865
12033
  }
@@ -11899,6 +12067,7 @@ var ProjectMapDefinitionPushModule = {
11899
12067
  project: projectId,
11900
12068
  diff: diffMode,
11901
12069
  allowEmptySource,
12070
+ objectFilter,
11902
12071
  verbose
11903
12072
  }) => {
11904
12073
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -11928,6 +12097,7 @@ var ProjectMapDefinitionPushModule = {
11928
12097
  mode,
11929
12098
  whatIf,
11930
12099
  allowEmptySource,
12100
+ objectFilter,
11931
12101
  log: createSyncEngineConsoleLogger({ diffMode })
11932
12102
  });
11933
12103
  }
@@ -12135,6 +12305,7 @@ var ProjectMapNodePullModule = {
12135
12305
  project: projectId,
12136
12306
  diff: diffMode,
12137
12307
  allowEmptySource,
12308
+ objectFilter,
12138
12309
  verbose
12139
12310
  }) => {
12140
12311
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -12173,6 +12344,7 @@ var ProjectMapNodePullModule = {
12173
12344
  mode,
12174
12345
  whatIf,
12175
12346
  allowEmptySource: allowEmptySource ?? true,
12347
+ objectFilter,
12176
12348
  log: createSyncEngineConsoleLogger({ diffMode })
12177
12349
  });
12178
12350
  }
@@ -12215,6 +12387,7 @@ var ProjectMapNodePushModule = {
12215
12387
  project: projectId,
12216
12388
  diff: diffMode,
12217
12389
  allowEmptySource,
12390
+ objectFilter,
12218
12391
  verbose
12219
12392
  }) => {
12220
12393
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -12259,6 +12432,7 @@ var ProjectMapNodePushModule = {
12259
12432
  mode,
12260
12433
  whatIf,
12261
12434
  allowEmptySource,
12435
+ objectFilter,
12262
12436
  log: createSyncEngineConsoleLogger({ diffMode }),
12263
12437
  onError: (error, object4) => {
12264
12438
  if (error.message.includes(__INTERNAL_MISSING_PARENT_NODE_ERROR)) {
@@ -12492,6 +12666,7 @@ var RedirectDefinitionPullModule = {
12492
12666
  project: projectId,
12493
12667
  diff: diffMode,
12494
12668
  allowEmptySource,
12669
+ objectFilter,
12495
12670
  verbose
12496
12671
  }) => {
12497
12672
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -12527,6 +12702,7 @@ var RedirectDefinitionPullModule = {
12527
12702
  mode,
12528
12703
  whatIf,
12529
12704
  allowEmptySource: allowEmptySource ?? true,
12705
+ objectFilter,
12530
12706
  log: createSyncEngineConsoleLogger({ diffMode })
12531
12707
  });
12532
12708
  }
@@ -12566,6 +12742,7 @@ var RedirectDefinitionPushModule = {
12566
12742
  project: projectId,
12567
12743
  diff: diffMode,
12568
12744
  allowEmptySource,
12745
+ objectFilter,
12569
12746
  verbose
12570
12747
  }) => {
12571
12748
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -12595,6 +12772,7 @@ var RedirectDefinitionPushModule = {
12595
12772
  mode,
12596
12773
  whatIf,
12597
12774
  allowEmptySource,
12775
+ objectFilter,
12598
12776
  log: createSyncEngineConsoleLogger({ diffMode })
12599
12777
  });
12600
12778
  }
@@ -12890,6 +13068,7 @@ var WebhookPullModule = {
12890
13068
  project: projectId,
12891
13069
  diff: diffMode,
12892
13070
  allowEmptySource,
13071
+ objectFilter,
12893
13072
  verbose
12894
13073
  }) => {
12895
13074
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -12924,6 +13103,7 @@ var WebhookPullModule = {
12924
13103
  mode,
12925
13104
  whatIf,
12926
13105
  allowEmptySource: allowEmptySource ?? true,
13106
+ objectFilter,
12927
13107
  log: createSyncEngineConsoleLogger({ diffMode }),
12928
13108
  compareContents: compareWebhooks
12929
13109
  });
@@ -13087,6 +13267,7 @@ var SyncPullModule = {
13087
13267
  return entityConfig2 !== void 0 && "state" in entityConfig2;
13088
13268
  };
13089
13269
  const entityConfig = config2.entitiesConfig?.[entityType];
13270
+ const entityFilter = resolveEntityFilter(entityConfig, "pull");
13090
13271
  try {
13091
13272
  await spinPromise(
13092
13273
  module.handler({
@@ -13098,7 +13279,8 @@ var SyncPullModule = {
13098
13279
  patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
13099
13280
  mode: getPullMode(entityType, config2),
13100
13281
  directory: getPullFilename(entityType, config2),
13101
- allowEmptySource: config2.allowEmptySource
13282
+ allowEmptySource: config2.allowEmptySource,
13283
+ objectFilter: entityFilter
13102
13284
  }),
13103
13285
  {
13104
13286
  text: `${entityType}\u2026`,
@@ -13174,6 +13356,7 @@ var WebhookPushModule = {
13174
13356
  project: projectId,
13175
13357
  diff: diffMode,
13176
13358
  allowEmptySource,
13359
+ objectFilter,
13177
13360
  verbose
13178
13361
  }) => {
13179
13362
  const fetch2 = nodeFetchProxy(proxy, verbose);
@@ -13203,6 +13386,7 @@ var WebhookPushModule = {
13203
13386
  mode,
13204
13387
  whatIf,
13205
13388
  allowEmptySource,
13389
+ objectFilter,
13206
13390
  log: createSyncEngineConsoleLogger({ diffMode }),
13207
13391
  compareContents: compareWebhooks
13208
13392
  });
@@ -13252,6 +13436,8 @@ var SyncPushModule = {
13252
13436
  );
13253
13437
  }
13254
13438
  for (const [entityType, module] of enabledEntities) {
13439
+ const entityConfig = config2.entitiesConfig?.[entityType];
13440
+ const entityFilter = resolveEntityFilter(entityConfig, "push");
13255
13441
  try {
13256
13442
  await spinPromise(
13257
13443
  module.handler({
@@ -13263,7 +13449,8 @@ var SyncPushModule = {
13263
13449
  patternType: entityType === "compositionPattern" ? "composition" : entityType === "componentPattern" ? "component" : void 0,
13264
13450
  mode: getPushMode(entityType, config2),
13265
13451
  directory: getPushFilename(entityType, config2),
13266
- allowEmptySource: config2.allowEmptySource
13452
+ allowEmptySource: config2.allowEmptySource,
13453
+ objectFilter: entityFilter
13267
13454
  }),
13268
13455
  {
13269
13456
  text: `${entityType}...`,
@@ -13280,6 +13467,7 @@ var SyncPushModule = {
13280
13467
  }
13281
13468
  }
13282
13469
  if (config2.entitiesConfig?.componentPattern && config2.entitiesConfig?.componentPattern?.push?.disabled !== true && config2.entitiesConfig?.componentPattern?.publish) {
13470
+ const publishFilter = resolveEntityFilter(config2.entitiesConfig.componentPattern, "push");
13283
13471
  try {
13284
13472
  await spinPromise(
13285
13473
  ComponentPatternPublishModule.handler({
@@ -13287,7 +13475,8 @@ var SyncPushModule = {
13287
13475
  patternType: "component",
13288
13476
  onlyPatterns: true,
13289
13477
  all: true,
13290
- directory: getPushFilename("componentPattern", config2)
13478
+ directory: getPushFilename("componentPattern", config2),
13479
+ objectFilter: publishFilter
13291
13480
  }),
13292
13481
  {
13293
13482
  text: "publishing component patterns...",
@@ -13304,6 +13493,7 @@ var SyncPushModule = {
13304
13493
  }
13305
13494
  }
13306
13495
  if (config2.entitiesConfig?.compositionPattern && config2.entitiesConfig?.compositionPattern?.push?.disabled !== true && config2.entitiesConfig?.compositionPattern?.publish) {
13496
+ const publishFilter = resolveEntityFilter(config2.entitiesConfig.compositionPattern, "push");
13307
13497
  try {
13308
13498
  await spinPromise(
13309
13499
  CompositionPatternPublishModule.handler({
@@ -13311,7 +13501,8 @@ var SyncPushModule = {
13311
13501
  all: true,
13312
13502
  onlyPatterns: true,
13313
13503
  patternType: "composition",
13314
- directory: getPushFilename("compositionPattern", config2)
13504
+ directory: getPushFilename("compositionPattern", config2),
13505
+ objectFilter: publishFilter
13315
13506
  }),
13316
13507
  {
13317
13508
  text: "publishing composition patterns...",
@@ -13328,13 +13519,15 @@ var SyncPushModule = {
13328
13519
  }
13329
13520
  }
13330
13521
  if (config2.entitiesConfig?.composition && config2.entitiesConfig?.composition?.push?.disabled !== true && config2.entitiesConfig?.composition?.publish) {
13522
+ const publishFilter = resolveEntityFilter(config2.entitiesConfig.composition, "push");
13331
13523
  try {
13332
13524
  await spinPromise(
13333
13525
  CompositionPublishModule.handler({
13334
13526
  ...otherParams,
13335
13527
  all: true,
13336
13528
  onlyCompositions: true,
13337
- directory: getPushFilename("composition", config2)
13529
+ directory: getPushFilename("composition", config2),
13530
+ objectFilter: publishFilter
13338
13531
  }),
13339
13532
  {
13340
13533
  text: "publishing compositions...",
@@ -13351,12 +13544,14 @@ var SyncPushModule = {
13351
13544
  }
13352
13545
  }
13353
13546
  if (config2.entitiesConfig?.entry && config2.entitiesConfig?.entry?.push?.disabled !== true && config2.entitiesConfig?.entry?.publish) {
13547
+ const publishFilter = resolveEntityFilter(config2.entitiesConfig.entry, "push");
13354
13548
  try {
13355
13549
  await spinPromise(
13356
13550
  EntryPublishModule.handler({
13357
13551
  ...otherParams,
13358
13552
  all: true,
13359
- directory: getPushFilename("entry", config2)
13553
+ directory: getPushFilename("entry", config2),
13554
+ objectFilter: publishFilter
13360
13555
  }),
13361
13556
  {
13362
13557
  text: "publishing entries...",
@@ -13373,12 +13568,14 @@ var SyncPushModule = {
13373
13568
  }
13374
13569
  }
13375
13570
  if (config2.entitiesConfig?.entryPattern && config2.entitiesConfig?.entryPattern?.push?.disabled !== true && config2.entitiesConfig?.entryPattern?.publish) {
13571
+ const publishFilter = resolveEntityFilter(config2.entitiesConfig.entryPattern, "push");
13376
13572
  try {
13377
13573
  await spinPromise(
13378
13574
  EntryPatternPublishModule.handler({
13379
13575
  ...otherParams,
13380
13576
  all: true,
13381
- directory: getPushFilename("entryPattern", config2)
13577
+ directory: getPushFilename("entryPattern", config2),
13578
+ objectFilter: publishFilter
13382
13579
  }),
13383
13580
  {
13384
13581
  text: "publishing entry patterns...",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.57.1",
3
+ "version": "20.57.2-alpha.22+a76473d7ee",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -28,13 +28,13 @@
28
28
  "dependencies": {
29
29
  "@inquirer/prompts": "^7.10.1",
30
30
  "@thi.ng/mime": "^2.2.23",
31
- "@uniformdev/assets": "20.57.1",
32
- "@uniformdev/canvas": "20.57.1",
33
- "@uniformdev/context": "20.57.1",
34
- "@uniformdev/files": "20.57.1",
35
- "@uniformdev/project-map": "20.57.1",
36
- "@uniformdev/redirect": "20.57.1",
37
- "@uniformdev/richtext": "20.57.1",
31
+ "@uniformdev/assets": "20.57.2-alpha.22+a76473d7ee",
32
+ "@uniformdev/canvas": "20.57.2-alpha.22+a76473d7ee",
33
+ "@uniformdev/context": "20.57.2-alpha.22+a76473d7ee",
34
+ "@uniformdev/files": "20.57.2-alpha.22+a76473d7ee",
35
+ "@uniformdev/project-map": "20.57.2-alpha.22+a76473d7ee",
36
+ "@uniformdev/redirect": "20.57.2-alpha.22+a76473d7ee",
37
+ "@uniformdev/richtext": "20.57.2-alpha.22+a76473d7ee",
38
38
  "call-bind": "^1.0.2",
39
39
  "colorette": "2.0.20",
40
40
  "cosmiconfig": "9.0.0",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "1e3550de803a5532c1facf22ce6513001c847650"
84
+ "gitHead": "a76473d7ee17e2c8745b1f240d670afb90108f36"
85
85
  }