@lmzhen/dsh-evolution-core 0.1.0-rc.53 → 0.1.0-rc.55
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/lib/index.js +9 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1785,8 +1785,15 @@ function resolveOrigins(headerOrigin, isReview = false) {
|
|
|
1785
1785
|
function skillDir(root, name) {
|
|
1786
1786
|
return join(root, name);
|
|
1787
1787
|
}
|
|
1788
|
+
/** Dot-prefixed on-disk marker name. SINGLE source: `list()` matches directory
|
|
1789
|
+
* entries against this name, and path builders must never hardcode a marker
|
|
1790
|
+
* literal (N-1: the rc.49 exists()-probe convergence dropped the dot,
|
|
1791
|
+
* poisoning every protectedBy/managed report). */
|
|
1792
|
+
function markerEntryName(marker) {
|
|
1793
|
+
return `.${marker}`;
|
|
1794
|
+
}
|
|
1788
1795
|
function markerPath(dir, marker) {
|
|
1789
|
-
return join(dir,
|
|
1796
|
+
return join(dir, markerEntryName(marker));
|
|
1790
1797
|
}
|
|
1791
1798
|
function parseFrontmatter(content) {
|
|
1792
1799
|
if (!content.trimStart().startsWith("---")) return null;
|
|
@@ -1970,7 +1977,7 @@ var SkillLibrary = class {
|
|
|
1970
1977
|
try {
|
|
1971
1978
|
entries = await this.io.list(dir);
|
|
1972
1979
|
} catch {}
|
|
1973
|
-
const has = (marker) => entries.includes(marker);
|
|
1980
|
+
const has = (marker) => entries.includes(markerEntryName(marker));
|
|
1974
1981
|
const protectedBy = has("bundled") ? "bundled" : has("hub-installed") ? "hub-installed" : has("pinned") ? "pinned" : null;
|
|
1975
1982
|
summaries.push({
|
|
1976
1983
|
name,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-core",
|
|
3
3
|
"description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.55",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|