@snapcommit/cli 3.11.4 ā 3.11.5
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/repl/interpreter.js +5 -5
- package/package.json +1 -1
package/dist/repl/interpreter.js
CHANGED
|
@@ -51,6 +51,11 @@ const gitAdvanced = __importStar(require("../commands/git-advanced"));
|
|
|
51
51
|
async function executeNaturalLanguageCommand(input, context) {
|
|
52
52
|
// Normalize input (handle references like "that", "it", etc.)
|
|
53
53
|
const normalizedInput = normalizeInput(input, context);
|
|
54
|
+
// Pattern matching for common commands (fast path) - MUST run before AI
|
|
55
|
+
const handled = await tryQuickCommands(normalizedInput, context);
|
|
56
|
+
if (handled) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
54
59
|
// Check for clarification needs
|
|
55
60
|
const clarification = await (0, gemini_client_1.needsClarificationGemini)(normalizedInput);
|
|
56
61
|
if (clarification.needsClarification && clarification.options) {
|
|
@@ -65,11 +70,6 @@ async function executeNaturalLanguageCommand(input, context) {
|
|
|
65
70
|
}
|
|
66
71
|
// Get Git context
|
|
67
72
|
const gitContext = getGitContext();
|
|
68
|
-
// Pattern matching for common commands (fast path)
|
|
69
|
-
const handled = await tryQuickCommands(normalizedInput, context);
|
|
70
|
-
if (handled) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
73
|
// AI interpretation
|
|
74
74
|
console.log(chalk_1.default.gray('\nš¤ Understanding your request...\n'));
|
|
75
75
|
try {
|