@lousy-agents/mcp 5.12.1 → 5.13.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/dist/mcp-server.js +55 -38
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -6559,7 +6559,7 @@ function escapeJsonPtr(str) {
|
|
|
6559
6559
|
|
|
6560
6560
|
|
|
6561
6561
|
},
|
|
6562
|
-
|
|
6562
|
+
832(__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
|
|
6563
6563
|
// NAMESPACE OBJECT: ../../node_modules/micromark/lib/constructs.js
|
|
6564
6564
|
var constructs_namespaceObject = {};
|
|
6565
6565
|
__webpack_require__.r(constructs_namespaceObject);
|
|
@@ -31887,6 +31887,56 @@ const MAX_NPMRC_BYTES = (/* unused pure expression or super */ null && (64 * 102
|
|
|
31887
31887
|
|
|
31888
31888
|
// EXTERNAL MODULE: ../../node_modules/yaml/dist/index.js
|
|
31889
31889
|
var yaml_dist = __webpack_require__(3519);
|
|
31890
|
+
;// CONCATENATED MODULE: ../core/src/lib/frontmatter.ts
|
|
31891
|
+
/**
|
|
31892
|
+
* Shared YAML frontmatter parser for markdown files.
|
|
31893
|
+
* Extracts YAML data between leading `---` delimiters.
|
|
31894
|
+
*/
|
|
31895
|
+
/**
|
|
31896
|
+
* Parses YAML frontmatter from markdown content.
|
|
31897
|
+
*
|
|
31898
|
+
* Returns `null` when the content has no opening `---`, no closing `---`,
|
|
31899
|
+
* or contains invalid YAML.
|
|
31900
|
+
*/ function frontmatter_parseFrontmatter(content) {
|
|
31901
|
+
const lines = content.split("\n");
|
|
31902
|
+
if (lines[0]?.trim() !== "---") {
|
|
31903
|
+
return null;
|
|
31904
|
+
}
|
|
31905
|
+
let endIndex = -1;
|
|
31906
|
+
for(let i = 1; i < lines.length; i++){
|
|
31907
|
+
if (lines[i]?.trim() === "---") {
|
|
31908
|
+
endIndex = i;
|
|
31909
|
+
break;
|
|
31910
|
+
}
|
|
31911
|
+
}
|
|
31912
|
+
if (endIndex === -1) {
|
|
31913
|
+
return null;
|
|
31914
|
+
}
|
|
31915
|
+
const yamlContent = lines.slice(1, endIndex).join("\n");
|
|
31916
|
+
let data;
|
|
31917
|
+
try {
|
|
31918
|
+
const parsed = parseYaml(yamlContent, {
|
|
31919
|
+
maxAliasCount: 0
|
|
31920
|
+
});
|
|
31921
|
+
data = parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
31922
|
+
} catch {
|
|
31923
|
+
return null;
|
|
31924
|
+
}
|
|
31925
|
+
const fieldLines = new Map();
|
|
31926
|
+
for(let i = 1; i < endIndex; i++){
|
|
31927
|
+
// Match YAML top-level field names: non-whitespace start, any chars except colon, then colon followed by whitespace or end-of-line
|
|
31928
|
+
const match = lines[i]?.match(/^([^\s:][^:]*?):(?:\s|$)/);
|
|
31929
|
+
if (match?.[1]) {
|
|
31930
|
+
fieldLines.set(match[1], i + 1);
|
|
31931
|
+
}
|
|
31932
|
+
}
|
|
31933
|
+
return {
|
|
31934
|
+
data: data ?? {},
|
|
31935
|
+
fieldLines,
|
|
31936
|
+
frontmatterStartLine: 1
|
|
31937
|
+
};
|
|
31938
|
+
}
|
|
31939
|
+
|
|
31890
31940
|
;// CONCATENATED MODULE: ../core/src/gateways/skill-lint-gateway.ts
|
|
31891
31941
|
/**
|
|
31892
31942
|
* Gateway for skill lint file system operations.
|
|
@@ -31900,7 +31950,8 @@ var yaml_dist = __webpack_require__(3519);
|
|
|
31900
31950
|
* Skill directory locations to search for SKILL.md files.
|
|
31901
31951
|
*/ const SKILL_DIRECTORIES = [
|
|
31902
31952
|
(0,external_node_path_.join)(".github", "skills"),
|
|
31903
|
-
(0,external_node_path_.join)(".claude", "skills")
|
|
31953
|
+
(0,external_node_path_.join)(".claude", "skills"),
|
|
31954
|
+
(0,external_node_path_.join)(".agents", "skills")
|
|
31904
31955
|
];
|
|
31905
31956
|
/**
|
|
31906
31957
|
* File system implementation of the skill lint gateway.
|
|
@@ -31970,41 +32021,7 @@ var yaml_dist = __webpack_require__(3519);
|
|
|
31970
32021
|
return readFileNoFollow(filePath, MAX_SKILL_FILE_BYTES);
|
|
31971
32022
|
}
|
|
31972
32023
|
parseFrontmatter(content) {
|
|
31973
|
-
|
|
31974
|
-
if (lines[0]?.trim() !== "---") {
|
|
31975
|
-
return null;
|
|
31976
|
-
}
|
|
31977
|
-
let endIndex = -1;
|
|
31978
|
-
for(let i = 1; i < lines.length; i++){
|
|
31979
|
-
if (lines[i]?.trim() === "---") {
|
|
31980
|
-
endIndex = i;
|
|
31981
|
-
break;
|
|
31982
|
-
}
|
|
31983
|
-
}
|
|
31984
|
-
if (endIndex === -1) {
|
|
31985
|
-
return null;
|
|
31986
|
-
}
|
|
31987
|
-
const yamlContent = lines.slice(1, endIndex).join("\n");
|
|
31988
|
-
let data;
|
|
31989
|
-
try {
|
|
31990
|
-
const parsed = parseYaml(yamlContent);
|
|
31991
|
-
data = parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
31992
|
-
} catch {
|
|
31993
|
-
return null;
|
|
31994
|
-
}
|
|
31995
|
-
const fieldLines = new Map();
|
|
31996
|
-
for(let i = 1; i < endIndex; i++){
|
|
31997
|
-
// Match YAML top-level field names: non-whitespace start, any chars except colon, then colon+space
|
|
31998
|
-
const match = lines[i]?.match(/^([^\s:][^:]*?):\s/);
|
|
31999
|
-
if (match?.[1]) {
|
|
32000
|
-
fieldLines.set(match[1], i + 1);
|
|
32001
|
-
}
|
|
32002
|
-
}
|
|
32003
|
-
return {
|
|
32004
|
-
data: data ?? {},
|
|
32005
|
-
fieldLines,
|
|
32006
|
-
frontmatterStartLine: 1
|
|
32007
|
-
};
|
|
32024
|
+
return parseFrontmatter(content);
|
|
32008
32025
|
}
|
|
32009
32026
|
}
|
|
32010
32027
|
/**
|
|
@@ -63810,4 +63827,4 @@ if (installedChunkData !== 0) { // 0 means "already installed".'
|
|
|
63810
63827
|
// module factories are used so entry inlining is disabled
|
|
63811
63828
|
// startup
|
|
63812
63829
|
// Load entry module and return exports
|
|
63813
|
-
var __webpack_exports__ = __webpack_require__(
|
|
63830
|
+
var __webpack_exports__ = __webpack_require__(832);
|