@yahoo/uds-create-cli 5.71.0 → 5.72.0
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 +63 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.72.0",
|
|
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.
|
|
36
|
-
"@yahoo/uds-create-loader": "5.
|
|
37
|
-
"@yahoo/uds-create-types": "5.
|
|
38
|
-
"@yahoo/uds-create-utils": "5.
|
|
35
|
+
"@yahoo/uds-create-config": "5.72.0",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.72.0",
|
|
37
|
+
"@yahoo/uds-create-types": "5.72.0",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.72.0",
|
|
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": 20261102193912,
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.
|
|
58
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-x64": "5.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.
|
|
62
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.72.0",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.72.0",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.72.0",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.72.0",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.72.0",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.72.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -99066,63 +99066,74 @@ function sourceRowStates({ config: config2, slug: slug2 }) {
|
|
|
99066
99066
|
const derived = config2.withDerivedRows();
|
|
99067
99067
|
const rows = [];
|
|
99068
99068
|
for (const kind of config2.borrowableKinds(slug2)) for (const node2 of source.tree(kind)) {
|
|
99069
|
-
const
|
|
99070
|
-
|
|
99071
|
-
|
|
99072
|
-
|
|
99073
|
-
|
|
99074
|
-
if (members2.length === 0) continue;
|
|
99075
|
-
let linked = 0;
|
|
99076
|
-
let local = 0;
|
|
99077
|
-
let elsewhere = 0;
|
|
99078
|
-
const linkedFrom = /* @__PURE__ */ new Set();
|
|
99079
|
-
let shared = 0;
|
|
99080
|
-
let sharedOrigin;
|
|
99081
|
-
for (const leaf of members2) {
|
|
99082
|
-
const held = derived.resolve(kind, leaf.path);
|
|
99083
|
-
if (!held) continue;
|
|
99084
|
-
if (held.borrowedFrom === slug2) {
|
|
99085
|
-
linked += 1;
|
|
99086
|
-
continue;
|
|
99087
|
-
}
|
|
99088
|
-
const origin = sharedWithOrigin({
|
|
99089
|
-
config: derived,
|
|
99090
|
-
source,
|
|
99091
|
-
slug: slug2,
|
|
99092
|
-
kind,
|
|
99093
|
-
path: leaf.path
|
|
99094
|
-
});
|
|
99095
|
-
const from = origin === void 0 ? held.borrowedFrom ?? declaredElsewhere({
|
|
99096
|
-
config: derived,
|
|
99097
|
-
slug: slug2,
|
|
99098
|
-
kind,
|
|
99099
|
-
path: leaf.path
|
|
99100
|
-
}) : void 0;
|
|
99101
|
-
if (origin !== void 0) {
|
|
99102
|
-
shared += 1;
|
|
99103
|
-
sharedOrigin ??= origin;
|
|
99104
|
-
} else if (from !== void 0) {
|
|
99105
|
-
elsewhere += 1;
|
|
99106
|
-
linkedFrom.add(from);
|
|
99107
|
-
} else local += 1;
|
|
99108
|
-
}
|
|
99109
|
-
rows.push({
|
|
99069
|
+
const row = rowStateOf({
|
|
99070
|
+
config: config2,
|
|
99071
|
+
derived,
|
|
99072
|
+
source,
|
|
99073
|
+
slug: slug2,
|
|
99110
99074
|
kind,
|
|
99111
|
-
|
|
99112
|
-
type: node2.type,
|
|
99113
|
-
name: node2.item?.displayLabel ?? node2.name,
|
|
99114
|
-
members: members2.length,
|
|
99115
|
-
held: linked,
|
|
99116
|
-
linked: linked === members2.length,
|
|
99117
|
-
replaces: local,
|
|
99118
|
-
linkedElsewhere: elsewhere,
|
|
99119
|
-
linkedFrom: [...linkedFrom],
|
|
99120
|
-
shared,
|
|
99121
|
-
...sharedOrigin === void 0 ? {} : { sharedOrigin }
|
|
99075
|
+
node: node2
|
|
99122
99076
|
});
|
|
99077
|
+
if (row) rows.push(row);
|
|
99123
99078
|
}
|
|
99124
99079
|
return rows;
|
|
99125
99080
|
}
|
|
99081
|
+
function rowStateOf({ config: config2, derived, source, slug: slug2, kind, node: node2 }) {
|
|
99082
|
+
const members2 = leafItems(node2).filter((leaf) => config2.canBorrow({
|
|
99083
|
+
kind,
|
|
99084
|
+
path: leaf.path,
|
|
99085
|
+
slug: slug2
|
|
99086
|
+
}).ok);
|
|
99087
|
+
if (members2.length === 0) return void 0;
|
|
99088
|
+
let linked = 0;
|
|
99089
|
+
let local = 0;
|
|
99090
|
+
let elsewhere = 0;
|
|
99091
|
+
const linkedFrom = /* @__PURE__ */ new Set();
|
|
99092
|
+
let shared = 0;
|
|
99093
|
+
let sharedOrigin;
|
|
99094
|
+
for (const leaf of members2) {
|
|
99095
|
+
const held = derived.resolve(kind, leaf.path);
|
|
99096
|
+
if (!held) continue;
|
|
99097
|
+
if (held.borrowedFrom === slug2) {
|
|
99098
|
+
linked += 1;
|
|
99099
|
+
continue;
|
|
99100
|
+
}
|
|
99101
|
+
const origin = sharedWithOrigin({
|
|
99102
|
+
config: derived,
|
|
99103
|
+
source,
|
|
99104
|
+
slug: slug2,
|
|
99105
|
+
kind,
|
|
99106
|
+
path: leaf.path
|
|
99107
|
+
});
|
|
99108
|
+
const from = origin === void 0 ? held.borrowedFrom ?? declaredElsewhere({
|
|
99109
|
+
config: derived,
|
|
99110
|
+
slug: slug2,
|
|
99111
|
+
kind,
|
|
99112
|
+
path: leaf.path
|
|
99113
|
+
}) : void 0;
|
|
99114
|
+
if (origin !== void 0) {
|
|
99115
|
+
shared += 1;
|
|
99116
|
+
sharedOrigin ??= origin;
|
|
99117
|
+
} else if (from !== void 0) {
|
|
99118
|
+
elsewhere += 1;
|
|
99119
|
+
linkedFrom.add(from);
|
|
99120
|
+
} else local += 1;
|
|
99121
|
+
}
|
|
99122
|
+
return {
|
|
99123
|
+
kind,
|
|
99124
|
+
path: node2.path,
|
|
99125
|
+
type: node2.type,
|
|
99126
|
+
name: node2.item?.displayLabel ?? node2.name,
|
|
99127
|
+
members: members2.length,
|
|
99128
|
+
held: linked,
|
|
99129
|
+
linked: linked === members2.length,
|
|
99130
|
+
replaces: local,
|
|
99131
|
+
linkedElsewhere: elsewhere,
|
|
99132
|
+
linkedFrom: [...linkedFrom],
|
|
99133
|
+
shared,
|
|
99134
|
+
...sharedOrigin === void 0 ? {} : { sharedOrigin }
|
|
99135
|
+
};
|
|
99136
|
+
}
|
|
99126
99137
|
|
|
99127
99138
|
// ../config/dist/entities/system/LinkedSystem.js
|
|
99128
99139
|
var EXACT_VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
|