mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 15:44:56 +00:00
chore: rm broken codesearch tool (#24992)
This commit is contained in:
@@ -356,12 +356,6 @@ export function getToolInfo(tool: string, input: any = {}): ToolInfo {
|
||||
title: i18n.t("ui.tool.websearch"),
|
||||
subtitle: input.query,
|
||||
}
|
||||
case "codesearch":
|
||||
return {
|
||||
icon: "code",
|
||||
title: i18n.t("ui.tool.codesearch"),
|
||||
subtitle: input.query,
|
||||
}
|
||||
case "task": {
|
||||
const type =
|
||||
typeof input.subagent_type === "string" && input.subagent_type
|
||||
@@ -1710,32 +1704,6 @@ ToolRegistry.register({
|
||||
},
|
||||
})
|
||||
|
||||
ToolRegistry.register({
|
||||
name: "codesearch",
|
||||
render(props) {
|
||||
const i18n = useI18n()
|
||||
const query = createMemo(() => {
|
||||
const value = props.input.query
|
||||
if (typeof value !== "string") return ""
|
||||
return value
|
||||
})
|
||||
|
||||
return (
|
||||
<BasicTool
|
||||
{...props}
|
||||
icon="code"
|
||||
trigger={{
|
||||
title: i18n.t("ui.tool.codesearch"),
|
||||
subtitle: query(),
|
||||
subtitleClass: "exa-tool-query",
|
||||
}}
|
||||
>
|
||||
<ExaOutput output={props.output} />
|
||||
</BasicTool>
|
||||
)
|
||||
},
|
||||
})
|
||||
|
||||
ToolRegistry.register({
|
||||
name: "task",
|
||||
render(props) {
|
||||
|
||||
@@ -43,10 +43,6 @@ const samples = [
|
||||
tool: "websearch",
|
||||
error: "websearch Rate limited: Please try again in 30 seconds",
|
||||
},
|
||||
{
|
||||
tool: "codesearch",
|
||||
error: "codesearch Timeout: exceeded 120s",
|
||||
},
|
||||
{
|
||||
tool: "question",
|
||||
error: "question Dismissed: user dismissed this question",
|
||||
@@ -72,7 +68,7 @@ export default {
|
||||
argTypes: {
|
||||
tool: {
|
||||
control: "select",
|
||||
options: ["apply_patch", "bash", "read", "glob", "grep", "webfetch", "websearch", "codesearch", "question"],
|
||||
options: ["apply_patch", "bash", "read", "glob", "grep", "webfetch", "websearch", "question"],
|
||||
},
|
||||
error: {
|
||||
control: "text",
|
||||
|
||||
@@ -33,7 +33,6 @@ export function ToolErrorCard(props: ToolErrorCardProps) {
|
||||
task: "ui.tool.task",
|
||||
webfetch: "ui.tool.webfetch",
|
||||
websearch: "ui.tool.websearch",
|
||||
codesearch: "ui.tool.codesearch",
|
||||
bash: "ui.tool.shell",
|
||||
apply_patch: "ui.tool.patch",
|
||||
question: "ui.tool.questions",
|
||||
|
||||
@@ -95,7 +95,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "جلب الويب",
|
||||
"ui.tool.websearch": "بحث الويب",
|
||||
"ui.tool.codesearch": "بحث الكود",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "تصحيح",
|
||||
"ui.tool.todos": "المهام",
|
||||
|
||||
@@ -95,7 +95,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Buscar Web",
|
||||
"ui.tool.websearch": "Pesquisa na Web",
|
||||
"ui.tool.codesearch": "Pesquisa de Código",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Tarefas",
|
||||
|
||||
@@ -99,7 +99,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Web preuzimanje",
|
||||
"ui.tool.websearch": "Pretraga weba",
|
||||
"ui.tool.codesearch": "Pretraga koda",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Lista zadataka",
|
||||
|
||||
@@ -94,7 +94,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webhentning",
|
||||
"ui.tool.websearch": "Websøgning",
|
||||
"ui.tool.codesearch": "Kodesøgning",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Opgaver",
|
||||
|
||||
@@ -100,7 +100,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webabruf",
|
||||
"ui.tool.websearch": "Websuche",
|
||||
"ui.tool.codesearch": "Codesuche",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Aufgaben",
|
||||
|
||||
@@ -108,7 +108,6 @@ export const dict: Record<string, string> = {
|
||||
"ui.tool.task": "Task",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "Web Search",
|
||||
"ui.tool.codesearch": "Code Search",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "To-dos",
|
||||
|
||||
@@ -95,7 +95,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "Búsqueda web",
|
||||
"ui.tool.codesearch": "Búsqueda de código",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Parche",
|
||||
"ui.tool.todos": "Tareas",
|
||||
|
||||
@@ -95,7 +95,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "Recherche Web",
|
||||
"ui.tool.codesearch": "Recherche de code",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Tâches",
|
||||
|
||||
@@ -94,7 +94,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "Web検索",
|
||||
"ui.tool.codesearch": "コード検索",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Todo",
|
||||
|
||||
@@ -95,7 +95,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "웹 가져오기",
|
||||
"ui.tool.websearch": "웹 검색",
|
||||
"ui.tool.codesearch": "코드 검색",
|
||||
"ui.tool.shell": "셸",
|
||||
"ui.tool.patch": "패치",
|
||||
"ui.tool.todos": "할 일",
|
||||
|
||||
@@ -98,7 +98,6 @@ export const dict: Record<Keys, string> = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webhenting",
|
||||
"ui.tool.websearch": "Nettsøk",
|
||||
"ui.tool.codesearch": "Kodesøk",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Gjøremål",
|
||||
|
||||
@@ -94,7 +94,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Pobieranie sieciowe",
|
||||
"ui.tool.websearch": "Wyszukiwanie w sieci",
|
||||
"ui.tool.codesearch": "Wyszukiwanie kodu",
|
||||
"ui.tool.shell": "Terminal",
|
||||
"ui.tool.patch": "Patch",
|
||||
"ui.tool.todos": "Zadania",
|
||||
|
||||
@@ -94,7 +94,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "Веб-поиск",
|
||||
"ui.tool.codesearch": "Поиск кода",
|
||||
"ui.tool.shell": "Оболочка",
|
||||
"ui.tool.patch": "Патч",
|
||||
"ui.tool.todos": "Задачи",
|
||||
|
||||
@@ -96,7 +96,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "ดึงจากเว็บ",
|
||||
"ui.tool.websearch": "ค้นหาเว็บ",
|
||||
"ui.tool.codesearch": "ค้นหาโค้ด",
|
||||
"ui.tool.shell": "เชลล์",
|
||||
"ui.tool.patch": "แพตช์",
|
||||
"ui.tool.todos": "รายการงาน",
|
||||
|
||||
@@ -101,7 +101,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Web getir",
|
||||
"ui.tool.websearch": "Web Araması",
|
||||
"ui.tool.codesearch": "Kod Araması",
|
||||
"ui.tool.shell": "Kabuk",
|
||||
"ui.tool.patch": "Yama",
|
||||
"ui.tool.todos": "Görevler",
|
||||
|
||||
@@ -99,7 +99,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "网络搜索",
|
||||
"ui.tool.codesearch": "代码搜索",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "补丁",
|
||||
"ui.tool.todos": "待办",
|
||||
|
||||
@@ -99,7 +99,6 @@ export const dict = {
|
||||
"ui.tool.grep": "Grep",
|
||||
"ui.tool.webfetch": "Webfetch",
|
||||
"ui.tool.websearch": "網頁搜尋",
|
||||
"ui.tool.codesearch": "程式碼搜尋",
|
||||
"ui.tool.shell": "Shell",
|
||||
"ui.tool.patch": "修補",
|
||||
"ui.tool.todos": "待辦",
|
||||
|
||||
Reference in New Issue
Block a user