@delorenj/pjangler 1.5.26 → 1.5.27
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/index.js +7 -2
- package/dist/mcp-server.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10042,7 +10042,7 @@ import { join as join10 } from "node:path";
|
|
|
10042
10042
|
import YAML3 from "yaml";
|
|
10043
10043
|
var BMAD_RESERVED_DIR_NAMES = ["custom", "scripts", "_config", "_memory", "memory", "render"];
|
|
10044
10044
|
var indentOf = (line) => line.length - line.trimStart().length;
|
|
10045
|
-
var isBlankOrComment = (line) => /^\s*(#.*)?$/.test(line);
|
|
10045
|
+
var isBlankOrComment = (line) => /^\s*(#.*)?\r?\n?$/.test(line);
|
|
10046
10046
|
var isAbsent = (value, sentinels = []) => value === void 0 || value === null || typeof value === "string" && (!value.trim() || sentinels.includes(value.trim().toLowerCase()));
|
|
10047
10047
|
function isLegacyReservedModuleEntry(entry) {
|
|
10048
10048
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) return false;
|
|
@@ -10068,7 +10068,12 @@ function stripReservedModuleEntries(raw) {
|
|
|
10068
10068
|
const items = [];
|
|
10069
10069
|
for (let index = first; index < end; index++) {
|
|
10070
10070
|
if (indentOf(lines[index]) === itemIndent && /^\s*-(\s|$)/.test(lines[index]) && !isBlankOrComment(lines[index])) {
|
|
10071
|
-
if (items.length)
|
|
10071
|
+
if (items.length) {
|
|
10072
|
+
let stop = index;
|
|
10073
|
+
const start = items[items.length - 1].start;
|
|
10074
|
+
while (stop - 1 > start && isBlankOrComment(lines[stop - 1]) && indentOf(lines[stop - 1]) <= itemIndent) stop--;
|
|
10075
|
+
items[items.length - 1].stop = stop;
|
|
10076
|
+
}
|
|
10072
10077
|
items.push({ start: index, stop: end });
|
|
10073
10078
|
}
|
|
10074
10079
|
}
|
package/dist/mcp-server.js
CHANGED
|
@@ -9205,7 +9205,7 @@ import { join as join10 } from "node:path";
|
|
|
9205
9205
|
import YAML3 from "yaml";
|
|
9206
9206
|
var BMAD_RESERVED_DIR_NAMES = ["custom", "scripts", "_config", "_memory", "memory", "render"];
|
|
9207
9207
|
var indentOf = (line) => line.length - line.trimStart().length;
|
|
9208
|
-
var isBlankOrComment = (line) => /^\s*(#.*)?$/.test(line);
|
|
9208
|
+
var isBlankOrComment = (line) => /^\s*(#.*)?\r?\n?$/.test(line);
|
|
9209
9209
|
var isAbsent = (value, sentinels = []) => value === void 0 || value === null || typeof value === "string" && (!value.trim() || sentinels.includes(value.trim().toLowerCase()));
|
|
9210
9210
|
function isLegacyReservedModuleEntry(entry) {
|
|
9211
9211
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) return false;
|
|
@@ -9231,7 +9231,12 @@ function stripReservedModuleEntries(raw) {
|
|
|
9231
9231
|
const items = [];
|
|
9232
9232
|
for (let index = first; index < end; index++) {
|
|
9233
9233
|
if (indentOf(lines[index]) === itemIndent && /^\s*-(\s|$)/.test(lines[index]) && !isBlankOrComment(lines[index])) {
|
|
9234
|
-
if (items.length)
|
|
9234
|
+
if (items.length) {
|
|
9235
|
+
let stop = index;
|
|
9236
|
+
const start = items[items.length - 1].start;
|
|
9237
|
+
while (stop - 1 > start && isBlankOrComment(lines[stop - 1]) && indentOf(lines[stop - 1]) <= itemIndent) stop--;
|
|
9238
|
+
items[items.length - 1].stop = stop;
|
|
9239
|
+
}
|
|
9235
9240
|
items.push({ start: index, stop: end });
|
|
9236
9241
|
}
|
|
9237
9242
|
}
|