feat: enhance LM Studio stability and session management v2.2.27
This commit is contained in:
+7
-4
@@ -1,6 +1,7 @@
|
||||
import * as vscode from 'vscode';
|
||||
import * as path from 'path';
|
||||
import * as os from 'os';
|
||||
import * as fs from 'fs';
|
||||
|
||||
export const EXCLUDED_DIRS = new Set([
|
||||
'node_modules', '.git', '.vscode', 'out', 'dist', 'build',
|
||||
@@ -8,8 +9,7 @@ export const EXCLUDED_DIRS = new Set([
|
||||
'.turbo', '.nuxt', '.output', 'vendor', 'target'
|
||||
]);
|
||||
|
||||
export const MAX_CONTEXT_SIZE = 12_000;
|
||||
export const MAX_AUTO_AGENT_STEPS = 50;
|
||||
// Configuration constants moved to package.json and getConfig()
|
||||
|
||||
export function getConfig() {
|
||||
const cfg = vscode.workspace.getConfiguration('g1nation');
|
||||
@@ -18,7 +18,9 @@ export function getConfig() {
|
||||
defaultModel: cfg.get<string>('defaultModel', 'gemma4:e2b'),
|
||||
maxTreeFiles: 200,
|
||||
timeout: cfg.get<number>('requestTimeout', 300) * 1000,
|
||||
localBrainPath: cfg.get<string>('localBrainPath', '')
|
||||
localBrainPath: cfg.get<string>('localBrainPath', ''),
|
||||
maxContextSize: cfg.get<number>('maxContextSize', 12000),
|
||||
maxAutoSteps: cfg.get<number>('maxAutoSteps', 50)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -106,7 +108,8 @@ file content here
|
||||
[ACTION 6: RUN TERMINAL COMMANDS]
|
||||
<run_command>npm install express</run_command>
|
||||
|
||||
[ACTION 7: READ USER'S SECOND BRAIN]
|
||||
[ACTION 7: SECOND BRAIN KNOWLEDGE]
|
||||
<list_brain path="optional/subdir"/>
|
||||
<read_brain>filename.md</read_brain>
|
||||
|
||||
[ACTION 8: READ WEBSITES & SEARCH INTERNET]
|
||||
|
||||
Reference in New Issue
Block a user