@@ -5,7 +5,7 @@ import type {
55 R2Bucket ,
66} from "@cloudflare/workers-types" ;
77import type { AnalyticsEngineDataset } from "@executor-js/plugin-execution-metrics/cloudflare" ;
8- import type { AiSearchInstance , VectorizeIndex } from "@executor-js/plugin-semantic-search" ;
8+ import type { AiSearchInstance } from "@executor-js/plugin-semantic-search" ;
99
1010import { isValidOrgSlug } from "@executor-js/api" ;
1111import { missingPublicOriginWarning , resolvePublicOrigin } from "@executor-js/sdk/public-origin" ;
@@ -34,17 +34,8 @@ export interface CloudflareEnv {
3434 * bound (uncomment `analytics_engine_datasets` in wrangler.jsonc), each
3535 * finished execution/tool call writes a data point; absent, metrics are off. */
3636 readonly ANALYTICS ?: AnalyticsEngineDataset ;
37- /** AI Search instance binding - preferred semantic `tools.search` backend . */
37+ /** AI Search instance binding for semantic `tools.search`. */
3838 readonly AI_SEARCH ?: AiSearchInstance ;
39- /** Vectorize index binding — opt-in semantic `tools.search`. When bound (add a
40- * `vectorize` binding in wrangler.jsonc) the semantic-search plugin embeds
41- * the tool catalog and answers `tools.search` from it; absent, the engine
42- * keeps its built-in lexical search. */
43- readonly VECTORIZE ?: VectorizeIndex ;
44- /** Gemini API key (a `wrangler secret`) powering the embeddings for the
45- * Vectorize search. Absent → semantic search stays inert even if the index
46- * is bound. */
47- readonly GEMINI_API_KEY ?: string ;
4839 /** MCP session Durable Object namespace — one addressable isolate per MCP
4940 * session (the DO id IS the session id), so a session survives across the
5041 * Worker's stateless isolates. */
@@ -90,9 +81,6 @@ export interface CloudflareConfig {
9081 readonly secretKey : string ;
9182 /** AI Search instance binding for semantic `tools.search`. */
9283 readonly aiSearch ?: AiSearchInstance ;
93- /** Gemini API key for the Vectorize search embeddings (a `wrangler secret`).
94- * Unset → vectorize search is inert. */
95- readonly geminiApiKey ?: string ;
9684 readonly allowLocalNetwork : boolean ;
9785 /** Explicit web base URL (`VITE_PUBLIC_SITE_URL`). Unset on a Worker with no
9886 * static URL — the per-request origin is used instead (see RequestWebOrigin). */
@@ -151,7 +139,6 @@ export const loadConfig = (env: CloudflareEnv): CloudflareConfig => {
151139 organizationSlug : resolveOrgSlug ( env . SELF_HOSTED_ORG_SLUG ) ,
152140 secretKey,
153141 aiSearch : env . AI_SEARCH ,
154- geminiApiKey : env . GEMINI_API_KEY ?. trim ( ) || undefined ,
155142 allowLocalNetwork : env . ALLOW_LOCAL_NETWORK === "true" ,
156143 // Pinned origin via the shared resolver. A Worker receives no PaaS platform
157144 // vars (env: {} — there is nothing to detect), so only the explicit
0 commit comments