/** * Brittney Cloud Adapter * * Connects to the first-party Brittney Cloud Service — HoloScript's * cloud-grade AI gateway. Supports SSE streaming, tool calling, and * tiered inference (standard / pro) with automatic provider routing * behind the service. * * Endpoints (relative to baseURL): * POST /api/chat — SSE streaming chat (primary) * POST /api/generate — Non-streaming code generation * GET /api/health — Service health * * @version 1.0.0 */ import { BaseLLMAdapter } from '../base-adapter'; import type { Capabilities, LLMProviderConfig, LLMCompletionRequest, LLMCompletionResponse, LLMStreamChunk } from '../types'; /** * Task lane — what kind of work requests from this adapter are (task-type * modulation). The service maps lanes to per-lane model overrides * (BRITTNEY_LANE__MODEL) and promotes explicit vision/reasoning lanes * to the pro tier when no tier is pinned. */ export type BrittneyCloudLane = 'operator' | 'code' | 'vision' | 'reasoning'; export interface BrittneyCloudProviderConfig extends Omit { /** API key — optional for dev mode; required for authenticated endpoints. */ apiKey?: string; /** * Inference tier. 'pro' routes to Kimi K2.5 when available; * 'standard' uses the preferred available provider (Fireworks, * Together, or Ollama fallback). Unset = service default (standard), * which also allows lane-based tier promotion server-side. */ tier?: 'standard' | 'pro'; /** * Task lane for requests from this adapter. Unset = service-side * heuristic detection (backward compatible). */ lane?: BrittneyCloudLane; } export declare const BRITTNEY_CLOUD_MODELS: readonly ["brittney-standard", "brittney-pro", "brittney-qwen-v23"]; export type BrittneyCloudModel = (typeof BRITTNEY_CLOUD_MODELS)[number]; export declare const BRITTNEY_CLOUD_CAPABILITIES: Capabilities; export declare class BrittneyCloudAdapter extends BaseLLMAdapter { readonly name: "brittney-cloud"; readonly models: readonly ["brittney-standard", "brittney-pro", "brittney-qwen-v23"]; readonly defaultHoloScriptModel: string; readonly capabilities: Capabilities; private readonly baseURL; private readonly tier?; private readonly lane?; constructor(config?: BrittneyCloudProviderConfig); protected getDefaultModel(): string; complete(request: LLMCompletionRequest, model?: string): Promise; streamCompletion(request: LLMCompletionRequest, model?: string): AsyncIterable; healthCheck(): Promise<{ ok: boolean; latencyMs: number; error?: string; }>; private estimateTokens; }