@yahoo/uds-create-cli 5.100.6 → 5.100.7
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 +33 -5
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.7",
|
|
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.7",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.100.7",
|
|
37
|
+
"@yahoo/uds-create-types": "5.100.7",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.100.7",
|
|
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.7",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.100.7",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.100.7",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.100.7",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.100.7",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.100.7"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -107312,7 +107312,7 @@ function childrenOf(body) {
|
|
|
107312
107312
|
return [...body.children ?? []];
|
|
107313
107313
|
}
|
|
107314
107314
|
function insert(config2, input2) {
|
|
107315
|
-
const { slug: slug2 } = attachedSystem(config2);
|
|
107315
|
+
const { slug: slug2, system } = attachedSystem(config2);
|
|
107316
107316
|
const parent = bodyOf2(config2, input2.path, ["path"]);
|
|
107317
107317
|
const spec2 = input2.data.subtree;
|
|
107318
107318
|
const elements = spec2.elements;
|
|
@@ -107330,6 +107330,22 @@ function insert(config2, input2) {
|
|
|
107330
107330
|
for (const key2 of order) {
|
|
107331
107331
|
const element2 = elements[key2];
|
|
107332
107332
|
if (!element2) continue;
|
|
107333
|
+
const type = elementTypeRef({
|
|
107334
|
+
type: element2.type,
|
|
107335
|
+
slug: slug2
|
|
107336
|
+
});
|
|
107337
|
+
requireComponent({
|
|
107338
|
+
system,
|
|
107339
|
+
type,
|
|
107340
|
+
spelled: element2.type,
|
|
107341
|
+
field: [
|
|
107342
|
+
"data",
|
|
107343
|
+
"subtree",
|
|
107344
|
+
"elements",
|
|
107345
|
+
key2,
|
|
107346
|
+
"type"
|
|
107347
|
+
]
|
|
107348
|
+
});
|
|
107333
107349
|
const slots = {};
|
|
107334
107350
|
for (const [name, fills] of Object.entries(element2.slots ?? {})) slots[name] = fills.map(sub);
|
|
107335
107351
|
patches.push({
|
|
@@ -107337,10 +107353,7 @@ function insert(config2, input2) {
|
|
|
107337
107353
|
operation: "create",
|
|
107338
107354
|
path: pathFor.get(key2),
|
|
107339
107355
|
data: {
|
|
107340
|
-
type
|
|
107341
|
-
type: element2.type,
|
|
107342
|
-
slug: slug2
|
|
107343
|
-
}),
|
|
107356
|
+
type,
|
|
107344
107357
|
props: element2.props ?? {},
|
|
107345
107358
|
...element2.children?.length ? { children: element2.children.map(sub) } : {},
|
|
107346
107359
|
...Object.keys(slots).length > 0 ? { slots } : {},
|
|
@@ -107387,6 +107400,11 @@ function componentOf2({ config: config2, body }) {
|
|
|
107387
107400
|
path: entity.path
|
|
107388
107401
|
} : void 0;
|
|
107389
107402
|
}
|
|
107403
|
+
function requireComponent({ system, type, spelled: spelled4, field }) {
|
|
107404
|
+
if (kindOf2(type) !== "component") return;
|
|
107405
|
+
if (system.resolve("component", pathOf2(type))) return;
|
|
107406
|
+
rejectData(`The system has no component "${spelled4}".`, field);
|
|
107407
|
+
}
|
|
107390
107408
|
function placeOf(config2, path2, field) {
|
|
107391
107409
|
const root = rootOf(path2);
|
|
107392
107410
|
if (path2 === root) return rejectData(`"${path2}" is a placed node; this acts on an element inside one.`, field);
|
|
@@ -107633,6 +107651,16 @@ function wrap(config2, input2) {
|
|
|
107633
107651
|
type: input2.data.container.type,
|
|
107634
107652
|
slug: slug2
|
|
107635
107653
|
});
|
|
107654
|
+
requireComponent({
|
|
107655
|
+
system: attachedSystem(config2).system,
|
|
107656
|
+
type,
|
|
107657
|
+
spelled: input2.data.container.type,
|
|
107658
|
+
field: [
|
|
107659
|
+
"data",
|
|
107660
|
+
"container",
|
|
107661
|
+
"type"
|
|
107662
|
+
]
|
|
107663
|
+
});
|
|
107636
107664
|
const slotName = input2.data.container.slotProp ?? "children";
|
|
107637
107665
|
const component = componentOf2({
|
|
107638
107666
|
config: config2,
|