@uniformdev/cli 20.34.2-alpha.67 → 20.35.1-alpha.87

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.
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
5
5
  throw Error('Dynamic require of "' + x + '" is not supported');
6
6
  });
7
7
 
8
- // ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.2_postcss@8.5.3_tsx@4.19.3_typescript@5.8.3/node_modules/tsup/assets/esm_shims.js
8
+ // ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.2_postcss@8.5.3_tsx@4.20.5_typescript@5.9.2/node_modules/tsup/assets/esm_shims.js
9
9
  import { fileURLToPath } from "url";
10
10
  import path from "path";
11
11
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -1,4 +1,4 @@
1
- import "./chunk-WMBIETON.mjs";
1
+ import "./chunk-SRP5OQEZ.mjs";
2
2
 
3
3
  // src/sync/allSerializableEntitiesConfig.ts
4
4
  var allSerializableEntitiesConfig = {
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  withFormatOptions,
17
17
  withProjectOptions,
18
18
  withTeamOptions
19
- } from "./chunk-WMBIETON.mjs";
19
+ } from "./chunk-SRP5OQEZ.mjs";
20
20
 
21
21
  // src/index.ts
22
22
  import * as dotenv from "dotenv";
@@ -79,7 +79,7 @@ async function getBearerToken(baseUrl) {
79
79
  }
80
80
 
81
81
  // src/client.ts
82
- import { z } from "zod";
82
+ import * as z from "zod";
83
83
 
84
84
  // src/auth/api-key.ts
85
85
  var READ_PERMISSIONS = ["PROJECT", "UPM_PUB", "OPT_PUB", "OPT_READ", "UPM_READ"];
@@ -213,6 +213,9 @@ var createClient = (baseUrl, authToken) => {
213
213
  );
214
214
  return result.id;
215
215
  } catch (err) {
216
+ if (err.message && /responded with (400|401|403)/.test(err.message)) {
217
+ throw new Error("Unable to create project. You need team admin permissions to use uniform new.");
218
+ }
216
219
  throw new Error(`Failed to create project:
217
220
  ${err.message}`);
218
221
  }
