aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-aiassist.js
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-06-16 06:01:21 +0200
committerAgando <roduccomm@gmail.com>2026-06-16 06:01:21 +0200
commit6aa24b976952a698c673d350977721b27193183d (patch)
tree5586529d0f9932c4a2db19b9aca82b05423d10ab /modules/core/module-aiassist.js
parentdaff0939a7997b45aed12c7d157f6adcfbd087ec (diff)
auto: 2026-06-16_06:00 changes
Diffstat (limited to 'modules/core/module-aiassist.js')
-rw-r--r--modules/core/module-aiassist.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/core/module-aiassist.js b/modules/core/module-aiassist.js
index 44a7574..c5a91c9 100644
--- a/modules/core/module-aiassist.js
+++ b/modules/core/module-aiassist.js
@@ -1,7 +1,9 @@
// Extracted from newOS4 index.html — WebX11AIAssistantModule (Full Agent Loop)
class WebX11AIAssistantModule {
constructor() {
- this.commands = {}; this.terminal = null;
+ this.commands = {}; this.commandsMeta = {
+ 'ai-config': { argType: 'enum', enumFn: '_getAiConfigKeys' }
+ }; this.terminal = null;
this.systemPrompt = this.buildSystemPrompt();
this.context = []; this.maxContext = 10;
this.maxContextTokens = 2000;
@@ -2223,6 +2225,9 @@ buildSystemPrompt() {
this.terminal.print('No models available. Use ollamaconnect first.', 'warning');
}
}
+ _getAiConfigKeys() {
+ return ['max-turns', 'max-context', 'max-context-tokens', 'confirm-timeout', 'chat-lock-timeout', 'skill-debounce', 'trivial-optimization'];
+ }
aiConfig(args) {
if (args.length === 0) {
this.terminal.print('=== AI Config ===', 'info');