bingocode 1.1.185 → 1.1.187
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 +23 -0
- package/src/commands/exec/index.ts +15 -0
- package/src/commands.ts +754 -752
- package/src/components/PromptInput/PromptInput.tsx +11 -9
- package/src/constants/prompts.ts +940 -926
- package/src/utils/attachments.ts +17 -1
- package/src/utils/settings/types.ts +6 -0
package/src/utils/attachments.ts
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isValidImagePaste,
|
|
64
64
|
} from 'src/types/textInputTypes.js'
|
|
65
65
|
import { randomUUID, type UUID } from 'crypto'
|
|
66
|
-
import { getSettings_DEPRECATED } from './settings/settings.js'
|
|
66
|
+
import { getInitialSettings, getSettings_DEPRECATED } from './settings/settings.js'
|
|
67
67
|
import { getSnippetForTwoFileDiff } from 'src/tools/FileEditTool/utils.js'
|
|
68
68
|
import type {
|
|
69
69
|
ContentBlockParam,
|
|
@@ -915,6 +915,9 @@ export async function getAttachments(
|
|
|
915
915
|
maybe('critical_system_reminder', () =>
|
|
916
916
|
Promise.resolve(getCriticalSystemReminderAttachment(toolUseContext)),
|
|
917
917
|
),
|
|
918
|
+
maybe('exec_mode_reminder', () =>
|
|
919
|
+
Promise.resolve(getExecModeReminderAttachment()),
|
|
920
|
+
),
|
|
918
921
|
...(feature('COMPACTION_REMINDERS')
|
|
919
922
|
? [
|
|
920
923
|
maybe('compaction_reminder', () =>
|
|
@@ -1590,6 +1593,19 @@ function getCriticalSystemReminderAttachment(
|
|
|
1590
1593
|
return [{ type: 'critical_system_reminder', content: reminder }]
|
|
1591
1594
|
}
|
|
1592
1595
|
|
|
1596
|
+
function getExecModeReminderAttachment(): Attachment[] {
|
|
1597
|
+
if (!getInitialSettings().execMode) {
|
|
1598
|
+
return []
|
|
1599
|
+
}
|
|
1600
|
+
return [
|
|
1601
|
+
{
|
|
1602
|
+
type: 'system_reminder' as const,
|
|
1603
|
+
content:
|
|
1604
|
+
'/exec active — Dispatch first. Protect context. Report decisions, blockers, results.',
|
|
1605
|
+
},
|
|
1606
|
+
]
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1593
1609
|
function getOutputStyleAttachment(): Attachment[] {
|
|
1594
1610
|
const settings = getSettings_DEPRECATED()
|
|
1595
1611
|
const outputStyle = settings?.outputStyle || 'default'
|
|
@@ -725,6 +725,12 @@ export const SettingsSchema = lazySchema(() =>
|
|
|
725
725
|
.describe(
|
|
726
726
|
'When true, fast mode does not persist across sessions. Each session starts with fast mode off.',
|
|
727
727
|
),
|
|
728
|
+
execMode: z
|
|
729
|
+
.boolean()
|
|
730
|
+
.optional()
|
|
731
|
+
.describe(
|
|
732
|
+
'Priority dispatch, context protection, compressed reporting.',
|
|
733
|
+
),
|
|
728
734
|
promptSuggestionEnabled: z
|
|
729
735
|
.boolean()
|
|
730
736
|
.optional()
|