You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Centralize directory skip list into SKIP_DIRS set used by
findFilesByExtension, findDatabaseDirs, and completePackRoot
(adds dist/, coverage/, build/, .github/ to completePackRoot)
- Extract getEffectiveLanguage() helper to eliminate duplicated
language auto-derivation logic across 4 prompt handlers
- Add Windows env var stubs (HOMEDRIVE, HOMEPATH, USERPROFILE)
to database completion tests for cross-platform compatibility
- Add 5 unit tests for getEffectiveLanguage()
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/e315dcb4-ed12-428b-8294-14b398746c4c
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
logger.debug(`${promptName}: derived language '${derived}' from pack metadata`);
198357
+
return { language: derived };
198358
+
}
198359
+
}
198360
+
return {
198361
+
language: void 0,
198362
+
warning: "\u26A0 **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency."
198363
+
};
198364
+
}
198340
198365
var PARAMETER_COMPLETIONS = {
198341
198366
database: completeDatabasePath,
198342
198367
databasePath: completeDatabasePath,
@@ -198790,16 +198815,9 @@ ${content}`
198790
198815
if (qpResult.blocked) return blockedPathError(qpResult, "query path");
198791
198816
const resolvedQueryPath = qpResult.resolvedPath;
198792
198817
if (qpResult.warning) warnings.push(qpResult.warning);
logger.debug(`workshop_creation_workflow: derived language '${effectiveLanguage}' from pack metadata`);
198798
-
}
198799
-
}
198800
-
if (!effectiveLanguage) {
198801
-
warnings.push("\u26A0 **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.");
logger.debug(`explain_codeql_query: derived language '${effectiveLanguage}' from pack metadata`);
199027
-
}
199028
-
}
199029
-
if (!effectiveLanguage) {
199030
-
warnings.push("\u26A0 **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.");
logger.debug(`document_codeql_query: derived language '${effectiveLanguage}' from pack metadata`);
199083
-
}
199084
-
}
199085
-
if (!effectiveLanguage) {
199086
-
warnings.push("\u26A0 **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.");
logger.debug(`ql_lsp_iterative_development: derived language '${effectiveLanguage}' from pack metadata`);
199178
-
}
199179
-
}
199180
-
if (!effectiveLanguage) {
199181
-
warnings.push("\u26A0 **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.");
logger.debug(`${promptName}: derived language '${derived}' from pack metadata`);
446
+
return{language: derived};
447
+
}
448
+
}
449
+
450
+
return{
451
+
language: undefined,
452
+
warning: '⚠ **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.',
logger.debug(`workshop_creation_workflow: derived language '${effectiveLanguage}' from pack metadata`);
751
-
}
752
-
}
753
-
if(!effectiveLanguage){
754
-
warnings.push('⚠ **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.');
logger.debug(`explain_codeql_query: derived language '${effectiveLanguage}' from pack metadata`);
1020
-
}
1021
-
}
1022
-
if(!effectiveLanguage){
1023
-
warnings.push('⚠ **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.');
logger.debug(`document_codeql_query: derived language '${effectiveLanguage}' from pack metadata`);
1084
-
}
1085
-
}
1086
-
if(!effectiveLanguage){
1087
-
warnings.push('⚠ **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.');
logger.debug(`ql_lsp_iterative_development: derived language '${effectiveLanguage}' from pack metadata`);
1201
-
}
1202
-
}
1203
-
if(!effectiveLanguage){
1204
-
warnings.push('⚠ **Language could not be auto-derived.** Please provide the `language` parameter or ensure the query is inside a CodeQL pack with either a `codeql/<lang>-all` or `codeql/<lang>-queries` dependency.');
0 commit comments