@duo-director/cli 0.3.0-rc.4 → 0.3.0-rc.5
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.
|
@@ -10551,7 +10551,7 @@ function declaredReferenceParts(message2) {
|
|
|
10551
10551
|
}
|
|
10552
10552
|
|
|
10553
10553
|
// packages/director/dist/context/policy.js
|
|
10554
|
-
var CONTEXT_POLICY_VERSION = "
|
|
10554
|
+
var CONTEXT_POLICY_VERSION = "8";
|
|
10555
10555
|
var EDGE_WEIGHTS = {
|
|
10556
10556
|
GOVERNS: 1,
|
|
10557
10557
|
IMPLEMENTS: 0.9,
|
|
@@ -12999,7 +12999,7 @@ function taskWords(task) {
|
|
|
12999
12999
|
return task.split(SEPARATORS).map((w) => {
|
|
13000
13000
|
const token = w.replace(/^[.]+|[.]+$/gu, "");
|
|
13001
13001
|
const trimmed = w.replace(/[.]+$/u, "");
|
|
13002
|
-
return { token, pathText:
|
|
13002
|
+
return { token, pathText: trimmed };
|
|
13003
13003
|
}).filter((w) => w.token.length > 0);
|
|
13004
13004
|
}
|
|
13005
13005
|
function pathOf(pathText) {
|
|
@@ -13007,6 +13007,12 @@ function pathOf(pathText) {
|
|
|
13007
13007
|
return void 0;
|
|
13008
13008
|
return normalizeRepoPath(pathText).value;
|
|
13009
13009
|
}
|
|
13010
|
+
function rootFileOf(pathText) {
|
|
13011
|
+
if (pathText.includes("/") || pathText.includes("\\") || !pathText.includes("."))
|
|
13012
|
+
return void 0;
|
|
13013
|
+
const p = normalizeRepoPath(pathText).value;
|
|
13014
|
+
return p === void 0 || p !== pathText ? void 0 : { path: p, leadingDot: pathText.startsWith(".") };
|
|
13015
|
+
}
|
|
13010
13016
|
var NAME_TOKEN = /^[A-Za-z_$][\w$]*(?:\.#?[A-Za-z_$][\w$]*)*$/u;
|
|
13011
13017
|
function isPathSignal(path36) {
|
|
13012
13018
|
const words = taskWords(path36);
|
|
@@ -13139,11 +13145,26 @@ function resolveSeeds(task, truth, store, explicit = [], groups = NO_CALLABLE_GR
|
|
|
13139
13145
|
exactTokens.add(token);
|
|
13140
13146
|
continue;
|
|
13141
13147
|
}
|
|
13148
|
+
const root = rootFileOf(pathText);
|
|
13149
|
+
const rootNode = root === void 0 ? void 0 : store.getNode(fileRef(root.path));
|
|
13150
|
+
const asRootFile = () => {
|
|
13151
|
+
if (rootNode !== void 0) {
|
|
13152
|
+
add(rootNode, "path", pathText, SEED_STRENGTH.path);
|
|
13153
|
+
exact++;
|
|
13154
|
+
exactTokens.add(token);
|
|
13155
|
+
}
|
|
13156
|
+
};
|
|
13157
|
+
if (rootNode !== void 0 && root?.leadingDot === true) {
|
|
13158
|
+
asRootFile();
|
|
13159
|
+
continue;
|
|
13160
|
+
}
|
|
13142
13161
|
if (token.includes("/"))
|
|
13143
13162
|
continue;
|
|
13144
13163
|
const name = token.replace(/\(\)$/u, "");
|
|
13145
|
-
if (!NAME_TOKEN.test(name) || name.length < 3)
|
|
13164
|
+
if (!NAME_TOKEN.test(name) || name.length < 3) {
|
|
13165
|
+
asRootFile();
|
|
13146
13166
|
continue;
|
|
13167
|
+
}
|
|
13147
13168
|
const qualified = symbols.filter((s) => s.payload.qualifiedName === name);
|
|
13148
13169
|
if (qualified.length === 1 && qualified[0] !== void 0) {
|
|
13149
13170
|
add(qualified[0], "symbol", token, SEED_STRENGTH.symbol);
|
|
@@ -13164,6 +13185,10 @@ function resolveSeeds(task, truth, store, explicit = [], groups = NO_CALLABLE_GR
|
|
|
13164
13185
|
continue;
|
|
13165
13186
|
}
|
|
13166
13187
|
const named = qualified.length > 1 ? qualified : symbols.filter((s) => s.payload.name === name);
|
|
13188
|
+
if (qualified.length === 0 && named.length === 0) {
|
|
13189
|
+
asRootFile();
|
|
13190
|
+
continue;
|
|
13191
|
+
}
|
|
13167
13192
|
if (named.length === 1 && named[0] !== void 0) {
|
|
13168
13193
|
add(named[0], "symbol-name", token, SEED_STRENGTH["symbol-name"]);
|
|
13169
13194
|
exact++;
|
package/dist/duoctl.js
CHANGED
package/dist/runtime-tree.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "duo.runtime-tree/1",
|
|
3
|
-
"package": "@duo-director/cli@0.3.0-rc.
|
|
3
|
+
"package": "@duo-director/cli@0.3.0-rc.5",
|
|
4
4
|
"delivery": "bundleDependencies",
|
|
5
5
|
"lock": {
|
|
6
6
|
"file": "apps/cli/npm-shrinkwrap.json",
|
|
7
|
-
"sha256": "
|
|
7
|
+
"sha256": "7cca8bc7e55f3180f2aa4841c93df8eada41a39af209b9f1298a08cfbb6f9b90",
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"packages": [
|