Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions server/dist/codeql-development-mcp-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -64468,6 +64468,9 @@ var SUPPORTED_LANGUAGES = [
"ruby",
"swift"
];
function sanitizeForInlineCode(value) {
return value.replace(/`/g, "'").replace(/\r?\n|\r/g, " ");
}
async function resolvePromptFilePath(filePath, workspaceRoot) {
if (!filePath || filePath.trim() === "") {
return {
Expand Down Expand Up @@ -64503,7 +64506,7 @@ async function resolvePromptFilePath(filePath, workspaceRoot) {
} catch {
return {
resolvedPath: absolutePath,
warning: `\u26A0 **File path** \`${filePath}\` **does not exist.** Resolved to: \`${absolutePath}\``
warning: `\u26A0 **File path** \`${sanitizeForInlineCode(filePath)}\` **does not exist.** Resolved to: \`${sanitizeForInlineCode(absolutePath)}\``
};
}
return { resolvedPath: absolutePath };
Expand Down Expand Up @@ -64599,7 +64602,7 @@ function formatValidationError(promptName, error2) {
if (issue2.code === "invalid_enum_value" && "options" in issue2) {
const opts = issue2.options.join(", ");
lines.push(
`- **\`${field}\`**: received \`${String(issue2.received)}\` \u2014 must be one of: ${opts}`
`- **\`${field}\`**: received \`${sanitizeForInlineCode(String(issue2.received))}\` \u2014 must be one of: ${opts}`
);
} else if (issue2.code === "invalid_type") {
lines.push(
Expand Down
Loading
Loading