@yahoo/uds-create-cli 5.100.1 → 5.100.3
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/package.json +11 -11
- package/subprocess/transform-runner.mjs +59 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.100.
|
|
3
|
+
"version": "5.100.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
33
33
|
"@orpc/client": "^1.13.9",
|
|
34
34
|
"@orpc/contract": "^1.13.9",
|
|
35
|
-
"@yahoo/uds-create-config": "5.100.
|
|
36
|
-
"@yahoo/uds-create-loader": "5.100.
|
|
37
|
-
"@yahoo/uds-create-types": "5.100.
|
|
38
|
-
"@yahoo/uds-create-utils": "5.100.
|
|
35
|
+
"@yahoo/uds-create-config": "5.100.3",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.100.3",
|
|
37
|
+
"@yahoo/uds-create-types": "5.100.3",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.100.3",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
40
|
"ts-morph": "^27.0.2",
|
|
41
41
|
"get-tsconfig": "^4.10.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"udsSchemaVersion": 20261113131930,
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.100.
|
|
58
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.100.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.100.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-x64": "5.100.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.100.
|
|
62
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.100.
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.100.3",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.100.3",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.100.3",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.100.3",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.100.3",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.100.3"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -71410,6 +71410,21 @@ function applyPathDelta(current, delta, isField2) {
|
|
|
71410
71410
|
for (const [key2, value] of Object.entries(delta)) out = setAtPath(out, pathSegments(key2, isField2), value);
|
|
71411
71411
|
return out;
|
|
71412
71412
|
}
|
|
71413
|
+
function applyValidatedDelta({ local, delta, validated, isField: isField2 }) {
|
|
71414
|
+
let out = local;
|
|
71415
|
+
for (const [key2, value] of Object.entries(delta)) {
|
|
71416
|
+
const segments = pathSegments(key2, isField2);
|
|
71417
|
+
let at = validated;
|
|
71418
|
+
let depth = 0;
|
|
71419
|
+
while (depth < segments.length && !Array.isArray(at)) {
|
|
71420
|
+
at = isPlainObject2(at) ? at[segments[depth]] : void 0;
|
|
71421
|
+
depth++;
|
|
71422
|
+
}
|
|
71423
|
+
const indexed = depth < segments.length;
|
|
71424
|
+
out = setAtPath(out, segments.slice(0, depth), value === null && !indexed ? null : at ?? null);
|
|
71425
|
+
}
|
|
71426
|
+
return out;
|
|
71427
|
+
}
|
|
71413
71428
|
function namedFields(names) {
|
|
71414
71429
|
const declared2 = new Set(names);
|
|
71415
71430
|
return (name) => declared2.has(name);
|
|
@@ -95983,10 +95998,35 @@ var Config = class Config2 {
|
|
|
95983
95998
|
path: patch.path,
|
|
95984
95999
|
data: { [topField]: body[topField] }
|
|
95985
96000
|
}, mode);
|
|
95986
|
-
|
|
96001
|
+
let delta2 = {
|
|
95987
96002
|
...extension.extend,
|
|
95988
96003
|
[topField]: body[topField]
|
|
95989
96004
|
};
|
|
96005
|
+
const sub = subEntityAt(entry, patch.field);
|
|
96006
|
+
if (patch.operation === "sub-update" && !sub?.singleton) {
|
|
96007
|
+
const members2 = collectionIn(body, patch);
|
|
96008
|
+
const member = members2[patch.key];
|
|
96009
|
+
const renamed = member === void 0 && Object.keys(members2).some((key2) => !(key2 in collectionIn(inherited, patch)));
|
|
96010
|
+
const [outerField, innerField] = patch.field.split("/");
|
|
96011
|
+
const outer = extension.extend[outerField];
|
|
96012
|
+
const owner = isPlainObject2(outer) ? outer[String(patch.owner)] : void 0;
|
|
96013
|
+
let own2 = outer;
|
|
96014
|
+
if (innerField) own2 = isPlainObject2(owner) ? owner[innerField] : void 0;
|
|
96015
|
+
const localMembers = { ...isPlainObject2(own2) ? own2 : {} };
|
|
96016
|
+
const localMember = localMembers[patch.key];
|
|
96017
|
+
if (member === void 0) delete localMembers[patch.key];
|
|
96018
|
+
else {
|
|
96019
|
+
const next = isPlainObject2(patch.data) && isPlainObject2(member) && !isRef2(member) ? applyValidatedDelta({
|
|
96020
|
+
local: isPlainObject2(localMember) ? localMember : {},
|
|
96021
|
+
delta: patch.data,
|
|
96022
|
+
validated: member,
|
|
96023
|
+
isField: this.memberFields(entry, patch.field, inherited, patch.key)
|
|
96024
|
+
}) : member;
|
|
96025
|
+
if (sub?.vacant?.(next)) delete localMembers[patch.key];
|
|
96026
|
+
else localMembers[patch.key] = next;
|
|
96027
|
+
}
|
|
96028
|
+
if (!renamed) delta2 = storeCollection(extension.extend, patch, localMembers);
|
|
96029
|
+
}
|
|
95990
96030
|
return changed.withChanges([extensionChange(entry, patch.kind, patch.path, {
|
|
95991
96031
|
__ref: extension.__ref,
|
|
95992
96032
|
extend: delta2
|
|
@@ -96081,10 +96121,13 @@ var Config = class Config2 {
|
|
|
96081
96121
|
extend: current.overlay,
|
|
96082
96122
|
source: this.configFor(extension)
|
|
96083
96123
|
}) : resolved.toJSON(), delta, isField2);
|
|
96084
|
-
const
|
|
96085
|
-
|
|
96086
|
-
|
|
96087
|
-
|
|
96124
|
+
const previous = current ? current.overlay : extension.extend;
|
|
96125
|
+
let local = applyValidatedDelta({
|
|
96126
|
+
local: previous,
|
|
96127
|
+
delta,
|
|
96128
|
+
validated: written2,
|
|
96129
|
+
isField: isField2
|
|
96130
|
+
});
|
|
96088
96131
|
const sourceBody = this.configFor(extension)?.resolve(patch.kind, pathOf2(extension))?.toJSON();
|
|
96089
96132
|
if (!sourceBody) reject("NOT_FOUND", `Cannot edit ${patch.kind} "${patch.path}" \u2014 its source "${extension.__ref}" is unavailable`);
|
|
96090
96133
|
const candidate = this.at(snapshot).laidLinkedBody({
|
|
@@ -96102,7 +96145,17 @@ var Config = class Config2 {
|
|
|
96102
96145
|
if (checked2.success) merged2 = checked2.data;
|
|
96103
96146
|
}
|
|
96104
96147
|
const normalized = this.normalizeMembers(entry, merged2, { written: touched });
|
|
96105
|
-
|
|
96148
|
+
local = applyValidatedDelta({
|
|
96149
|
+
local: previous,
|
|
96150
|
+
delta,
|
|
96151
|
+
validated: normalized,
|
|
96152
|
+
isField: isField2
|
|
96153
|
+
});
|
|
96154
|
+
for (const field of touched) {
|
|
96155
|
+
const before5 = merged2[field];
|
|
96156
|
+
const after5 = normalized[field];
|
|
96157
|
+
if (isPlainObject2(before5) && isPlainObject2(after5) && Object.keys(before5).some((key2) => !(key2 in after5))) local[field] = after5;
|
|
96158
|
+
}
|
|
96106
96159
|
if (isMintedRow(stored)) {
|
|
96107
96160
|
const slug2 = sourceOf2(extension);
|
|
96108
96161
|
if (slug2 === void 0) reject("UNSUPPORTED", `Cannot edit ${patch.kind} "${patch.path}" \u2014 its minted body names no source`);
|