-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.bat
More file actions
129 lines (109 loc) · 3.19 KB
/
Settings.bat
File metadata and controls
129 lines (109 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@echo off
setlocal
title IntentShell Settings
cd /d "%~dp0"
chcp 65001 >nul
:menu
cls
echo ===================================================
echo IntentShell Settings
echo ===================================================
echo.
echo 1. Reset Memory (Wipe DNA And History)
echo 2. Enable Flow Mode (Auto-Start) [COMING SOON]
echo 3. Disable Flow Mode [COMING SOON]
echo 4. Reset User Macros (config\user_macros.ini)
echo 5. Toggle Developer Diagnostics (On/Off)
echo 6. Toggle Learning Freeze Mode (On/Off)
echo 7. Change Hotkey
echo 8. Exit
echo ===================================================
set /p choice="Select an option (1-8): "
if "%choice%"=="1" goto :reset_memory
if "%choice%"=="2" goto :enable_flow
if "%choice%"=="3" goto :disable_flow
if "%choice%"=="4" goto :reset_macros
if "%choice%"=="5" goto :toggle_dev_mode
if "%choice%"=="6" goto :toggle_freeze_mode
if "%choice%"=="7" goto :change_hotkey
if "%choice%"=="8" goto :exit
goto :menu
:change_hotkey
cls
python core/set_hotkey.py
pause
goto :menu
:toggle_freeze_mode
cls
python core/config_manager.py toggle LearningFreeze enabled
pause
goto :menu
:toggle_dev_mode
cls
python core/config_manager.py toggle Developer enabled
pause
goto :menu
:reset_memory
cls
echo [WARNING] This will wipe all user memory, trust scores, and history.
echo Are you sure?
set /p confirm="Type 'YES' to confirm: "
if /i not "%confirm%"=="YES" goto :menu
echo.
echo Wiping Memory...
echo ---------------------------------------------------
:: Reset user_profile.json
echo {"trust_level": 0.0, "command_history": []} > config\user_profile.json
echo #Cache Cleared > cache\intent_cache.json
echo [OK] User Profile Reset.
:: Clear PowerShell Global History (if any persistent file exists)
:: Currently IntentShell stores session memory in memory, not in persistent files.
echo ---------------------------------------------------
echo Memory Reset Complete. IntentShell is now fresh.
pause
goto :menu
:enable_flow
cls
echo Enabling Flow Mode...
:: Check if variable already exists
findstr "set INTENTSHELL_FLOW_MODE=1" Preferences.bat >nul
if %errorlevel% equ 0 (
echo [INFO] Flow Mode is already enabled.
) else (
:: Remove disable line if exists
type Preferences.bat | findstr /v "INTENTSHELL_FLOW_MODE" > Preferences.tmp
move /y Preferences.tmp Preferences.bat >nul
echo. >> Preferences.bat
echo :: Flow Mode Auto-Start >> Preferences.bat
echo set INTENTSHELL_FLOW_MODE=1 >> Preferences.bat
echo [OK] Flow Mode Enabled.
)
pause
goto :menu
:disable_flow
cls
echo Disabling Flow Mode...
type Preferences.bat | findstr /v "INTENTSHELL_FLOW_MODE" > Preferences.tmp
move /y Preferences.tmp Preferences.bat >nul
echo [OK] Flow Mode Disabled.
pause
goto :menu
:reset_macros
cls
echo [WARNING] This will wipe all user macros.
echo Are you sure?
set /p confirm="Type 'YES' to confirm: "
if /i not "%confirm%"=="YES" goto :menu
echo.
echo Wiping Macros...
echo ---------------------------------------------------
:: Reset user_macros.ini
echo #Macros Cleared By User via Settings.bat > config\user_macros.ini
echo [OK] Macro Reset.
echo ---------------------------------------------------
echo Macro Reset Complete!
pause
goto :menu
:exit
endlocal
exit /b