@uniformdev/cli 20.34.2-alpha.67 → 20.34.3-alpha.70
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/{chunk-WMBIETON.mjs → chunk-SRP5OQEZ.mjs} +1 -1
- package/dist/defaultConfig.mjs +1 -1
- package/dist/index.mjs +105 -105
- package/package.json +13 -13
|
@@ -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.
|
|
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);
|
package/dist/defaultConfig.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
withFormatOptions,
|
|
17
17
|
withProjectOptions,
|
|
18
18
|
withTeamOptions
|
|
19
|
-
} from "./chunk-
|
|
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
|
|
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"];
|
|
@@ -503,9 +503,9 @@ async function createArraySyncEngineDataSource({
|
|
|
503
503
|
return {
|
|
504
504
|
name,
|
|
505
505
|
objects: getObjects(),
|
|
506
|
-
deleteObject: async (providerId,
|
|
506
|
+
deleteObject: async (providerId, object4) => {
|
|
507
507
|
if (onBeforeDeleteObject) {
|
|
508
|
-
await onBeforeDeleteObject(providerId,
|
|
508
|
+
await onBeforeDeleteObject(providerId, object4);
|
|
509
509
|
}
|
|
510
510
|
delete objectIndex[providerId];
|
|
511
511
|
},
|
|
@@ -532,11 +532,11 @@ import { extname, join } from "path";
|
|
|
532
532
|
import { cosmiconfigSync } from "cosmiconfig";
|
|
533
533
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
534
534
|
import fs3 from "fs";
|
|
535
|
-
var omit = (
|
|
535
|
+
var omit = (object4, keys) => {
|
|
536
536
|
const result = keys.reduce((current, key) => {
|
|
537
537
|
const { [key]: _, ...rest } = current;
|
|
538
538
|
return rest;
|
|
539
|
-
},
|
|
539
|
+
}, object4);
|
|
540
540
|
return result;
|
|
541
541
|
};
|
|
542
542
|
var cleanFileName = (proposedFileName) => {
|
|
@@ -621,13 +621,13 @@ async function createFileSyncEngineDataSource({
|
|
|
621
621
|
try {
|
|
622
622
|
const contents = readFileToObject(fullFilename);
|
|
623
623
|
const displayName = selectDisplayName17(contents);
|
|
624
|
-
const
|
|
624
|
+
const object4 = {
|
|
625
625
|
id: selectIdentifier17(contents),
|
|
626
626
|
displayName: Array.isArray(displayName) ? displayName[0] : displayName,
|
|
627
627
|
providerId: fullFilename,
|
|
628
628
|
object: omit(contents, ["$schema"])
|
|
629
629
|
};
|
|
630
|
-
yield
|
|
630
|
+
yield object4;
|
|
631
631
|
} catch (e) {
|
|
632
632
|
console.error(red(`Failed to read ${fullFilename}, data is likely invalid.
|
|
633
633
|
${e?.message}`));
|
|
@@ -638,22 +638,22 @@ ${e?.message}`));
|
|
|
638
638
|
return {
|
|
639
639
|
name: `files in ${directory}`,
|
|
640
640
|
objects: getObjects(),
|
|
641
|
-
deleteObject: async (providerId,
|
|
641
|
+
deleteObject: async (providerId, object4) => {
|
|
642
642
|
if (onBeforeDeleteObject) {
|
|
643
|
-
await onBeforeDeleteObject(providerId,
|
|
643
|
+
await onBeforeDeleteObject(providerId, object4);
|
|
644
644
|
}
|
|
645
645
|
if (verbose) {
|
|
646
646
|
console.log(`Deleting file ${providerId}`);
|
|
647
647
|
}
|
|
648
648
|
await unlink(providerId);
|
|
649
649
|
},
|
|
650
|
-
writeObject: async (
|
|
651
|
-
const filename = selectFilename3 ? join(directory, `${selectFilename3(
|
|
652
|
-
let contents =
|
|
650
|
+
writeObject: async (object4) => {
|
|
651
|
+
const filename = selectFilename3 ? join(directory, `${selectFilename3(object4.object)}.${format}`) : getFullFilename(object4.id);
|
|
652
|
+
let contents = object4.object;
|
|
653
653
|
if (selectSchemaUrl2) {
|
|
654
654
|
contents = {
|
|
655
|
-
$schema: selectSchemaUrl2(
|
|
656
|
-
...
|
|
655
|
+
$schema: selectSchemaUrl2(object4.object),
|
|
656
|
+
...object4.object
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
659
|
if (verbose) {
|
|
@@ -755,28 +755,28 @@ async function syncEngine({
|
|
|
755
755
|
const status = new ReactiveStatusUpdate((status2) => syncEngineEvents.emit("statusUpdate", status2));
|
|
756
756
|
const targetItems = /* @__PURE__ */ new Map();
|
|
757
757
|
const deleteTracker = /* @__PURE__ */ new Set();
|
|
758
|
-
const processDelete = async (
|
|
759
|
-
if (deleteTracker.has(
|
|
760
|
-
deleteTracker.add(
|
|
758
|
+
const processDelete = async (object4) => {
|
|
759
|
+
if (deleteTracker.has(object4)) return;
|
|
760
|
+
deleteTracker.add(object4);
|
|
761
761
|
try {
|
|
762
762
|
if (!whatIf) {
|
|
763
|
-
await target.deleteObject(
|
|
763
|
+
await target.deleteObject(object4.providerId, object4);
|
|
764
764
|
status.changesApplied++;
|
|
765
765
|
}
|
|
766
766
|
} catch (e) {
|
|
767
767
|
if (onError) {
|
|
768
|
-
onError(e,
|
|
768
|
+
onError(e, object4);
|
|
769
769
|
} else {
|
|
770
|
-
throw new SyncEngineError(e,
|
|
770
|
+
throw new SyncEngineError(e, object4);
|
|
771
771
|
}
|
|
772
772
|
} finally {
|
|
773
773
|
log2({
|
|
774
774
|
action: "delete",
|
|
775
|
-
id:
|
|
776
|
-
providerId:
|
|
777
|
-
displayName:
|
|
775
|
+
id: object4.id[0],
|
|
776
|
+
providerId: object4.providerId,
|
|
777
|
+
displayName: object4.displayName ?? object4.providerId,
|
|
778
778
|
whatIf,
|
|
779
|
-
diff: () => diffLines(JSON.stringify(
|
|
779
|
+
diff: () => diffLines(JSON.stringify(object4.object, null, 2), "")
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
};
|
|
@@ -884,8 +884,8 @@ async function syncEngine({
|
|
|
884
884
|
);
|
|
885
885
|
}
|
|
886
886
|
const deletes = [];
|
|
887
|
-
targetItems.forEach((
|
|
888
|
-
deletes.push(() => processDelete(
|
|
887
|
+
targetItems.forEach((object4) => {
|
|
888
|
+
deletes.push(() => processDelete(object4));
|
|
889
889
|
});
|
|
890
890
|
await Promise.all(deletes.map((d) => d()));
|
|
891
891
|
}
|
|
@@ -1011,7 +1011,7 @@ async function chooseTeam(user, prompt, telemetry) {
|
|
|
1011
1011
|
|
|
1012
1012
|
// src/auth/user-info.ts
|
|
1013
1013
|
import { gql, request } from "graphql-request";
|
|
1014
|
-
import
|
|
1014
|
+
import * as z2 from "zod";
|
|
1015
1015
|
var query = gql`
|
|
1016
1016
|
query GetUserInfo($subject: String!) {
|
|
1017
1017
|
info: identities_by_pk(subject: $subject) {
|
|
@@ -1092,7 +1092,7 @@ import { PostHog } from "posthog-node";
|
|
|
1092
1092
|
// package.json
|
|
1093
1093
|
var package_default = {
|
|
1094
1094
|
name: "@uniformdev/cli",
|
|
1095
|
-
version: "20.34.
|
|
1095
|
+
version: "20.34.2",
|
|
1096
1096
|
description: "Uniform command line interface tool",
|
|
1097
1097
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1098
1098
|
main: "./cli.js",
|
|
@@ -1138,8 +1138,8 @@ var package_default = {
|
|
|
1138
1138
|
graphql: "16.9.0",
|
|
1139
1139
|
"graphql-request": "6.1.0",
|
|
1140
1140
|
"image-size": "^1.2.1",
|
|
1141
|
-
inquirer: "9.
|
|
1142
|
-
"isomorphic-git": "1.
|
|
1141
|
+
inquirer: "12.9.4",
|
|
1142
|
+
"isomorphic-git": "1.33.1",
|
|
1143
1143
|
"js-yaml": "^4.1.0",
|
|
1144
1144
|
jsonwebtoken: "9.0.2",
|
|
1145
1145
|
mitt: "^3.0.1",
|
|
@@ -1152,7 +1152,7 @@ var package_default = {
|
|
|
1152
1152
|
"registry-url": "^6.0.0",
|
|
1153
1153
|
slugify: "1.6.6",
|
|
1154
1154
|
svix: "^1.71.0",
|
|
1155
|
-
undici: "^
|
|
1155
|
+
undici: "^7.16.0",
|
|
1156
1156
|
yargs: "^17.6.2",
|
|
1157
1157
|
zod: "3.23.8"
|
|
1158
1158
|
},
|
|
@@ -1161,7 +1161,7 @@ var package_default = {
|
|
|
1161
1161
|
"@types/inquirer": "9.0.7",
|
|
1162
1162
|
"@types/js-yaml": "4.0.9",
|
|
1163
1163
|
"@types/jsonwebtoken": "9.0.5",
|
|
1164
|
-
"@types/node": "
|
|
1164
|
+
"@types/node": "24.3.1",
|
|
1165
1165
|
"@types/yargs": "17.0.32"
|
|
1166
1166
|
},
|
|
1167
1167
|
bin: {
|
|
@@ -2619,8 +2619,8 @@ var replaceLocalUrlsWithRemoteReferences = async ({
|
|
|
2619
2619
|
await fileUrlReplacementQueue.onIdle();
|
|
2620
2620
|
return JSON.parse(entityAsString);
|
|
2621
2621
|
};
|
|
2622
|
-
var escapeRegExp = (
|
|
2623
|
-
return
|
|
2622
|
+
var escapeRegExp = (string4) => {
|
|
2623
|
+
return string4.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2624
2624
|
};
|
|
2625
2625
|
var findUrlMatchingPartialPathname = (source, pathname) => {
|
|
2626
2626
|
const escapedPathname = escapeRegExp(pathname);
|
|
@@ -2659,9 +2659,9 @@ function withStateOptions(yargs39, defaultState = "preview") {
|
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
function convertStateOption(state) {
|
|
2662
|
-
const
|
|
2663
|
-
if (!isNaN(
|
|
2664
|
-
return
|
|
2662
|
+
const number2 = Number(state);
|
|
2663
|
+
if (!isNaN(number2)) {
|
|
2664
|
+
return number2;
|
|
2665
2665
|
}
|
|
2666
2666
|
if (!state) {
|
|
2667
2667
|
return CANVAS_PUBLISHED_STATE;
|
|
@@ -2709,11 +2709,11 @@ function createAssetEngineDataSource({
|
|
|
2709
2709
|
}
|
|
2710
2710
|
await client.delete({ assetId: providerId });
|
|
2711
2711
|
},
|
|
2712
|
-
writeObject: async ({ object }) => {
|
|
2712
|
+
writeObject: async ({ object: object4 }) => {
|
|
2713
2713
|
if (verbose) {
|
|
2714
|
-
console.log(`Upserting asset ${
|
|
2714
|
+
console.log(`Upserting asset ${object4.asset._id}`);
|
|
2715
2715
|
}
|
|
2716
|
-
await client.upsert(convertAssetToPutAsset(
|
|
2716
|
+
await client.upsert(convertAssetToPutAsset(object4));
|
|
2717
2717
|
}
|
|
2718
2718
|
};
|
|
2719
2719
|
}
|
|
@@ -2783,8 +2783,8 @@ var AssetPullModule = {
|
|
|
2783
2783
|
const source = createAssetEngineDataSource({ client, verbose });
|
|
2784
2784
|
let target;
|
|
2785
2785
|
const isPackage = isPathAPackageFile(directory);
|
|
2786
|
-
const onBeforeDeleteObject = async (id,
|
|
2787
|
-
const asset =
|
|
2786
|
+
const onBeforeDeleteObject = async (id, object4) => {
|
|
2787
|
+
const asset = object4.object;
|
|
2788
2788
|
if (!asset.asset.fields?.url?.value) {
|
|
2789
2789
|
return;
|
|
2790
2790
|
}
|
|
@@ -3119,8 +3119,8 @@ function createCategoriesEngineDataSource({
|
|
|
3119
3119
|
deleteObject: async (providerId) => {
|
|
3120
3120
|
await client.removeCategory({ categoryId: providerId });
|
|
3121
3121
|
},
|
|
3122
|
-
writeObject: async (
|
|
3123
|
-
await client.upsertCategories([
|
|
3122
|
+
writeObject: async (object4) => {
|
|
3123
|
+
await client.upsertCategories([object4.object]);
|
|
3124
3124
|
}
|
|
3125
3125
|
};
|
|
3126
3126
|
}
|
|
@@ -3447,9 +3447,9 @@ function createComponentDefinitionEngineDataSource({
|
|
|
3447
3447
|
deleteObject: async (providerId) => {
|
|
3448
3448
|
await client.removeComponentDefinition({ componentId: providerId });
|
|
3449
3449
|
},
|
|
3450
|
-
writeObject: async (
|
|
3450
|
+
writeObject: async (object4) => {
|
|
3451
3451
|
await client.updateComponentDefinition({
|
|
3452
|
-
componentDefinition:
|
|
3452
|
+
componentDefinition: object4.object
|
|
3453
3453
|
});
|
|
3454
3454
|
}
|
|
3455
3455
|
};
|
|
@@ -3976,11 +3976,11 @@ function createComponentInstanceEngineDataSource({
|
|
|
3976
3976
|
}
|
|
3977
3977
|
await client.removeComposition(parseCompositionSerializedId(providerId));
|
|
3978
3978
|
},
|
|
3979
|
-
writeObject: async (
|
|
3979
|
+
writeObject: async (object4) => {
|
|
3980
3980
|
if (verbose) {
|
|
3981
|
-
console.log(`\u{1F41B} push composition: (id: ${
|
|
3981
|
+
console.log(`\u{1F41B} push composition: (id: ${object4.object.composition._id})`);
|
|
3982
3982
|
}
|
|
3983
|
-
await client.updateComposition({ ...
|
|
3983
|
+
await client.updateComposition({ ...object4.object, state: stateId });
|
|
3984
3984
|
}
|
|
3985
3985
|
};
|
|
3986
3986
|
}
|
|
@@ -5049,8 +5049,8 @@ function createContentTypeEngineDataSource({
|
|
|
5049
5049
|
deleteObject: async (providerId) => {
|
|
5050
5050
|
await client.deleteContentType({ contentTypeId: providerId });
|
|
5051
5051
|
},
|
|
5052
|
-
writeObject: async ({ object }) => {
|
|
5053
|
-
await client.upsertContentType({ contentType:
|
|
5052
|
+
writeObject: async ({ object: object4 }) => {
|
|
5053
|
+
await client.upsertContentType({ contentType: object4 });
|
|
5054
5054
|
}
|
|
5055
5055
|
};
|
|
5056
5056
|
}
|
|
@@ -5460,9 +5460,9 @@ function createDataTypeEngineDataSource({
|
|
|
5460
5460
|
deleteObject: async (providerId) => {
|
|
5461
5461
|
await client.remove({ typeId: providerId });
|
|
5462
5462
|
},
|
|
5463
|
-
writeObject: async (
|
|
5463
|
+
writeObject: async (object4) => {
|
|
5464
5464
|
await client.upsert({
|
|
5465
|
-
data:
|
|
5465
|
+
data: object4.object
|
|
5466
5466
|
});
|
|
5467
5467
|
}
|
|
5468
5468
|
};
|
|
@@ -5904,8 +5904,8 @@ function createEntryEngineDataSource({
|
|
|
5904
5904
|
deleteObject: async (providerId) => {
|
|
5905
5905
|
await client.deleteEntry(parseEntrySerializedId(providerId));
|
|
5906
5906
|
},
|
|
5907
|
-
writeObject: async ({ object }) => {
|
|
5908
|
-
await client.upsertEntry({ ...convertEntryToPutEntry(
|
|
5907
|
+
writeObject: async ({ object: object4 }) => {
|
|
5908
|
+
await client.upsertEntry({ ...convertEntryToPutEntry(object4), state: stateId });
|
|
5909
5909
|
}
|
|
5910
5910
|
};
|
|
5911
5911
|
}
|
|
@@ -6934,9 +6934,9 @@ function createLocaleEngineDataSource({
|
|
|
6934
6934
|
deleteObject: async (providerId) => {
|
|
6935
6935
|
await client.remove({ locale: providerId });
|
|
6936
6936
|
},
|
|
6937
|
-
writeObject: async (
|
|
6937
|
+
writeObject: async (object4) => {
|
|
6938
6938
|
await client.upsert({
|
|
6939
|
-
locale:
|
|
6939
|
+
locale: object4.object
|
|
6940
6940
|
});
|
|
6941
6941
|
}
|
|
6942
6942
|
};
|
|
@@ -7193,8 +7193,8 @@ function createPreviewUrlEngineDataSource({
|
|
|
7193
7193
|
deleteObject: async (providerId) => {
|
|
7194
7194
|
await client.deletePreviewUrl({ id: providerId });
|
|
7195
7195
|
},
|
|
7196
|
-
writeObject: async (
|
|
7197
|
-
await client.upsertPreviewUrl(
|
|
7196
|
+
writeObject: async (object4) => {
|
|
7197
|
+
await client.upsertPreviewUrl(object4.object);
|
|
7198
7198
|
}
|
|
7199
7199
|
};
|
|
7200
7200
|
}
|
|
@@ -7482,8 +7482,8 @@ function createPreviewViewportEngineDataSource({
|
|
|
7482
7482
|
deleteObject: async (providerId) => {
|
|
7483
7483
|
await client.deletePreviewViewport({ id: providerId });
|
|
7484
7484
|
},
|
|
7485
|
-
writeObject: async (
|
|
7486
|
-
await client.upsertPreviewViewport(
|
|
7485
|
+
writeObject: async (object4) => {
|
|
7486
|
+
await client.upsertPreviewViewport(object4.object);
|
|
7487
7487
|
}
|
|
7488
7488
|
};
|
|
7489
7489
|
}
|
|
@@ -7768,8 +7768,8 @@ function createPromptEngineDataSource({
|
|
|
7768
7768
|
deleteObject: async (providerId) => {
|
|
7769
7769
|
await client.remove({ promptId: providerId });
|
|
7770
7770
|
},
|
|
7771
|
-
writeObject: async ({ object }) => {
|
|
7772
|
-
await client.upsert({ data:
|
|
7771
|
+
writeObject: async ({ object: object4 }) => {
|
|
7772
|
+
await client.upsert({ data: object4 });
|
|
7773
7773
|
}
|
|
7774
7774
|
};
|
|
7775
7775
|
}
|
|
@@ -8028,8 +8028,8 @@ function createWorkflowEngineDataSource({
|
|
|
8028
8028
|
deleteObject: async (providerId) => {
|
|
8029
8029
|
await client.remove({ workflowId: providerId });
|
|
8030
8030
|
},
|
|
8031
|
-
writeObject: async (
|
|
8032
|
-
await client.upsert({ workflow:
|
|
8031
|
+
writeObject: async (object4) => {
|
|
8032
|
+
await client.upsert({ workflow: object4.object });
|
|
8033
8033
|
}
|
|
8034
8034
|
};
|
|
8035
8035
|
}
|
|
@@ -8280,16 +8280,16 @@ function createAggregateEngineDataSource({
|
|
|
8280
8280
|
deleteObject: async (providerId) => {
|
|
8281
8281
|
await client.remove({ aggregateId: providerId });
|
|
8282
8282
|
},
|
|
8283
|
-
writeObject: async (
|
|
8283
|
+
writeObject: async (object4) => {
|
|
8284
8284
|
await client.upsert({
|
|
8285
|
-
aggregate:
|
|
8285
|
+
aggregate: object4.object,
|
|
8286
8286
|
skipInputs: true
|
|
8287
8287
|
});
|
|
8288
|
-
writtenObjects.push(
|
|
8288
|
+
writtenObjects.push(object4.object);
|
|
8289
8289
|
},
|
|
8290
8290
|
complete: async () => {
|
|
8291
8291
|
await Promise.all(
|
|
8292
|
-
writtenObjects.map((
|
|
8292
|
+
writtenObjects.map((object4) => client.upsert({ aggregate: object4, skipInputs: false }))
|
|
8293
8293
|
);
|
|
8294
8294
|
}
|
|
8295
8295
|
};
|
|
@@ -8578,16 +8578,16 @@ function createEnrichmentEngineDataSource({
|
|
|
8578
8578
|
deleteObject: async (providerId) => {
|
|
8579
8579
|
await client.removeCategory({ enrichmentId: providerId });
|
|
8580
8580
|
},
|
|
8581
|
-
writeObject: async (
|
|
8581
|
+
writeObject: async (object4, existingObject) => {
|
|
8582
8582
|
await client.upsertCategory({
|
|
8583
|
-
enrichment:
|
|
8583
|
+
enrichment: object4.object
|
|
8584
8584
|
});
|
|
8585
8585
|
const source = createEnrichmentValueEngineDataSource({
|
|
8586
|
-
categoryId:
|
|
8587
|
-
values:
|
|
8586
|
+
categoryId: object4.object.id,
|
|
8587
|
+
values: object4.object.values
|
|
8588
8588
|
});
|
|
8589
8589
|
const target = createEnrichmentValueEngineDataSource({
|
|
8590
|
-
categoryId:
|
|
8590
|
+
categoryId: object4.object.id,
|
|
8591
8591
|
values: existingObject?.object?.values ?? [],
|
|
8592
8592
|
client
|
|
8593
8593
|
});
|
|
@@ -8598,7 +8598,7 @@ function createEnrichmentEngineDataSource({
|
|
|
8598
8598
|
whatIf: false,
|
|
8599
8599
|
log: createSyncEngineConsoleLogger({
|
|
8600
8600
|
diffMode: "off",
|
|
8601
|
-
prefix: ` ${
|
|
8601
|
+
prefix: ` ${object4.displayName} value`,
|
|
8602
8602
|
indent: "> "
|
|
8603
8603
|
})
|
|
8604
8604
|
});
|
|
@@ -8629,11 +8629,11 @@ var createEnrichmentValueEngineDataSource = ({
|
|
|
8629
8629
|
}
|
|
8630
8630
|
await client.removeValue({ enrichmentId: categoryId, enrichmentValueId: providerId });
|
|
8631
8631
|
},
|
|
8632
|
-
writeObject: async (
|
|
8632
|
+
writeObject: async (object4) => {
|
|
8633
8633
|
if (!client) {
|
|
8634
8634
|
throw new Error("Provider is read only");
|
|
8635
8635
|
}
|
|
8636
|
-
await client.upsertValue({ enrichmentId: categoryId, enrichmentValue:
|
|
8636
|
+
await client.upsertValue({ enrichmentId: categoryId, enrichmentValue: object4.object });
|
|
8637
8637
|
}
|
|
8638
8638
|
};
|
|
8639
8639
|
};
|
|
@@ -9016,9 +9016,9 @@ function createQuirkEngineDataSource({
|
|
|
9016
9016
|
deleteObject: async (providerId) => {
|
|
9017
9017
|
await client.remove({ quirkId: providerId });
|
|
9018
9018
|
},
|
|
9019
|
-
writeObject: async (
|
|
9019
|
+
writeObject: async (object4) => {
|
|
9020
9020
|
await client.upsert({
|
|
9021
|
-
quirk:
|
|
9021
|
+
quirk: object4.object
|
|
9022
9022
|
});
|
|
9023
9023
|
}
|
|
9024
9024
|
};
|
|
@@ -9299,9 +9299,9 @@ function createSignalEngineDataSource({
|
|
|
9299
9299
|
deleteObject: async (providerId) => {
|
|
9300
9300
|
await client.remove({ signalId: providerId });
|
|
9301
9301
|
},
|
|
9302
|
-
writeObject: async (
|
|
9302
|
+
writeObject: async (object4) => {
|
|
9303
9303
|
await client.upsert({
|
|
9304
|
-
signal:
|
|
9304
|
+
signal: object4.object
|
|
9305
9305
|
});
|
|
9306
9306
|
}
|
|
9307
9307
|
};
|
|
@@ -9582,9 +9582,9 @@ function createTestEngineDataSource({
|
|
|
9582
9582
|
deleteObject: async (providerId) => {
|
|
9583
9583
|
await client.remove({ testId: providerId });
|
|
9584
9584
|
},
|
|
9585
|
-
writeObject: async (
|
|
9585
|
+
writeObject: async (object4) => {
|
|
9586
9586
|
await client.upsert({
|
|
9587
|
-
test:
|
|
9587
|
+
test: object4.object
|
|
9588
9588
|
});
|
|
9589
9589
|
}
|
|
9590
9590
|
};
|
|
@@ -10121,7 +10121,7 @@ import crypto2 from "crypto";
|
|
|
10121
10121
|
import fs7 from "fs";
|
|
10122
10122
|
import fsj5 from "fs-jetpack";
|
|
10123
10123
|
import * as git from "isomorphic-git";
|
|
10124
|
-
import * as http from "isomorphic-git/http/node
|
|
10124
|
+
import * as http from "isomorphic-git/http/node";
|
|
10125
10125
|
import os from "os";
|
|
10126
10126
|
import path5 from "path";
|
|
10127
10127
|
async function cloneStarter({
|
|
@@ -10614,9 +10614,9 @@ function createProjectMapDefinitionEngineDataSource({
|
|
|
10614
10614
|
deleteObject: async (providerId) => {
|
|
10615
10615
|
await client.deleteProjectMap({ projectMapId: providerId });
|
|
10616
10616
|
},
|
|
10617
|
-
writeObject: async (
|
|
10617
|
+
writeObject: async (object4) => {
|
|
10618
10618
|
await client.upsertProjectMap({
|
|
10619
|
-
projectMap:
|
|
10619
|
+
projectMap: object4.object
|
|
10620
10620
|
});
|
|
10621
10621
|
}
|
|
10622
10622
|
};
|
|
@@ -10907,22 +10907,22 @@ function createProjectMapNodeEngineDataSource({
|
|
|
10907
10907
|
return {
|
|
10908
10908
|
name: "Uniform API",
|
|
10909
10909
|
objects: getObjects(),
|
|
10910
|
-
deleteObject: async (providerId,
|
|
10910
|
+
deleteObject: async (providerId, object4) => {
|
|
10911
10911
|
await client.deleteProjectMapNode({
|
|
10912
|
-
nodeId:
|
|
10913
|
-
projectMapId:
|
|
10912
|
+
nodeId: object4.object.id,
|
|
10913
|
+
projectMapId: object4.object.projectMapId
|
|
10914
10914
|
});
|
|
10915
10915
|
},
|
|
10916
|
-
writeObject: async (
|
|
10917
|
-
const nodeToUpsert = { ...
|
|
10916
|
+
writeObject: async (object4) => {
|
|
10917
|
+
const nodeToUpsert = { ...object4.object };
|
|
10918
10918
|
try {
|
|
10919
10919
|
await client.upsertProjectMapNodes({
|
|
10920
|
-
projectMapId:
|
|
10920
|
+
projectMapId: object4.object.projectMapId,
|
|
10921
10921
|
nodes: [{ node: nodeToUpsert }]
|
|
10922
10922
|
});
|
|
10923
10923
|
} catch (error) {
|
|
10924
10924
|
throw new Error(
|
|
10925
|
-
`writing project map node '${
|
|
10925
|
+
`writing project map node '${object4.object.path}' (id: ${object4.object.id}) failed
|
|
10926
10926
|
|
|
10927
10927
|
${error}`
|
|
10928
10928
|
);
|
|
@@ -10979,8 +10979,8 @@ var ProjectMapNodePullModule = {
|
|
|
10979
10979
|
const source = createProjectMapNodeEngineDataSource({ client, projectId });
|
|
10980
10980
|
let target;
|
|
10981
10981
|
const isPackage = isPathAPackageFile(directory);
|
|
10982
|
-
const expandedSelectIdentifier = (
|
|
10983
|
-
return selectIdentifier14(
|
|
10982
|
+
const expandedSelectIdentifier = (object4) => {
|
|
10983
|
+
return selectIdentifier14(object4, projectId);
|
|
10984
10984
|
};
|
|
10985
10985
|
if (isPackage) {
|
|
10986
10986
|
const packageContents = readContextPackage2(directory, false, verbose);
|
|
@@ -11063,8 +11063,8 @@ var ProjectMapNodePushModule = {
|
|
|
11063
11063
|
});
|
|
11064
11064
|
let source;
|
|
11065
11065
|
const isPackage = isPathAPackageFile(directory);
|
|
11066
|
-
const expandedSelectIdentifier = (
|
|
11067
|
-
return selectIdentifier14(
|
|
11066
|
+
const expandedSelectIdentifier = (object4) => {
|
|
11067
|
+
return selectIdentifier14(object4, projectId);
|
|
11068
11068
|
};
|
|
11069
11069
|
if (isPackage) {
|
|
11070
11070
|
const packageContents = readContextPackage2(directory, true, verbose);
|
|
@@ -11097,9 +11097,9 @@ var ProjectMapNodePushModule = {
|
|
|
11097
11097
|
whatIf,
|
|
11098
11098
|
allowEmptySource,
|
|
11099
11099
|
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
11100
|
-
onError: (error,
|
|
11100
|
+
onError: (error, object4) => {
|
|
11101
11101
|
if (error.message.includes(__INTERNAL_MISSING_PARENT_NODE_ERROR)) {
|
|
11102
|
-
nodesFailedDueToMissingParent.add(
|
|
11102
|
+
nodesFailedDueToMissingParent.add(object4.object);
|
|
11103
11103
|
} else {
|
|
11104
11104
|
throw error;
|
|
11105
11105
|
}
|
|
@@ -11282,8 +11282,8 @@ function createRedirectDefinitionEngineDataSource({
|
|
|
11282
11282
|
deleteObject: async (providerId) => {
|
|
11283
11283
|
await client.deleteRedirect(providerId);
|
|
11284
11284
|
},
|
|
11285
|
-
writeObject: async (
|
|
11286
|
-
await client.upsertRedirect(
|
|
11285
|
+
writeObject: async (object4) => {
|
|
11286
|
+
await client.upsertRedirect(object4.object);
|
|
11287
11287
|
}
|
|
11288
11288
|
};
|
|
11289
11289
|
}
|
|
@@ -11502,7 +11502,7 @@ import yargs36 from "yargs";
|
|
|
11502
11502
|
import { ApiClient as ApiClient4 } from "@uniformdev/context/api";
|
|
11503
11503
|
import PQueue3 from "p-queue";
|
|
11504
11504
|
import { Svix } from "svix";
|
|
11505
|
-
import
|
|
11505
|
+
import * as z3 from "zod";
|
|
11506
11506
|
var WEBHOOKS_DASHBOARD_BASE_PATH = "/api/v1/svix-dashboard";
|
|
11507
11507
|
var WebhooksClient = class extends ApiClient4 {
|
|
11508
11508
|
constructor(options) {
|
|
@@ -11680,8 +11680,8 @@ function createWebhookEngineDataSource({
|
|
|
11680
11680
|
deleteObject: async (providerId) => {
|
|
11681
11681
|
await client.delete(providerId);
|
|
11682
11682
|
},
|
|
11683
|
-
writeObject: async (
|
|
11684
|
-
await client.put(
|
|
11683
|
+
writeObject: async (object4) => {
|
|
11684
|
+
await client.put(object4.object);
|
|
11685
11685
|
}
|
|
11686
11686
|
};
|
|
11687
11687
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.34.
|
|
3
|
+
"version": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
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.
|
|
31
|
-
"@uniformdev/canvas": "20.34.
|
|
32
|
-
"@uniformdev/context": "20.34.
|
|
33
|
-
"@uniformdev/files": "20.34.
|
|
34
|
-
"@uniformdev/project-map": "20.34.
|
|
35
|
-
"@uniformdev/redirect": "20.34.
|
|
36
|
-
"@uniformdev/richtext": "20.34.
|
|
30
|
+
"@uniformdev/assets": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
31
|
+
"@uniformdev/canvas": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
32
|
+
"@uniformdev/context": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
33
|
+
"@uniformdev/files": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
34
|
+
"@uniformdev/project-map": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
35
|
+
"@uniformdev/redirect": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
36
|
+
"@uniformdev/richtext": "20.34.3-alpha.70+bc3f8ba0f4",
|
|
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.
|
|
50
|
-
"isomorphic-git": "1.
|
|
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": "^
|
|
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": "
|
|
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": "
|
|
84
|
+
"gitHead": "bc3f8ba0f4719673f92d9e8c48c3818dc439c364"
|
|
85
85
|
}
|