@@ -503,9 +506,9 @@ async function createArraySyncEngineDataSource({
503
506
  return {
504
507
  name,
505
508
  objects: getObjects(),
506
- deleteObject: async (providerId, object) => {
509
+ deleteObject: async (providerId, object4) => {
507
510
  if (onBeforeDeleteObject) {
508
- await onBeforeDeleteObject(providerId, object);
511
+ await onBeforeDeleteObject(providerId, object4);
509
512
  }
510
513
  delete objectIndex[providerId];
511
514
  },
@@ -532,11 +535,11 @@ import { extname, join } from "path";
532
535
  import { cosmiconfigSync } from "cosmiconfig";
533
536
  import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
534
537
  import fs3 from "fs";
535
- var omit = (object, keys) => {
538
+ var omit = (object4, keys) => {
536
539
  const result = keys.reduce((current, key) => {
537
540
  const { [key]: _, ...rest } = current;
538
541
  return rest;
539
- }, object);
542
+ }, object4);
540
543
  return result;
541
544
  };
542
545
  var cleanFileName = (proposedFileName) => {
@@ -621,13 +624,13 @@ async function createFileSyncEngineDataSource({
621
624
  try {
622
625
  const contents = readFileToObject(fullFilename);
623
626
  const displayName = selectDisplayName17(contents);
624
- const object = {
627
+ const object4 = {
625
628
  id: selectIdentifier17(contents),
626
629
  displayName: Array.isArray(displayName) ? displayName[0] : displayName,
627
630
  providerId: fullFilename,
628
631
  object: omit(contents, ["$schema"])
629
632
  };
630
- yield object;
633
+ yield object4;
631
634
  } catch (e) {
632
635
  console.error(red(`Failed to read ${fullFilename}, data is likely invalid.
633
636
  ${e?.message}`));
@@ -638,22 +641,22 @@ ${e?.message}`));
638
641
  return {
639
642
  name: `files in ${directory}`,
640
643
  objects: getObjects(),
641
- deleteObject: async (providerId, object) => {
644
+ deleteObject: async (providerId, object4) => {
642
645
  if (onBeforeDeleteObject) {
643
- await onBeforeDeleteObject(providerId, object);
646
+ await onBeforeDeleteObject(providerId, object4);
644
647
  }
645
648
  if (verbose) {
646
649
  console.log(`Deleting file ${providerId}`);
647
650
  }
648
651
  await unlink(providerId);
649
652
  },
650
- writeObject: async (object) => {
651
- const filename = selectFilename3 ? join(directory, `${selectFilename3(object.object)}.${format}`) : getFullFilename(object.id);
652
- let contents = object.object;
653
+ writeObject: async (object4) => {
654
+ const filename = selectFilename3 ? join(directory, `${selectFilename3(object4.object)}.${format}`) : getFullFilename(object4.id);
655
+ let contents = object4.object;
653
656
  if (selectSchemaUrl2) {
654
657
  contents = {
655
- $schema: selectSchemaUrl2(object.object),
656
- ...object.object
658
+ $schema: selectSchemaUrl2(object4.object),
659
+ ...object4.object
657
660
  };
658
661
  }
659
662
  if (verbose) {
@@ -755,28 +758,28 @@ async function syncEngine({
755
758
  const status = new ReactiveStatusUpdate((status2) => syncEngineEvents.emit("statusUpdate", status2));
756
759
  const targetItems = /* @__PURE__ */ new Map();
757
760
  const deleteTracker = /* @__PURE__ */ new Set();
758
- const processDelete = async (object) => {
759
- if (deleteTracker.has(object)) return;
760
- deleteTracker.add(object);
761
+ const processDelete = async (object4) => {
762
+ if (deleteTracker.has(object4)) return;
763
+ deleteTracker.add(object4);
761
764
  try {
762
765
  if (!whatIf) {
763
- await target.deleteObject(object.providerId, object);
766
+ await target.deleteObject(object4.providerId, object4);
764
767
  status.changesApplied++;
765
768
  }
766
769
  } catch (e) {
767
770
  if (onError) {
768
- onError(e, object);
771
+ onError(e, object4);
769
772
  } else {
770
- throw new SyncEngineError(e, object);
773
+ throw new SyncEngineError(e, object4);
771
774
  }
772
775
  } finally {
773
776
  log2({
774
777
  action: "delete",
775
- id: object.id[0],
776
- providerId: object.providerId,
777
- displayName: object.displayName ?? object.providerId,
778
+ id: object4.id[0],
779
+ providerId: object4.providerId,
780
+ displayName: object4.displayName ?? object4.providerId,
778
781
  whatIf,
779
- diff: () => diffLines(JSON.stringify(object.object, null, 2), "")
782
+ diff: () => diffLines(JSON.stringify(object4.object, null, 2), "")
780
783
  });
781
784
  }
782
785
  };
@@ -884,8 +887,8 @@ async function syncEngine({
884
887
  );
885
888
  }
886
889
  const deletes = [];
887
- targetItems.forEach((object) => {
888
- deletes.push(() => processDelete(object));
890
+ targetItems.forEach((object4) => {
891
+ deletes.push(() => processDelete(object4));
889
892
  });
890
893
  await Promise.all(deletes.map((d) => d()));
891
894
  }
@@ -1011,7 +1014,7 @@ async function chooseTeam(user, prompt, telemetry) {
1011
1014
 
1012
1015
  // src/auth/user-info.ts
1013
1016
  import { gql, request } from "graphql-request";
1014
- import { z as z2 } from "zod";
1017
+ import * as z2 from "zod";
1015
1018
  var query = gql`
1016
1019
  query GetUserInfo($subject: String!) {
1017
1020
  info: identities_by_pk(subject: $subject) {
@@ -1092,7 +1095,7 @@ import { PostHog } from "posthog-node";
1092
1095
  // package.json
1093
1096
  var package_default = {
1094
1097
  name: "@uniformdev/cli",
1095
- version: "20.34.1",
1098
+ version: "20.35.0",
1096
1099
  description: "Uniform command line interface tool",
1097
1100
  license: "SEE LICENSE IN LICENSE.txt",
1098
1101
  main: "./cli.js",
@@ -1138,8 +1141,8 @@ var package_default = {
1138
1141
  graphql: "16.9.0",
1139
1142
  "graphql-request": "6.1.0",
1140
1143
  "image-size": "^1.2.1",
1141
- inquirer: "9.2.17",
1142
- "isomorphic-git": "1.25.2",
1144
+ inquirer: "12.9.4",
1145
+ "isomorphic-git": "1.33.1",
1143
1146
  "js-yaml": "^4.1.0",
1144
1147
  jsonwebtoken: "9.0.2",
1145
1148
  mitt: "^3.0.1",
@@ -1152,7 +1155,7 @@ var package_default = {
1152
1155
  "registry-url": "^6.0.0",
1153
1156
  slugify: "1.6.6",
1154
1157
  svix: "^1.71.0",
1155
- undici: "^6.20.1",
1158
+ undici: "^7.16.0",
1156
1159
  yargs: "^17.6.2",
1157
1160
  zod: "3.23.8"
1158
1161
  },
@@ -1161,7 +1164,7 @@ var package_default = {
1161
1164
  "@types/inquirer": "9.0.7",
1162
1165
  "@types/js-yaml": "4.0.9",
1163
1166
  "@types/jsonwebtoken": "9.0.5",
1164
- "@types/node": "22.14.0",
1167
+ "@types/node": "24.3.1",
1165
1168
  "@types/yargs": "17.0.32"
1166
1169
  },
1167
1170
  bin: {
@@ -2619,8 +2622,8 @@ var replaceLocalUrlsWithRemoteReferences = async ({
2619
2622
  await fileUrlReplacementQueue.onIdle();
2620
2623
  return JSON.parse(entityAsString);
2621
2624
  };
2622
- var escapeRegExp = (string) => {
2623
- return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2625
+ var escapeRegExp = (string4) => {
2626
+ return string4.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2624
2627
  };
2625
2628
  var findUrlMatchingPartialPathname = (source, pathname) => {
2626
2629
  const escapedPathname = escapeRegExp(pathname);
@@ -2659,9 +2662,9 @@ function withStateOptions(yargs39, defaultState = "preview") {
2659
2662
  });
2660
2663
  }
2661
2664
  function convertStateOption(state) {
2662
- const number = Number(state);
2663
- if (!isNaN(number)) {
2664
- return number;
2665
+ const number2 = Number(state);
2666
+ if (!isNaN(number2)) {
2667
+ return number2;
2665
2668
  }
2666
2669
  if (!state) {
2667
2670
  return CANVAS_PUBLISHED_STATE;
@@ -2709,11 +2712,11 @@ function createAssetEngineDataSource({
2709
2712
  }
2710
2713
  await client.delete({ assetId: providerId });
2711
2714
  },
2712
- writeObject: async ({ object }) => {
2715
+ writeObject: async ({ object: object4 }) => {
2713
2716
  if (verbose) {
2714
- console.log(`Upserting asset ${object.asset._id}`);
2717
+ console.log(`Upserting asset ${object4.asset._id}`);
2715
2718
  }
2716
- await client.upsert(convertAssetToPutAsset(object));
2719
+ await client.upsert(convertAssetToPutAsset(object4));
2717
2720
  }
2718
2721
  };
2719
2722
  }
@@ -2783,8 +2786,8 @@ var AssetPullModule = {
2783
2786
  const source = createAssetEngineDataSource({ client, verbose });
2784
2787
  let target;
2785
2788
  const isPackage = isPathAPackageFile(directory);
2786
- const onBeforeDeleteObject = async (id, object) => {
2787
- const asset = object.object;
2789
+ const onBeforeDeleteObject = async (id, object4) => {
2790
+ const asset = object4.object;
2788
2791
  if (!asset.asset.fields?.url?.value) {
2789
2792
  return;
2790
2793
  }
@@ -3119,8 +3122,8 @@ function createCategoriesEngineDataSource({
3119
3122
  deleteObject: async (providerId) => {
3120
3123
  await client.removeCategory({ categoryId: providerId });
3121
3124
  },
3122
- writeObject: async (object) => {
3123
- await client.upsertCategories([object.object]);
3125
+ writeObject: async (object4) => {
3126
+ await client.upsertCategories([object4.object]);
3124
3127
  }
3125
3128
  };
3126
3129
  }
@@ -3447,9 +3450,9 @@ function createComponentDefinitionEngineDataSource({
3447
3450
  deleteObject: async (providerId) => {
3448
3451
  await client.removeComponentDefinition({ componentId: providerId });
3449
3452
  },
3450
- writeObject: async (object) => {
3453
+ writeObject: async (object4) => {
3451
3454
  await client.updateComponentDefinition({
3452
- componentDefinition: object.object
3455
+ componentDefinition: object4.object
3453
3456
  });
3454
3457
  }
3455
3458
  };
@@ -3976,11 +3979,11 @@ function createComponentInstanceEngineDataSource({
3976
3979
  }
3977
3980
  await client.removeComposition(parseCompositionSerializedId(providerId));
3978
3981
  },
3979
- writeObject: async (object) => {
3982
+ writeObject: async (object4) => {
3980
3983
  if (verbose) {
3981
- console.log(`\u{1F41B} push composition: (id: ${object.object.composition._id})`);
3984
+ console.log(`\u{1F41B} push composition: (id: ${object4.object.composition._id})`);
3982
3985
  }
3983
- await client.updateComposition({ ...object.object, state: stateId });
3986
+ await client.updateComposition({ ...object4.object, state: stateId });
3984
3987
  }
3985
3988
  };
3986
3989
  }
@@ -5049,8 +5052,8 @@ function createContentTypeEngineDataSource({
5049
5052
  deleteObject: async (providerId) => {
5050
5053
  await client.deleteContentType({ contentTypeId: providerId });
5051
5054
  },
5052
- writeObject: async ({ object }) => {
5053
- await client.upsertContentType({ contentType: object });
5055
+ writeObject: async ({ object: object4 }) => {
5056
+ await client.upsertContentType({ contentType: object4 });
5054
5057
  }
5055
5058
  };
5056
5059
  }
@@ -5460,9 +5463,9 @@ function createDataTypeEngineDataSource({
5460
5463
  deleteObject: async (providerId) => {
5461
5464
  await client.remove({ typeId: providerId });
5462
5465
  },
5463
- writeObject: async (object) => {
5466
+ writeObject: async (object4) => {
5464
5467
  await client.upsert({
5465
- data: object.object
5468
+ data: object4.object
5466
5469
  });
5467
5470
  }
5468
5471
  };
@@ -5904,8 +5907,8 @@ function createEntryEngineDataSource({
5904
5907
  deleteObject: async (providerId) => {
5905
5908
  await client.deleteEntry(parseEntrySerializedId(providerId));
5906
5909
  },
5907
- writeObject: async ({ object }) => {
5908
- await client.upsertEntry({ ...convertEntryToPutEntry(object), state: stateId });
5910
+ writeObject: async ({ object: object4 }) => {
5911
+ await client.upsertEntry({ ...convertEntryToPutEntry(object4), state: stateId });
5909
5912
  }
5910
5913
  };
5911
5914
  }
@@ -6934,9 +6937,9 @@ function createLocaleEngineDataSource({
6934
6937
  deleteObject: async (providerId) => {
6935
6938
  await client.remove({ locale: providerId });
6936
6939
  },
6937
- writeObject: async (object) => {
6940
+ writeObject: async (object4) => {
6938
6941
  await client.upsert({
6939
- locale: object.object
6942
+ locale: object4.object
6940
6943
  });
6941
6944
  }
6942
6945
  };
@@ -7193,8 +7196,8 @@ function createPreviewUrlEngineDataSource({
7193
7196
  deleteObject: async (providerId) => {
7194
7197
  await client.deletePreviewUrl({ id: providerId });
7195
7198
  },
7196
- writeObject: async (object) => {
7197
- await client.upsertPreviewUrl(object.object);
7199
+ writeObject: async (object4) => {
7200
+ await client.upsertPreviewUrl(object4.object);
7198
7201
  }
7199
7202
  };
7200
7203
  }
@@ -7482,8 +7485,8 @@ function createPreviewViewportEngineDataSource({
7482
7485
  deleteObject: async (providerId) => {
7483
7486
  await client.deletePreviewViewport({ id: providerId });
7484
7487
  },
7485
- writeObject: async (object) => {
7486
- await client.upsertPreviewViewport(object.object);
7488
+ writeObject: async (object4) => {
7489
+ await client.upsertPreviewViewport(object4.object);
7487
7490
  }
7488
7491
  };
7489
7492
  }
@@ -7768,8 +7771,8 @@ function createPromptEngineDataSource({
7768
7771
  deleteObject: async (providerId) => {
7769
7772
  await client.remove({ promptId: providerId });
7770
7773
  },
7771
- writeObject: async ({ object }) => {
7772
- await client.upsert({ data: object });
7774
+ writeObject: async ({ object: object4 }) => {
7775
+ await client.upsert({ data: object4 });
7773
7776
  }
7774
7777
  };
7775
7778
  }
@@ -8028,8 +8031,8 @@ function createWorkflowEngineDataSource({
8028
8031
  deleteObject: async (providerId) => {
8029
8032
  await client.remove({ workflowId: providerId });
8030
8033
  },
8031
- writeObject: async (object) => {
8032
- await client.upsert({ workflow: object.object });
8034
+ writeObject: async (object4) => {
8035
+ await client.upsert({ workflow: object4.object });
8033
8036
  }
8034
8037
  };
8035
8038
  }
@@ -8280,16 +8283,16 @@ function createAggregateEngineDataSource({
8280
8283
  deleteObject: async (providerId) => {
8281
8284
  await client.remove({ aggregateId: providerId });
8282
8285
  },
8283
- writeObject: async (object) => {
8286
+ writeObject: async (object4) => {
8284
8287
  await client.upsert({
8285
- aggregate: object.object,
8288
+ aggregate: object4.object,
8286
8289
  skipInputs: true
8287
8290
  });
8288
- writtenObjects.push(object.object);
8291
+ writtenObjects.push(object4.object);
8289
8292
  },
8290
8293
  complete: async () => {
8291
8294
  await Promise.all(
8292
- writtenObjects.map((object) => client.upsert({ aggregate: object, skipInputs: false }))
8295
+ writtenObjects.map((object4) => client.upsert({ aggregate: object4, skipInputs: false }))
8293
8296
  );
8294
8297
  }
8295
8298
  };
@@ -8578,16 +8581,16 @@ function createEnrichmentEngineDataSource({
8578
8581
  deleteObject: async (providerId) => {
8579
8582
  await client.removeCategory({ enrichmentId: providerId });
8580
8583
  },
8581
- writeObject: async (object, existingObject) => {
8584
+ writeObject: async (object4, existingObject) => {
8582
8585
  await client.upsertCategory({
8583
- enrichment: object.object
8586
+ enrichment: object4.object
8584
8587
  });
8585
8588
  const source = createEnrichmentValueEngineDataSource({
8586
- categoryId: object.object.id,
8587
- values: object.object.values
8589
+ categoryId: object4.object.id,
8590
+ values: object4.object.values
8588
8591
  });
8589
8592
  const target = createEnrichmentValueEngineDataSource({
8590
- categoryId: object.object.id,
8593
+ categoryId: object4.object.id,
8591
8594
  values: existingObject?.object?.values ?? [],
8592
8595
  client
8593
8596
  });
@@ -8598,7 +8601,7 @@ function createEnrichmentEngineDataSource({
8598
8601
  whatIf: false,
8599
8602
  log: createSyncEngineConsoleLogger({
8600
8603
  diffMode: "off",
8601
- prefix: ` ${object.displayName} value`,
8604
+ prefix: ` ${object4.displayName} value`,
8602
8605
  indent: "> "
8603
8606
  })
8604
8607
  });
@@ -8629,11 +8632,11 @@ var createEnrichmentValueEngineDataSource = ({
8629
8632
  }
8630
8633
  await client.removeValue({ enrichmentId: categoryId, enrichmentValueId: providerId });
8631
8634
  },
8632
- writeObject: async (object) => {
8635
+ writeObject: async (object4) => {
8633
8636
  if (!client) {
8634
8637
  throw new Error("Provider is read only");
8635
8638
  }
8636
- await client.upsertValue({ enrichmentId: categoryId, enrichmentValue: object.object });
8639
+ await client.upsertValue({ enrichmentId: categoryId, enrichmentValue: object4.object });
8637
8640
  }
8638
8641
  };
8639
8642
  };
@@ -9016,9 +9019,9 @@ function createQuirkEngineDataSource({
9016
9019
  deleteObject: async (providerId) => {
9017
9020
  await client.remove({ quirkId: providerId });
9018
9021
  },
9019
- writeObject: async (object) => {
9022
+ writeObject: async (object4) => {
9020
9023
  await client.upsert({
9021
- quirk: object.object
9024
+ quirk: object4.object
9022
9025
  });
9023
9026
  }
9024
9027
  };
@@ -9299,9 +9302,9 @@ function createSignalEngineDataSource({
9299
9302
  deleteObject: async (providerId) => {
9300
9303
  await client.remove({ signalId: providerId });
9301
9304
  },
9302
- writeObject: async (object) => {
9305
+ writeObject: async (object4) => {
9303
9306
  await client.upsert({
9304
- signal: object.object
9307
+ signal: object4.object
9305
9308
  });
9306
9309
  }
9307
9310
  };
@@ -9582,9 +9585,9 @@ function createTestEngineDataSource({
9582
9585
  deleteObject: async (providerId) => {
9583
9586
  await client.remove({ testId: providerId });
9584
9587
  },
9585
- writeObject: async (object) => {
9588
+ writeObject: async (object4) => {
9586
9589
  await client.upsert({
9587
- test: object.object
9590
+ test: object4.object
9588
9591
  });
9589
9592
  }
9590
9593
  };
@@ -10121,7 +10124,7 @@ import crypto2 from "crypto";
10121
10124
  import fs7 from "fs";
10122
10125
  import fsj5 from "fs-jetpack";
10123
10126
  import * as git from "isomorphic-git";
10124
- import * as http from "isomorphic-git/http/node/index.js";
10127
+ import * as http from "isomorphic-git/http/node";
10125
10128
  import os from "os";
10126
10129
  import path5 from "path";
10127
10130
  async function cloneStarter({
@@ -10614,9 +10617,9 @@ function createProjectMapDefinitionEngineDataSource({
10614
10617
  deleteObject: async (providerId) => {
10615
10618
  await client.deleteProjectMap({ projectMapId: providerId });
10616
10619
  },
10617
- writeObject: async (object) => {
10620
+ writeObject: async (object4) => {
10618
10621
  await client.upsertProjectMap({
10619
- projectMap: object.object
10622
+ projectMap: object4.object
10620
10623
  });
10621
10624
  }
10622
10625
  };
@@ -10907,22 +10910,22 @@ function createProjectMapNodeEngineDataSource({
10907
10910
  return {
10908
10911
  name: "Uniform API",
10909
10912
  objects: getObjects(),
10910
- deleteObject: async (providerId, object) => {
10913
+ deleteObject: async (providerId, object4) => {
10911
10914
  await client.deleteProjectMapNode({
10912
- nodeId: object.object.id,
10913
- projectMapId: object.object.projectMapId
10915
+ nodeId: object4.object.id,
10916
+ projectMapId: object4.object.projectMapId
10914
10917
  });
10915
10918
  },
10916
- writeObject: async (object) => {
10917
- const nodeToUpsert = { ...object.object };
10919
+ writeObject: async (object4) => {
10920
+ const nodeToUpsert = { ...object4.object };
10918
10921
  try {
10919
10922
  await client.upsertProjectMapNodes({
10920
- projectMapId: object.object.projectMapId,
10923
+ projectMapId: object4.object.projectMapId,
10921
10924
  nodes: [{ node: nodeToUpsert }]
10922
10925
  });
10923
10926
  } catch (error) {
10924
10927
  throw new Error(
10925
- `writing project map node '${object.object.path}' (id: ${object.object.id}) failed
10928
+ `writing project map node '${object4.object.path}' (id: ${object4.object.id}) failed
10926
10929
 
10927
10930
  ${error}`
10928
10931
  );
@@ -10979,8 +10982,8 @@ var ProjectMapNodePullModule = {
10979
10982
  const source = createProjectMapNodeEngineDataSource({ client, projectId });
10980
10983
  let target;
10981
10984
  const isPackage = isPathAPackageFile(directory);
10982
- const expandedSelectIdentifier = (object) => {
10983
- return selectIdentifier14(object, projectId);
10985
+ const expandedSelectIdentifier = (object4) => {
10986
+ return selectIdentifier14(object4, projectId);
10984
10987
  };
10985
10988
  if (isPackage) {
10986
10989
  const packageContents = readContextPackage2(directory, false, verbose);
@@ -11063,8 +11066,8 @@ var ProjectMapNodePushModule = {
11063
11066
  });
11064
11067
  let source;
11065
11068
  const isPackage = isPathAPackageFile(directory);
11066
- const expandedSelectIdentifier = (object) => {
11067
- return selectIdentifier14(object, projectId);
11069
+ const expandedSelectIdentifier = (object4) => {
11070
+ return selectIdentifier14(object4, projectId);
11068
11071
  };
11069
11072
  if (isPackage) {
11070
11073
  const packageContents = readContextPackage2(directory, true, verbose);
@@ -11097,9 +11100,9 @@ var ProjectMapNodePushModule = {
11097
11100
  whatIf,
11098
11101
  allowEmptySource,
11099
11102
  log: createSyncEngineConsoleLogger({ diffMode }),
11100
- onError: (error, object) => {
11103
+ onError: (error, object4) => {
11101
11104
  if (error.message.includes(__INTERNAL_MISSING_PARENT_NODE_ERROR)) {
11102
- nodesFailedDueToMissingParent.add(object.object);
11105
+ nodesFailedDueToMissingParent.add(object4.object);
11103
11106
  } else {
11104
11107
  throw error;
11105
11108
  }
@@ -11282,8 +11285,8 @@ function createRedirectDefinitionEngineDataSource({
11282
11285
  deleteObject: async (providerId) => {
11283
11286
  await client.deleteRedirect(providerId);
11284
11287
  },
11285
- writeObject: async (object) => {
11286
- await client.upsertRedirect(object.object);
11288
+ writeObject: async (object4) => {
11289
+ await client.upsertRedirect(object4.object);
11287
11290
  }
11288
11291
  };
11289
11292
  }
@@ -11502,7 +11505,7 @@ import yargs36 from "yargs";
11502
11505
  import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
11503
11506
  import PQueue3 from "p-queue";
11504
11507
  import { Svix } from "svix";
11505
- import { z as z3 } from "zod";
11508
+ import * as z3 from "zod";
11506
11509
  var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
11507
11510
  var WebhooksClient = class extends ApiClient4 {
11508
11511
  constructor(options) {
@@ -11680,8 +11683,8 @@ function createWebhookEngineDataSource({
11680
11683
  deleteObject: async (providerId) => {
11681
11684
  await client.delete(providerId);
11682
11685
  },
11683
- writeObject: async (object) => {
11684
- await client.put(object.object);
11686
+ writeObject: async (object4) => {
11687
+ await client.put(object4.object);
11685
11688
  }
11686
11689
  };
11687
11690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "20.34.2-alpha.67+d830718b43",
3
+ "version": "20.35.1-alpha.87+2cf616f622",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "20.34.2-alpha.67+d830718b43",
31
- "@uniformdev/canvas": "20.34.2-alpha.67+d830718b43",
32
- "@uniformdev/context": "20.34.2-alpha.67+d830718b43",
33
- "@uniformdev/files": "20.34.2-alpha.67+d830718b43",
34
- "@uniformdev/project-map": "20.34.2-alpha.67+d830718b43",
35
- "@uniformdev/redirect": "20.34.2-alpha.67+d830718b43",
36
- "@uniformdev/richtext": "20.34.2-alpha.67+d830718b43",
30
+ "@uniformdev/assets": "20.35.1-alpha.87+2cf616f622",
31
+ "@uniformdev/canvas": "20.35.1-alpha.87+2cf616f622",
32
+ "@uniformdev/context": "20.35.1-alpha.87+2cf616f622",
33
+ "@uniformdev/files": "20.35.1-alpha.87+2cf616f622",
34
+ "@uniformdev/project-map": "20.35.1-alpha.87+2cf616f622",
35
+ "@uniformdev/redirect": "20.35.1-alpha.87+2cf616f622",
36
+ "@uniformdev/richtext": "20.35.1-alpha.87+2cf616f622",
37
37
  "call-bind": "^1.0.2",
38
38
  "colorette": "2.0.20",
39
39
  "cosmiconfig": "9.0.0",
@@ -46,8 +46,8 @@
46
46
  "graphql": "16.9.0",
47
47
  "graphql-request": "6.1.0",
48
48
  "image-size": "^1.2.1",
49
- "inquirer": "9.2.17",
50
- "isomorphic-git": "1.25.2",
49
+ "inquirer": "12.9.4",
50
+ "isomorphic-git": "1.33.1",
51
51
  "js-yaml": "^4.1.0",
52
52
  "jsonwebtoken": "9.0.2",
53
53
  "mitt": "^3.0.1",
@@ -60,7 +60,7 @@
60
60
  "registry-url": "^6.0.0",
61
61
  "slugify": "1.6.6",
62
62
  "svix": "^1.71.0",
63
- "undici": "^6.20.1",
63
+ "undici": "^7.16.0",
64
64
  "yargs": "^17.6.2",
65
65
  "zod": "3.23.8"
66
66
  },
@@ -69,7 +69,7 @@
69
69
  "@types/inquirer": "9.0.7",
70
70
  "@types/js-yaml": "4.0.9",
71
71
  "@types/jsonwebtoken": "9.0.5",
72
- "@types/node": "22.14.0",
72
+ "@types/node": "24.3.1",
73
73
  "@types/yargs": "17.0.32"
74
74
  },
75
75
  "bin": {
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "d830718b43d1c26a8f6c22434975882eae4cbb3d"
84
+ "gitHead": "2cf616f622322e5322575c106742078b5e3d7992"
85
85
  }