Skip to content

Commit e3eddb7

Browse files
committed
Generalize headless CLI agent flag settings by renaming agenticSearch flags to cliFlags and updating related translations
- add translations [Fragment] - chane keys where we store flags, from 'agentic search claude flags' to 'cli flags claude', etc. don't ensure backwards compatibility └── apps └── editor ├── package.json └── src ├── constants │ └── state-keys.ts ├── i18n │ └── translations │ └── utils │ └── headless-cli-invocation.ts └── utils └── headless-cli-invocation ├── agents │ ├── antigravity.ts │ ├── claude.ts │ ├── codex.ts │ ├── cursor.ts │ ├── grok.ts │ ├── index.ts │ ├── muse.ts │ └── opencode.ts ├── index.ts ├── invoke-headless-cli.ts ├── types.ts └── utils ├── check-command-exists.ts ├── format-duration.ts └── get-progress-dots.ts
1 parent 99bdc69 commit e3eddb7

3 files changed

Lines changed: 30 additions & 31 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,49 +1007,49 @@
10071007
"scope": "resource",
10081008
"default": "In the project, find the complete set of primary and structural files relevant to the query."
10091009
},
1010-
"codeWebChat.agenticSearchAntigravityFlags": {
1010+
"codeWebChat.cliFlagsAntigravity": {
10111011
"type": "array",
10121012
"scope": "resource",
10131013
"items": {
10141014
"type": "string"
10151015
}
10161016
},
1017-
"codeWebChat.agenticSearchClaudeFlags": {
1017+
"codeWebChat.cliFlagsClaude": {
10181018
"type": "array",
10191019
"scope": "resource",
10201020
"items": {
10211021
"type": "string"
10221022
}
10231023
},
1024-
"codeWebChat.agenticSearchCodexFlags": {
1024+
"codeWebChat.cliFlagsCodex": {
10251025
"type": "array",
10261026
"scope": "resource",
10271027
"items": {
10281028
"type": "string"
10291029
}
10301030
},
1031-
"codeWebChat.agenticSearchCursorFlags": {
1031+
"codeWebChat.cliFlagsCursor": {
10321032
"type": "array",
10331033
"scope": "resource",
10341034
"items": {
10351035
"type": "string"
10361036
}
10371037
},
1038-
"codeWebChat.agenticSearchGrokFlags": {
1038+
"codeWebChat.cliFlagsGrok": {
10391039
"type": "array",
10401040
"scope": "resource",
10411041
"items": {
10421042
"type": "string"
10431043
}
10441044
},
1045-
"codeWebChat.agenticSearchMuseFlags": {
1045+
"codeWebChat.cliFlagsMuse": {
10461046
"type": "array",
10471047
"scope": "resource",
10481048
"items": {
10491049
"type": "string"
10501050
}
10511051
},
1052-
"codeWebChat.agenticSearchOpencodeFlags": {
1052+
"codeWebChat.cliFlagsOpencode": {
10531053
"type": "array",
10541054
"scope": "resource",
10551055
"items": {

‎apps/editor/src/i18n/translations/utils/headless-cli-invocation.ts‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@ export const translations = {
7171
hu: 'Jelzők törlése',
7272
bg: 'Изтриване на флагове'
7373
},
74-
'utils.headless-cli-invocation.agent.select-agent': {
75-
en: 'Select Agent',
76-
pl: 'Wybierz agenta',
77-
'zh-cn': '选择智能体',
78-
ja: 'エージェントを選択',
79-
'zh-tw': '選擇智能體',
80-
de: 'Agenten auswählen',
81-
es: 'Seleccionar agente',
82-
fr: 'Sélectionner un agent',
83-
'pt-br': 'Selecionar agente',
84-
ru: 'Выбрать агента',
85-
ko: '에이전트 선택',
86-
it: 'Seleziona agente',
87-
tr: 'Aracı Seç',
88-
cs: 'Vybrat agenta',
89-
hu: 'Ügynök kiválasztása',
90-
bg: 'Изберете агент'
74+
'utils.headless-cli-invocation.agent.installed-coding-agents': {
75+
en: 'Installed Coding Agents',
76+
pl: 'Zainstalowani agenci programistyczni',
77+
'zh-cn': '已安装的编程智能体',
78+
ja: 'インストール済みのコーディングエージェント',
79+
'zh-tw': '已安裝的編程智能體',
80+
de: 'Installierte Coding-Agenten',
81+
es: 'Agentes de programación instalados',
82+
fr: 'Agents de codage installés',
83+
'pt-br': 'Agentes de codificação instalados',
84+
ru: 'Установленные агенты программирования',
85+
ko: '설치된 코딩 에이전트',
86+
it: 'Agenti di programmazione installati',
87+
tr: 'Yüklü Kodlama Aracıları',
88+
cs: 'Nainstalovaní programovací agenti',
89+
hu: 'Telepített kódoló ügynökök',
90+
bg: 'Инсталирани агенти за програмиране'
9191
},
92-
'utils.headless-cli-invocation.agent.select-agent-placeholder': {
92+
'utils.headless-cli-invocation.agent.installed-coding-agents-placeholder': {
9393
en: 'Select an agent to perform the search',
9494
pl: 'Wybierz agenta, aby wykonać wyszukiwanie',
9595
'zh-cn': '选择一个智能体来执行搜索',

‎apps/editor/src/utils/headless-cli-invocation/invoke-headless-cli.ts‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const invoke_headless_cli = async (params: {
2323
waiting_message: string
2424
last_used_agent_state_key: string
2525
last_selected_workspace_state_key: string
26-
config_key_prefix: string
2726
show_back_button?: boolean
2827
cli_prompt_type?: 'edit-files' | 'ask-about-files'
2928
}): Promise<
@@ -79,9 +78,9 @@ export const invoke_headless_cli = async (params: {
7978
const agent_picks: AgentPickItem[] = []
8079

8180
for (const a of available_agents) {
82-
const configKey = `${params.config_key_prefix}${a.id.charAt(0).toUpperCase() + a.id.slice(1)}Flags`
81+
const config_key = `cliFlags${a.id.charAt(0).toUpperCase() + a.id.slice(1)}`
8382
const config = vscode.workspace.getConfiguration('codeWebChat')
84-
let flags = config.get<string[]>(configKey)
83+
let flags = config.get<string[]>(config_key)
8584
if (!Array.isArray(flags)) {
8685
flags = []
8786
}
@@ -106,7 +105,7 @@ export const invoke_headless_cli = async (params: {
106105
agent_id: a.id,
107106
flag_index: index > 0 ? index - 1 : -1,
108107
flag_value: flag,
109-
configKey,
108+
configKey: config_key,
110109
buttons
111110
})
112111
})
@@ -147,10 +146,10 @@ export const invoke_headless_cli = async (params: {
147146
}
148147

149148
agent_quick_pick.title = t(
150-
'utils.headless-cli-invocation.agent.select-agent'
149+
'utils.headless-cli-invocation.agent.installed-coding-agents'
151150
)
152151
agent_quick_pick.placeholder = t(
153-
'utils.headless-cli-invocation.agent.select-agent-placeholder'
152+
'utils.headless-cli-invocation.agent.installed-coding-agents-placeholder'
154153
)
155154
agent_quick_pick.buttons = params.show_back_button
156155
? [vscode.QuickInputButtons.Back, close_button]

0 commit comments

Comments
 (0)