diff --git a/src/config/schema.base.generated.ts b/src/config/schema.base.generated.ts index 7b1d856956f..5ae5837b27f 100644 --- a/src/config/schema.base.generated.ts +++ b/src/config/schema.base.generated.ts @@ -19189,32 +19189,6 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = { description: "Provider-neutral persona prompt intent. Providers decide whether and how to map this into request instructions.", }, - rewrite: { - type: "object", - properties: { - enabled: { - type: "boolean", - }, - model: { - type: "string", - }, - preserveMeaning: { - type: "boolean", - }, - compressForSpeech: { - type: "boolean", - }, - inCharacter: { - type: "boolean", - }, - maxChars: { - type: "integer", - minimum: 1, - maximum: 9007199254740991, - }, - }, - additionalProperties: false, - }, providers: { type: "object", propertyNames: { diff --git a/src/config/types.tts.ts b/src/config/types.tts.ts index 40192979e6c..df6bfd70538 100644 --- a/src/config/types.tts.ts +++ b/src/config/types.tts.ts @@ -37,15 +37,6 @@ export type TtsPersonaPromptConfig = { constraints?: string[]; }; -export type TtsPersonaRewriteConfig = { - enabled?: boolean; - model?: string; - preserveMeaning?: boolean; - compressForSpeech?: boolean; - inCharacter?: boolean; - maxChars?: number; -}; - export type TtsPersonaConfig = { label?: string; description?: string; @@ -53,7 +44,6 @@ export type TtsPersonaConfig = { provider?: TtsProvider; fallbackPolicy?: TtsPersonaFallbackPolicy; prompt?: TtsPersonaPromptConfig; - rewrite?: TtsPersonaRewriteConfig; /** Provider-specific persona bindings keyed by speech provider id. */ providers?: TtsProviderConfigMap; }; diff --git a/src/config/zod-schema.core.ts b/src/config/zod-schema.core.ts index 78f5ef1561f..0927b54a4b3 100644 --- a/src/config/zod-schema.core.ts +++ b/src/config/zod-schema.core.ts @@ -508,16 +508,6 @@ const TtsPersonaPromptSchema = z constraints: z.array(z.string()).optional(), }) .strict(); -const TtsPersonaRewriteSchema = z - .object({ - enabled: z.boolean().optional(), - model: z.string().optional(), - preserveMeaning: z.boolean().optional(), - compressForSpeech: z.boolean().optional(), - inCharacter: z.boolean().optional(), - maxChars: z.number().int().min(1).optional(), - }) - .strict(); const TtsPersonaSchema = z .object({ label: z.string().optional(), @@ -527,7 +517,6 @@ const TtsPersonaSchema = z .union([z.literal("preserve-persona"), z.literal("provider-defaults"), z.literal("fail")]) .optional(), prompt: TtsPersonaPromptSchema.optional(), - rewrite: TtsPersonaRewriteSchema.optional(), providers: z.record(z.string(), TtsProviderConfigSchema).optional(), }) .strict(); diff --git a/src/config/zod-schema.tts.test.ts b/src/config/zod-schema.tts.test.ts index 99c54df6fe7..243ff06a52a 100644 --- a/src/config/zod-schema.tts.test.ts +++ b/src/config/zod-schema.tts.test.ts @@ -59,12 +59,6 @@ describe("TtsConfigSchema openai speed and instructions", () => { pacing: "Measured.", constraints: ["Do not read configuration values aloud."], }, - rewrite: { - enabled: false, - preserveMeaning: true, - compressForSpeech: true, - maxChars: 1500, - }, providers: { google: { model: "gemini-3.1-flash-tts-preview", @@ -82,4 +76,18 @@ describe("TtsConfigSchema openai speed and instructions", () => { }), ).not.toThrow(); }); + + it("rejects persona rewrite config until runtime behavior exists", () => { + expect(() => + TtsConfigSchema.parse({ + personas: { + alfred: { + ["rewrite"]: { + enabled: true, + }, + }, + }, + }), + ).toThrow(); + }); }); diff --git a/src/plugin-sdk/config-runtime.ts b/src/plugin-sdk/config-runtime.ts index 8d975ae0a6c..5ea45d225b1 100644 --- a/src/plugin-sdk/config-runtime.ts +++ b/src/plugin-sdk/config-runtime.ts @@ -141,7 +141,6 @@ export type { TtsPersonaConfig, TtsPersonaFallbackPolicy, TtsPersonaPromptConfig, - TtsPersonaRewriteConfig, TtsProvider, } from "../config/types.js"; export {