@cleocode/caamp 1.1.0 → 1.1.2
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.
|
@@ -2287,11 +2287,15 @@ function buildLibraryFromFiles(root) {
|
|
|
2287
2287
|
return readFileSync2(resourcePath, "utf-8");
|
|
2288
2288
|
},
|
|
2289
2289
|
listProtocols() {
|
|
2290
|
+
const rootProtocols = discoverFiles(join6(root, "protocols"), ".md");
|
|
2291
|
+
if (rootProtocols.length > 0) return rootProtocols;
|
|
2290
2292
|
return discoverFiles(join6(root, "skills", "protocols"), ".md");
|
|
2291
2293
|
},
|
|
2292
2294
|
getProtocolPath(name) {
|
|
2293
|
-
const
|
|
2294
|
-
|
|
2295
|
+
const rootPath = join6(root, "protocols", `${name}.md`);
|
|
2296
|
+
if (existsSync11(rootPath)) return rootPath;
|
|
2297
|
+
const skillsPath = join6(root, "skills", "protocols", `${name}.md`);
|
|
2298
|
+
return existsSync11(skillsPath) ? skillsPath : void 0;
|
|
2295
2299
|
},
|
|
2296
2300
|
readProtocol(name) {
|
|
2297
2301
|
const protocolPath = library.getProtocolPath(name);
|
|
@@ -3662,4 +3666,4 @@ export {
|
|
|
3662
3666
|
toSarif,
|
|
3663
3667
|
validateSkill
|
|
3664
3668
|
};
|
|
3665
|
-
//# sourceMappingURL=chunk-
|
|
3669
|
+
//# sourceMappingURL=chunk-7YV3KXEJ.js.map
|