@@ -2,11 +2,7 @@ import { SEARCH_PROVIDERS } from "../config/searchRegistry.ts";
22import { assertMicrosoftDesignerWebProviderAvailable } from "@/shared/constants/designerWebRetirement" ;
33import { assertRuntimeProviderAvailable } from "@/shared/constants/providerRetirement" ;
44import { assertCommonChatGptWebProviderAvailable } from "@/shared/constants/chatgptWebRetirement" ;
5- import {
6- registerLazyExecutor ,
7- loadRegisteredExecutor ,
8- hasRegisteredExecutor ,
9- } from "./registry.ts" ;
5+ import { registerLazyExecutor , loadRegisteredExecutor , hasRegisteredExecutor } from "./registry.ts" ;
106// Type-only: pulls no runtime code, keeps DefaultExecutor the only eager class.
117import type { BaseExecutor } from "./base.ts" ;
128import { getDefaultExecutor } from "./defaultResolver.ts" ;
@@ -46,8 +42,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
4642 ) ,
4743 "chatgpt-web-codex" : ( ) =>
4844 import ( "./chatgpt-web-codex.ts" ) . then ( ( m ) => new m . ChatGptWebCodexExecutor ( ) ) ,
49- "cgpt-codex" : ( ) =>
50- import ( "./chatgpt-web-codex.ts" ) . then ( ( m ) => new m . ChatGptWebCodexExecutor ( ) ) ,
45+ "cgpt-codex" : ( ) => import ( "./chatgpt-web-codex.ts" ) . then ( ( m ) => new m . ChatGptWebCodexExecutor ( ) ) ,
5146 cursor : ( ) => import ( "./cursor.ts" ) . then ( ( m ) => new m . CursorExecutor ( ) ) ,
5247 trae : ( ) => import ( "./trae.ts" ) . then ( ( m ) => new m . TraeExecutor ( ) ) ,
5348 glm : ( ) => import ( "./glm.ts" ) . then ( ( m ) => new m . GlmExecutor ( "glm" ) ) ,
@@ -71,12 +66,9 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
7166 cf : ( ) => import ( "./cloudflare-ai.ts" ) . then ( ( m ) => new m . CloudflareAIExecutor ( ) ) , // Alias
7267 freebuff : ( ) => import ( "./freebuff.ts" ) . then ( ( m ) => new m . FreebuffExecutor ( ) ) ,
7368 fb : ( ) => import ( "./freebuff.ts" ) . then ( ( m ) => new m . FreebuffExecutor ( ) ) , // Alias
74- "opencode-zen" : ( ) =>
75- import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-zen" ) ) ,
76- "opencode-go" : ( ) =>
77- import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-go" ) ) ,
78- opencode : ( ) =>
79- import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-zen" ) ) , // Alias for opencode-zen
69+ "opencode-zen" : ( ) => import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-zen" ) ) ,
70+ "opencode-go" : ( ) => import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-go" ) ) ,
71+ opencode : ( ) => import ( "./opencode.ts" ) . then ( ( m ) => new m . OpencodeExecutor ( "opencode-zen" ) ) , // Alias for opencode-zen
8072 vertex : ( ) => import ( "./vertex.ts" ) . then ( ( m ) => new m . VertexExecutor ( ) ) ,
8173 "vertex-partner" : ( ) => import ( "./vertex.ts" ) . then ( ( m ) => new m . VertexExecutor ( ) ) ,
8274 cliproxyapi : ( ) => import ( "./cliproxyapi.ts" ) . then ( ( m ) => new m . CliproxyapiExecutor ( ) ) ,
@@ -85,23 +77,19 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
8577 dr : ( ) => import ( "./dario.ts" ) . then ( ( m ) => new m . DarioExecutor ( ) ) , // Alias
8678 "9router" : ( ) => import ( "./ninerouter.ts" ) . then ( ( m ) => new m . NineRouterExecutor ( ) ) ,
8779 nr : ( ) => import ( "./ninerouter.ts" ) . then ( ( m ) => new m . NineRouterExecutor ( ) ) , // Alias
88- "perplexity-web" : ( ) =>
89- import ( "./perplexity-web.ts" ) . then ( ( m ) => new m . PerplexityWebExecutor ( ) ) ,
90- "pplx-web" : ( ) =>
91- import ( "./perplexity-web.ts" ) . then ( ( m ) => new m . PerplexityWebExecutor ( ) ) , // Alias
80+ "perplexity-web" : ( ) => import ( "./perplexity-web.ts" ) . then ( ( m ) => new m . PerplexityWebExecutor ( ) ) ,
81+ "pplx-web" : ( ) => import ( "./perplexity-web.ts" ) . then ( ( m ) => new m . PerplexityWebExecutor ( ) ) , // Alias
9282 "grok-web" : ( ) => import ( "./grok-web.ts" ) . then ( ( m ) => new m . GrokWebExecutor ( ) ) ,
9383 "claude-web" : ( ) => import ( "./claude-web.ts" ) . then ( ( m ) => new m . ClaudeWebExecutor ( ) ) ,
9484 "cw-web" : ( ) => import ( "./claude-web.ts" ) . then ( ( m ) => new m . ClaudeWebExecutor ( ) ) , // Alias
9585 "gemini-web" : ( ) => import ( "./gemini-web.ts" ) . then ( ( m ) => new m . GeminiWebExecutor ( ) ) ,
9686 gweb : ( ) => import ( "./gemini-web.ts" ) . then ( ( m ) => new m . GeminiWebExecutor ( ) ) , // Alias
9787 "gemini-business" : ( ) =>
9888 import ( "./gemini-business.ts" ) . then ( ( m ) => new m . GeminiBusinessExecutor ( ) ) ,
99- gembiz : ( ) =>
100- import ( "./gemini-business.ts" ) . then ( ( m ) => new m . GeminiBusinessExecutor ( ) ) , // Alias
89+ gembiz : ( ) => import ( "./gemini-business.ts" ) . then ( ( m ) => new m . GeminiBusinessExecutor ( ) ) , // Alias
10190 "blackbox-web" : ( ) => import ( "./blackbox-web.ts" ) . then ( ( m ) => new m . BlackboxWebExecutor ( ) ) ,
10291 "bb-web" : ( ) => import ( "./blackbox-web.ts" ) . then ( ( m ) => new m . BlackboxWebExecutor ( ) ) , // Alias
103- "muse-spark-web" : ( ) =>
104- import ( "./muse-spark-web.ts" ) . then ( ( m ) => new m . MuseSparkWebExecutor ( ) ) ,
92+ "muse-spark-web" : ( ) => import ( "./muse-spark-web.ts" ) . then ( ( m ) => new m . MuseSparkWebExecutor ( ) ) ,
10593 "ms-web" : ( ) => import ( "./muse-spark-web.ts" ) . then ( ( m ) => new m . MuseSparkWebExecutor ( ) ) , // Alias
10694 "devin-desktop" : ( ) => import ( "./devin-desktop.ts" ) . then ( ( m ) => new m . DevinDesktopExecutor ( ) ) ,
10795 "zed-hosted" : ( ) => import ( "./zed-hosted.ts" ) . then ( ( m ) => new m . ZedHostedExecutor ( ) ) ,
@@ -129,8 +117,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
129117 firefly : ( ) => import ( "./adobe-firefly.ts" ) . then ( ( m ) => new m . AdobeFireflyExecutor ( ) ) , // Alias
130118 "veoaifree-web" : ( ) => import ( "./veoaifree-web.ts" ) . then ( ( m ) => new m . VeoAIFreeWebExecutor ( ) ) ,
131119 "veo-free" : ( ) => import ( "./veoaifree-web.ts" ) . then ( ( m ) => new m . VeoAIFreeWebExecutor ( ) ) , // Alias
132- "duckduckgo-web" : ( ) =>
133- import ( "./duckduckgo-web.ts" ) . then ( ( m ) => new m . DuckDuckGoWebExecutor ( ) ) ,
120+ "duckduckgo-web" : ( ) => import ( "./duckduckgo-web.ts" ) . then ( ( m ) => new m . DuckDuckGoWebExecutor ( ) ) ,
134121 ddgw : ( ) => import ( "./duckduckgo-web.ts" ) . then ( ( m ) => new m . DuckDuckGoWebExecutor ( ) ) , // Alias
135122 "t3-web" : ( ) => import ( "./t3-chat-web.ts" ) . then ( ( m ) => new m . T3ChatWebExecutor ( ) ) ,
136123 t3chat : ( ) => import ( "./t3-chat-web.ts" ) . then ( ( m ) => new m . T3ChatWebExecutor ( ) ) , // Alias
@@ -141,8 +128,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
141128 "yuanbao-web" : ( ) => import ( "./yuanbao-web.ts" ) . then ( ( m ) => new m . YuanbaoWebExecutor ( ) ) ,
142129 "tencent-aistudio-web" : ( ) =>
143130 import ( "./tencent-aistudio-web.ts" ) . then ( ( m ) => new m . TencentAIStudioWebExecutor ( ) ) ,
144- tasw : ( ) =>
145- import ( "./tencent-aistudio-web.ts" ) . then ( ( m ) => new m . TencentAIStudioWebExecutor ( ) ) , // Alias
131+ tasw : ( ) => import ( "./tencent-aistudio-web.ts" ) . then ( ( m ) => new m . TencentAIStudioWebExecutor ( ) ) , // Alias
146132 ybw : ( ) => import ( "./yuanbao-web.ts" ) . then ( ( m ) => new m . YuanbaoWebExecutor ( ) ) , // Alias
147133 "poe-web" : ( ) => import ( "./poe-web.ts" ) . then ( ( m ) => new m . PoeWebExecutor ( ) ) ,
148134 // #8969: do NOT alias canonical `poe` (API-key / api.poe.com) to PoeWebExecutor.
@@ -165,9 +151,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
165151 cheaperinference : ( ) =>
166152 import ( "./cheaperinference.ts" ) . then ( ( m ) => new m . CheaperInferenceExecutor ( ) ) ,
167153 cinf : ( ) =>
168- import ( "./cheaperinference.ts" ) . then (
169- ( m ) => new m . CheaperInferenceExecutor ( "cheaperinference" )
170- ) , // Alias
154+ import ( "./cheaperinference.ts" ) . then ( ( m ) => new m . CheaperInferenceExecutor ( "cheaperinference" ) ) , // Alias
171155 "doubao-web" : ( ) => import ( "./doubao-web.ts" ) . then ( ( m ) => new m . DoubaoWebExecutor ( ) ) ,
172156 db : ( ) => import ( "./doubao-web.ts" ) . then ( ( m ) => new m . DoubaoWebExecutor ( ) ) , // Alias
173157 "zai-web" : ( ) => import ( "./zai-web.ts" ) . then ( ( m ) => new m . ZaiWebExecutor ( ) ) ,
@@ -185,8 +169,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
185169 "zenmux-free" : ( ) => import ( "./zenmux-free.ts" ) . then ( ( m ) => new m . ZenmuxFreeExecutor ( ) ) ,
186170 "cloudflare-playground" : ( ) =>
187171 import ( "./cloudflare-playground.ts" ) . then ( ( m ) => new m . CloudflarePlaygroundExecutor ( ) ) ,
188- cfp : ( ) =>
189- import ( "./cloudflare-playground.ts" ) . then ( ( m ) => new m . CloudflarePlaygroundExecutor ( ) ) , // Alias for cloudflare-playground
172+ cfp : ( ) => import ( "./cloudflare-playground.ts" ) . then ( ( m ) => new m . CloudflarePlaygroundExecutor ( ) ) , // Alias for cloudflare-playground
190173 "tinycms-web" : ( ) => import ( "./tinycms.ts" ) . then ( ( m ) => new m . TinyCmsExecutor ( ) ) ,
191174 tcw : ( ) => import ( "./tinycms.ts" ) . then ( ( m ) => new m . TinyCmsExecutor ( ) ) , // Alias
192175 hyperagent : ( ) => import ( "./hyperagent.ts" ) . then ( ( m ) => new m . HyperAgentExecutor ( ) ) ,
@@ -196,6 +179,7 @@ const lazyExecutors: Record<string, () => Promise<BaseExecutor>> = {
196179 xai : ( ) => import ( "./xai.ts" ) . then ( ( m ) => new m . XaiExecutor ( ) ) ,
197180 "xai-oauth" : ( ) => import ( "./xai.ts" ) . then ( ( m ) => new m . XaiExecutor ( "xai-oauth" ) ) ,
198181 xao : ( ) => import ( "./xai.ts" ) . then ( ( m ) => new m . XaiExecutor ( "xai-oauth" ) ) ,
182+ "clova-studio" : ( ) => import ( "./clova-studio.ts" ) . then ( ( m ) => new m . ClovaStudioExecutor ( ) ) ,
199183 "conol-web" : ( ) => import ( "./conol-web.ts" ) . then ( ( m ) => new m . ConolWebExecutor ( ) ) ,
200184 cnl : ( ) => import ( "./conol-web.ts" ) . then ( ( m ) => new m . ConolWebExecutor ( ) ) , // Alias
201185} ;
@@ -256,11 +240,7 @@ export function hasSpecializedExecutor(provider: string): boolean {
256240 return hasRegisteredExecutor ( provider ) ;
257241}
258242
259- export {
260- registerExecutor ,
261- registerLazyExecutor ,
262- listExecutorAliases ,
263- } from "./registry.ts" ;
243+ export { registerExecutor , registerLazyExecutor , listExecutorAliases } from "./registry.ts" ;
264244// Value re-export: base.ts is already eager (DefaultExecutor extends it), and
265245// scripts/check/check-known-symbols.ts reads this export from the module.
266246export { BaseExecutor } from "./base.ts" ;
0 commit comments