/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Single source of truth for OpenAI's capability sets. * * Both `OPENAI_RUN_FNS` (the worker-side registration list) and * `workerRunFnSpecs()` (the main-thread proxy declaration) derive their * `serves` arrays from these named exports. SDK-free so the main thread * can import without paying the OpenAI client cost. * * To add a new capability set: declare a new `as const` constant here, * then reference it from both `OPENAI_RUN_FNS` and `OPENAI_RUN_FN_SPECS`. */ export declare const OPENAI_TEXT_GENERATION: ["text.generation"]; export declare const OPENAI_TOOL_USE: ["text.generation", "tool-use"]; export declare const OPENAI_JSON_MODE: ["text.generation", "json-mode"]; export declare const OPENAI_TEXT_REWRITER: ["text.rewriter"]; export declare const OPENAI_TEXT_SUMMARY: ["text.summary"]; export declare const OPENAI_TEXT_EMBEDDING: ["text.embedding"]; export declare const OPENAI_IMAGE_GENERATION: ["image.generation"]; export declare const OPENAI_IMAGE_EDITING: ["image.editing"]; export declare const OPENAI_COUNT_TOKENS: ["model.count-tokens"]; export declare const OPENAI_MODEL_SEARCH: ["model.search"]; export declare const OPENAI_MODEL_INFO: ["model.info"]; export declare const OPENAI_CACHE_CHECKPOINT: ["cache.checkpoint"]; /** Aggregated list — for `workerRunFnSpecs()` derivation. Order MUST match `OPENAI_RUN_FNS`. */ export declare const OPENAI_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.generation", "json-mode"], ["text.rewriter"], ["text.summary"], ["text.embedding"], ["image.generation"], ["image.editing"], ["model.count-tokens"], ["model.search"], ["model.info"], ["cache.checkpoint"]];