mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-10 00:31:22 +00:00
fix(config): remove remaining legacy surface leaks (#60726)
This commit is contained in:
@@ -28,8 +28,6 @@ export type AgentSandboxConfig = {
|
||||
sessionToolsVisibility?: "spawned" | "all";
|
||||
/** Container/workspace scope for sandbox isolation. */
|
||||
scope?: "session" | "agent" | "shared";
|
||||
/** @deprecated Legacy sandbox scope toggle; normalized to `scope` on load. */
|
||||
perSession?: boolean;
|
||||
workspaceRoot?: string;
|
||||
/** Docker-specific sandbox settings. */
|
||||
docker?: SandboxDockerSettings;
|
||||
|
||||
@@ -17,8 +17,6 @@ export type BrowserSnapshotDefaults = {
|
||||
mode?: "efficient";
|
||||
};
|
||||
export type BrowserSsrFPolicyConfig = {
|
||||
/** @deprecated Legacy alias; normalized to `dangerouslyAllowPrivateNetwork` on load. */
|
||||
allowPrivateNetwork?: boolean;
|
||||
/** If true, permit browser navigation to private/internal networks. Default: true */
|
||||
dangerouslyAllowPrivateNetwork?: boolean;
|
||||
/**
|
||||
|
||||
@@ -75,16 +75,6 @@ export type TalkConfig = {
|
||||
provider?: string;
|
||||
/** Provider-specific Talk config keyed by provider id. */
|
||||
providers?: Record<string, TalkProviderConfig>;
|
||||
/** @deprecated Legacy top-level Talk provider API key; normalized into talk.providers.<provider>.apiKey on load. */
|
||||
apiKey?: SecretInput;
|
||||
/** @deprecated Legacy top-level Talk voice id; normalized into talk.providers.<provider>.voiceId on load. */
|
||||
voiceId?: string;
|
||||
/** @deprecated Legacy top-level Talk voice aliases; normalized into talk.providers.<provider>.voiceAliases on load. */
|
||||
voiceAliases?: Record<string, string>;
|
||||
/** @deprecated Legacy top-level Talk model id; normalized into talk.providers.<provider>.modelId on load. */
|
||||
modelId?: string;
|
||||
/** @deprecated Legacy top-level Talk output format; normalized into talk.providers.<provider>.outputFormat on load. */
|
||||
outputFormat?: string;
|
||||
/** Stop speaking when user starts talking (default: true). */
|
||||
interruptOnSpeech?: boolean;
|
||||
/** Milliseconds of user silence before Talk mode sends the transcript after a pause. */
|
||||
|
||||
@@ -162,8 +162,6 @@ export type SlackAccountConfig = {
|
||||
* - "progress": show progress status, then send final text
|
||||
*/
|
||||
streaming?: SlackStreamingMode;
|
||||
/** @deprecated Legacy draft streaming mode; normalized into `streaming` on load. */
|
||||
streamMode?: "replace" | "status_final" | "append";
|
||||
/**
|
||||
* Slack native text streaming toggle (`chat.startStream` / `chat.appendStream` / `chat.stopStream`).
|
||||
* Used when `streaming` is `partial`. Default: true.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type {
|
||||
BlockStreamingChunkConfig,
|
||||
BlockStreamingCoalesceConfig,
|
||||
ContextVisibilityMode,
|
||||
DmPolicy,
|
||||
@@ -158,12 +157,8 @@ export type TelegramAccountConfig = {
|
||||
* - "progress": alias that maps to "partial" on Telegram
|
||||
*/
|
||||
streaming?: TelegramStreamingMode;
|
||||
/** @deprecated Legacy preview streaming key; normalized into `streaming` on load. */
|
||||
streamMode?: "off" | "partial" | "block" | "progress";
|
||||
/** Disable block streaming for this account. */
|
||||
blockStreaming?: boolean;
|
||||
/** @deprecated Legacy chunking config from `streamMode: "block"`; ignored after migration. */
|
||||
draftChunk?: BlockStreamingChunkConfig;
|
||||
/** Merge streamed block replies before sending. */
|
||||
blockStreamingCoalesce?: BlockStreamingCoalesceConfig;
|
||||
mediaMaxMb?: number;
|
||||
|
||||
@@ -89,11 +89,6 @@ describe("validateTalkConfigResult", () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
apiKey: {
|
||||
source: "env",
|
||||
provider: "default",
|
||||
id: "ELEVENLABS_API_KEY",
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -54,21 +54,11 @@ const ResolvedTalkConfigSchema = Type.Object(
|
||||
{ additionalProperties: false },
|
||||
);
|
||||
|
||||
const LegacyTalkConfigSchema = Type.Object(
|
||||
{
|
||||
...talkProviderFieldSchemas,
|
||||
interruptOnSpeech: Type.Optional(Type.Boolean()),
|
||||
silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
||||
},
|
||||
{ additionalProperties: false },
|
||||
);
|
||||
|
||||
const NormalizedTalkConfigSchema = Type.Object(
|
||||
const TalkConfigSchema = Type.Object(
|
||||
{
|
||||
provider: Type.Optional(Type.String()),
|
||||
providers: Type.Optional(Type.Record(Type.String(), TalkProviderConfigSchema)),
|
||||
resolved: ResolvedTalkConfigSchema,
|
||||
...talkProviderFieldSchemas,
|
||||
interruptOnSpeech: Type.Optional(Type.Boolean()),
|
||||
silenceTimeoutMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
||||
},
|
||||
@@ -79,7 +69,7 @@ export const TalkConfigResultSchema = Type.Object(
|
||||
{
|
||||
config: Type.Object(
|
||||
{
|
||||
talk: Type.Optional(Type.Union([LegacyTalkConfigSchema, NormalizedTalkConfigSchema])),
|
||||
talk: Type.Optional(TalkConfigSchema),
|
||||
session: Type.Optional(
|
||||
Type.Object(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user