bingocode 1.1.187 → 1.1.189
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/package.json +1 -1
- package/src/commands/exec/exec.tsx +10 -7
- package/src/components/PromptInput/PromptInput.tsx +2335 -2335
- package/src/main.tsx +1 -0
package/package.json
CHANGED
|
@@ -9,15 +9,18 @@ export async function call(
|
|
|
9
9
|
args?: string,
|
|
10
10
|
): Promise<React.ReactNode | null> {
|
|
11
11
|
const arg = args?.trim().toLowerCase()
|
|
12
|
+
const enable = arg !== 'off'
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
// Persist to disk
|
|
15
|
+
updateSettingsForSource('userSettings', { execMode: enable })
|
|
16
|
+
|
|
17
|
+
// Update AppState to trigger React re-render (like /fast does)
|
|
18
|
+
if (enable) {
|
|
19
|
+
context.setAppState(prev => ({ ...prev, execMode: true }))
|
|
20
|
+
onDone('✓ Exec Mode enabled')
|
|
21
|
+
} else {
|
|
22
|
+
context.setAppState(prev => ({ ...prev, execMode: false }))
|
|
15
23
|
onDone('✗ Exec Mode disabled')
|
|
16
|
-
return null
|
|
17
24
|
}
|
|
18
|
-
|
|
19
|
-
// Default: always enable (not a toggle)
|
|
20
|
-
updateSettingsForSource('userSettings', { execMode: true })
|
|
21
|
-
onDone('✓ Exec Mode enabled')
|
|
22
25
|
return null
|
|
23
26
|
}
|