bingocode 1.1.185 → 1.1.186

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingocode",
3
- "version": "1.1.185",
3
+ "version": "1.1.186",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude": "bin/claude-win.cjs",
@@ -0,0 +1,23 @@
1
+ import * as React from 'react'
2
+ import type { LocalJSXCommandContext } from '../../commands.js'
3
+ import type { LocalJSXCommandOnDone } from '../../types/command.js'
4
+ import { updateSettingsForSource } from '../../utils/settings/settings.js'
5
+
6
+ export async function call(
7
+ onDone: LocalJSXCommandOnDone,
8
+ context: LocalJSXCommandContext,
9
+ args?: string,
10
+ ): Promise<React.ReactNode | null> {
11
+ const arg = args?.trim().toLowerCase()
12
+
13
+ if (arg === 'off') {
14
+ updateSettingsForSource('userSettings', { execMode: false })
15
+ onDone('✗ Exec Mode disabled')
16
+ return null
17
+ }
18
+
19
+ // Default: always enable (not a toggle)
20
+ updateSettingsForSource('userSettings', { execMode: true })
21
+ onDone('✓ Exec Mode enabled')
22
+ return null
23
+ }
@@ -0,0 +1,15 @@
1
+ import type { Command } from '../../commands.js'
2
+
3
+ const exec: Command = {
4
+ type: 'local-jsx',
5
+ name: 'exec',
6
+ description:
7
+ 'Enable execution policy — dispatch-first, context protection, compressed output',
8
+ aliases: ['executor'],
9
+ argumentHint: '[off]',
10
+ isEnabled: () => true,
11
+ immediate: true,
12
+ load: () => import('./exec.js'),
13
+ }
14
+
15
+ export default exec