@bugzy-ai/bugzy 1.9.0 → 1.9.1
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/cli/index.cjs +25 -26
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +25 -26
- package/dist/cli/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -7830,6 +7830,19 @@ function replaceInvocationPlaceholders(content, toolId, isLocal = false) {
|
|
|
7830
7830
|
return result;
|
|
7831
7831
|
}
|
|
7832
7832
|
|
|
7833
|
+
// src/cli/utils/yaml.ts
|
|
7834
|
+
init_esm_shims();
|
|
7835
|
+
import matter from "gray-matter";
|
|
7836
|
+
function serializeMarkdownWithFrontmatter(frontmatter, content) {
|
|
7837
|
+
const filteredFrontmatter = {};
|
|
7838
|
+
for (const [key, value] of Object.entries(frontmatter)) {
|
|
7839
|
+
if (value !== void 0 && value !== null) {
|
|
7840
|
+
filteredFrontmatter[key] = value;
|
|
7841
|
+
}
|
|
7842
|
+
}
|
|
7843
|
+
return matter.stringify(content, filteredFrontmatter);
|
|
7844
|
+
}
|
|
7845
|
+
|
|
7833
7846
|
// src/cli/generators/commands.ts
|
|
7834
7847
|
var COMMAND_FILTER = {
|
|
7835
7848
|
// Cloud-only commands (skip in local environment)
|
|
@@ -7888,29 +7901,19 @@ ${template.description}
|
|
|
7888
7901
|
}
|
|
7889
7902
|
function formatCommandMarkdown(frontmatter, content, includeFrontmatter) {
|
|
7890
7903
|
if (!includeFrontmatter) {
|
|
7891
|
-
const
|
|
7904
|
+
const lines = [];
|
|
7892
7905
|
if (frontmatter.description) {
|
|
7893
|
-
|
|
7894
|
-
|
|
7906
|
+
lines.push(`# ${frontmatter.description}`);
|
|
7907
|
+
lines.push("");
|
|
7895
7908
|
}
|
|
7896
7909
|
if (frontmatter["argument-hint"]) {
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
}
|
|
7900
|
-
lines2.push(content);
|
|
7901
|
-
return lines2.join("\n");
|
|
7902
|
-
}
|
|
7903
|
-
const lines = ["---"];
|
|
7904
|
-
for (const [key, value] of Object.entries(frontmatter)) {
|
|
7905
|
-
if (value !== void 0 && value !== null) {
|
|
7906
|
-
const formattedValue = typeof value === "string" ? `"${value}"` : value;
|
|
7907
|
-
lines.push(`${key}: ${formattedValue}`);
|
|
7910
|
+
lines.push(`**Arguments**: ${frontmatter["argument-hint"]}`);
|
|
7911
|
+
lines.push("");
|
|
7908
7912
|
}
|
|
7913
|
+
lines.push(content);
|
|
7914
|
+
return lines.join("\n");
|
|
7909
7915
|
}
|
|
7910
|
-
|
|
7911
|
-
lines.push("");
|
|
7912
|
-
lines.push(content);
|
|
7913
|
-
return lines.join("\n");
|
|
7916
|
+
return serializeMarkdownWithFrontmatter(frontmatter, content);
|
|
7914
7917
|
}
|
|
7915
7918
|
|
|
7916
7919
|
// src/cli/generators/agents.ts
|
|
@@ -7946,21 +7949,17 @@ function formatAgentMarkdown(frontmatter, content, includeFrontmatter) {
|
|
|
7946
7949
|
if (!includeFrontmatter) {
|
|
7947
7950
|
return content;
|
|
7948
7951
|
}
|
|
7949
|
-
const
|
|
7952
|
+
const processedFrontmatter = {};
|
|
7950
7953
|
for (const [key, value] of Object.entries(frontmatter)) {
|
|
7951
7954
|
if (value !== void 0 && value !== null) {
|
|
7952
7955
|
if (Array.isArray(value)) {
|
|
7953
|
-
|
|
7956
|
+
processedFrontmatter[key] = value.join(", ");
|
|
7954
7957
|
} else {
|
|
7955
|
-
|
|
7956
|
-
lines.push(`${key}: ${formattedValue}`);
|
|
7958
|
+
processedFrontmatter[key] = value;
|
|
7957
7959
|
}
|
|
7958
7960
|
}
|
|
7959
7961
|
}
|
|
7960
|
-
|
|
7961
|
-
lines.push("");
|
|
7962
|
-
lines.push(content);
|
|
7963
|
-
return lines.join("\n");
|
|
7962
|
+
return serializeMarkdownWithFrontmatter(processedFrontmatter, content);
|
|
7964
7963
|
}
|
|
7965
7964
|
|
|
7966
7965
|
// src/cli/generators/mcp.ts
|