mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 06:20:31 +00:00
fix(ci): restore compat config types
This commit is contained in:
@@ -77,7 +77,7 @@ export const bluebubblesMessageActions: ChannelMessageActionAdapter = {
|
||||
if (!account.enabled || !account.configured) {
|
||||
return null;
|
||||
}
|
||||
const gate = createActionGate(cfg.channels?.bluebubbles?.actions);
|
||||
const gate = createActionGate(account.config.actions);
|
||||
const actions = new Set<ChannelMessageActionName>();
|
||||
const macOS26 = isMacOS26OrHigher(account.accountId);
|
||||
const privateApiStatus = getCachedBlueBubblesPrivateApiStatus(account.accountId);
|
||||
|
||||
@@ -196,16 +196,21 @@ describe("matrixMessageActions", () => {
|
||||
},
|
||||
} as CoreConfig;
|
||||
|
||||
const assistantActions =
|
||||
matrixMessageActions.describeMessageTool!({
|
||||
cfg,
|
||||
accountId: "assistant",
|
||||
} as never).actions;
|
||||
const opsActions =
|
||||
matrixMessageActions.describeMessageTool!({
|
||||
cfg,
|
||||
accountId: "ops",
|
||||
} as never).actions;
|
||||
const assistantDiscovery = matrixMessageActions.describeMessageTool!({
|
||||
cfg,
|
||||
accountId: "assistant",
|
||||
} as never);
|
||||
const opsDiscovery = matrixMessageActions.describeMessageTool!({
|
||||
cfg,
|
||||
accountId: "ops",
|
||||
} as never);
|
||||
|
||||
if (!assistantDiscovery || !opsDiscovery) {
|
||||
throw new Error("matrix action discovery returned null");
|
||||
}
|
||||
|
||||
const assistantActions = assistantDiscovery.actions;
|
||||
const opsActions = opsDiscovery.actions;
|
||||
|
||||
expect(assistantActions).not.toContain("react");
|
||||
expect(assistantActions).not.toContain("reactions");
|
||||
|
||||
@@ -28,6 +28,8 @@ 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,6 +17,8 @@ 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,6 +75,16 @@ 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. */
|
||||
|
||||
@@ -164,6 +164,8 @@ 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.
|
||||
|
||||
@@ -158,6 +158,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. */
|
||||
|
||||
Reference in New Issue
Block a user