import { SupportStore } from './index.js'; import { type Embedder } from '../answer/embed.js'; export { resolveEmbedder, type Embedder, type EmbedKind } from '../answer/embed.js'; import { type VectorStore } from '../answer/vector-store.js'; export { defaultVectorStore, localVectorStore, sqliteVectorStore, postgresVectorStore, type VectorStore, type StoredSection, type SectionMatch } from '../answer/vector-store.js'; import { type Complete } from '../triage/index.js'; import { type LocalFixRunner } from './local-fix.js'; export type { LocalFixRunner, LocalFixRequest, LocalFixOutcome } from './local-fix.js'; export interface SupportHandlerOptions { store?: SupportStore; adminToken?: string; allowOrigin?: string; complete?: Complete; /** owner/name of the GitHub repo whose README Blazzy answers from, like `createHandler`'s. */ repo?: string; /** Reads that README when the repo is private. Defaults to BLAZE_GITHUB_TOKEN; a public repo needs none. */ githubToken?: string; /** Extra help docs (Markdown or plain text), searched along with the README and the saved replies. */ helpDocs?: string; /** * The product's name, so Blazzy answers for it and nothing else. Defaults to BLAZE_PRODUCT_NAME, else the repo's * name (`acme/shop` -> `shop`). */ product?: string; /** * The README on disk, read before GitHub's. By default the one at the root of this app's checkout (when `repo` is * set, only if its GitHub remote is `repo`). A path reads that file; `false` reads none. */ readmePath?: string | false; /** * Where the knowledge's vectors are kept, when semantic search is on. Defaults to a SQLite file in the product, * `.blazeresolver/vectors.db` (see `localVectorStore`); `false` keeps them in memory only. */ vectorStore?: VectorStore | false; /** * Semantic search over the knowledge, alongside keyword search. Defaults to whichever provider with embeddings has * a key configured (see `resolveEmbedder`); `false` keeps search keyword-only. */ embed?: Embedder | false; /** * Local development only: when a customer's message is triaged as a real bug, run the fix engine on this machine and * post its progress and the resulting local branch into the ticket (see `local-fix.ts`). Defaults to * BLAZE_LOCAL_FIX=true; off everywhere else. A runner function replaces the CLI (tests). */ localFix?: boolean | LocalFixRunner; fetch?: typeof fetch; } /** * Web-standard (Request) => Promise handler for all /api/support/* endpoints. * Mountable directly in Next.js App Router (`/api/support/[...slug]/route.ts`), * Pages Router, Cloudflare Workers, Vercel, Express, etc. */ export declare function createSupportHandler(options?: SupportHandlerOptions): (req: Request) => Promise; //# sourceMappingURL=handler.d.ts.map