mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
docs(types): mark legacy aliases deprecated
This commit is contained in:
@@ -45,6 +45,8 @@ export type MsgContext = {
|
||||
timestamp?: number;
|
||||
}>;
|
||||
/**
|
||||
* @deprecated Use CommandBody.
|
||||
*
|
||||
* Raw message body without structural context (history, sender labels).
|
||||
* Legacy alias for CommandBody. Falls back to Body if not set.
|
||||
*/
|
||||
|
||||
@@ -112,7 +112,7 @@ export type ChannelSetupInput = {
|
||||
useEnv?: boolean;
|
||||
homeserver?: string;
|
||||
dangerouslyAllowPrivateNetwork?: boolean;
|
||||
/** Compatibility alias for legacy setup callers; prefer dangerouslyAllowPrivateNetwork. */
|
||||
/** @deprecated Compatibility alias; prefer dangerouslyAllowPrivateNetwork. */
|
||||
allowPrivateNetwork?: boolean;
|
||||
proxy?: string;
|
||||
userId?: string;
|
||||
@@ -407,6 +407,8 @@ export type ChannelThreadingAdapter = {
|
||||
*/
|
||||
allowExplicitReplyTagsWhenOff?: boolean;
|
||||
/**
|
||||
* @deprecated Use allowExplicitReplyTagsWhenOff.
|
||||
*
|
||||
* Deprecated alias for allowExplicitReplyTagsWhenOff.
|
||||
* Kept for compatibility with older plugin surfaces.
|
||||
*/
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
|
||||
export type ConfigSetOptions = {
|
||||
strictJson?: boolean;
|
||||
/** @deprecated Use strictJson. */
|
||||
json?: boolean;
|
||||
dryRun?: boolean;
|
||||
allowExec?: boolean;
|
||||
|
||||
@@ -49,6 +49,7 @@ type GatewayRunOpts = {
|
||||
force?: boolean;
|
||||
verbose?: boolean;
|
||||
cliBackendLogs?: boolean;
|
||||
/** @deprecated Use cliBackendLogs. */
|
||||
claudeCliLogs?: boolean;
|
||||
wsLog?: unknown;
|
||||
compact?: boolean;
|
||||
|
||||
@@ -42,6 +42,7 @@ export type PluginMarketplaceListOptions = {
|
||||
|
||||
export type PluginUninstallOptions = {
|
||||
keepFiles?: boolean;
|
||||
/** @deprecated Use keepFiles. */
|
||||
keepConfig?: boolean;
|
||||
force?: boolean;
|
||||
dryRun?: boolean;
|
||||
|
||||
@@ -8,7 +8,7 @@ export type OnboardMode = "local" | "remote";
|
||||
* are normalized elsewhere (for example `oauth` -> `setup-token`).
|
||||
*/
|
||||
export type BuiltInAuthChoice =
|
||||
// Legacy alias for `setup-token` (kept for backwards CLI compatibility).
|
||||
/** @deprecated Use `setup-token`. */
|
||||
"oauth" | "setup-token" | "token" | "apiKey" | "custom-api-key" | "skip";
|
||||
export type AuthChoice = BuiltInAuthChoice | (string & {});
|
||||
|
||||
@@ -20,7 +20,7 @@ export type GatewayBind = "loopback" | "lan" | "auto" | "custom" | "tailnet";
|
||||
export type TailscaleMode = "off" | "serve" | "funnel";
|
||||
export type NodeManagerChoice = "npm" | "pnpm" | "bun";
|
||||
export type ChannelChoice = ChannelId;
|
||||
// Legacy alias (pre-rename).
|
||||
/** @deprecated Use ChannelChoice. */
|
||||
export type ProviderChoice = ChannelChoice;
|
||||
export type { SecretInputMode } from "../plugins/provider-auth-types.js";
|
||||
|
||||
|
||||
@@ -195,11 +195,11 @@ export type SessionMaintenanceConfig = {
|
||||
mode?: SessionMaintenanceMode;
|
||||
/** Remove session entries older than this duration (e.g. "30d", "12h"). Default: "30d". */
|
||||
pruneAfter?: string | number;
|
||||
/** Deprecated. Use pruneAfter instead. */
|
||||
/** @deprecated Use pruneAfter instead. */
|
||||
pruneDays?: number;
|
||||
/** Maximum number of session entries to keep. Default: 500. */
|
||||
maxEntries?: number;
|
||||
/** Deprecated and ignored. Run `openclaw doctor --fix` to remove. */
|
||||
/** @deprecated Ignored. Run `openclaw doctor --fix` to remove. */
|
||||
rotateBytes?: number | string;
|
||||
/**
|
||||
* Retention for archived reset transcripts (`*.reset.<timestamp>`).
|
||||
|
||||
@@ -35,7 +35,7 @@ export type CronConfig = {
|
||||
/** Override default retry policy for one-shot jobs on transient errors. */
|
||||
retry?: CronRetryConfig;
|
||||
/**
|
||||
* Deprecated legacy fallback webhook URL used only for stored jobs with notify=true.
|
||||
* @deprecated Legacy fallback webhook URL used only for stored jobs with notify=true.
|
||||
* Prefer per-job delivery.mode="webhook" with delivery.to.
|
||||
*/
|
||||
webhook?: string;
|
||||
|
||||
@@ -151,10 +151,24 @@ export type ModelsConfig = {
|
||||
mode?: "merge" | "replace";
|
||||
providers?: Record<string, ModelProviderConfig>;
|
||||
pricing?: ModelPricingConfig;
|
||||
// Deprecated legacy compat aliases. Kept in the runtime type surface so
|
||||
// doctor/runtime fallbacks can read older configs until migration completes.
|
||||
/**
|
||||
* @deprecated Legacy compat alias. Kept so doctor/runtime fallbacks can read
|
||||
* older configs until migration completes.
|
||||
*/
|
||||
bedrockDiscovery?: BedrockDiscoveryConfig;
|
||||
/**
|
||||
* @deprecated Legacy compat alias. Kept so doctor/runtime fallbacks can read
|
||||
* older configs until migration completes.
|
||||
*/
|
||||
copilotDiscovery?: DiscoveryToggleConfig;
|
||||
/**
|
||||
* @deprecated Legacy compat alias. Kept so doctor/runtime fallbacks can read
|
||||
* older configs until migration completes.
|
||||
*/
|
||||
huggingfaceDiscovery?: DiscoveryToggleConfig;
|
||||
/**
|
||||
* @deprecated Legacy compat alias. Kept so doctor/runtime fallbacks can read
|
||||
* older configs until migration completes.
|
||||
*/
|
||||
ollamaDiscovery?: DiscoveryToggleConfig;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
// Legacy compat surface for plugins that still import openclaw/extension-api.
|
||||
// Keep this file intentionally narrow and forward-only.
|
||||
/**
|
||||
* @deprecated Legacy compat surface for plugins that still import
|
||||
* openclaw/extension-api. Use the injected plugin runtime or focused
|
||||
* openclaw/plugin-sdk subpaths instead.
|
||||
*/
|
||||
|
||||
const shouldWarnExtensionApiImport =
|
||||
process.env.VITEST !== "true" &&
|
||||
|
||||
@@ -362,7 +362,8 @@ export function resolveExistingUsageSessionFile(params: {
|
||||
export async function loadCostUsageSummary(params?: {
|
||||
startMs?: number;
|
||||
endMs?: number;
|
||||
days?: number; // Deprecated, for backwards compatibility
|
||||
/** @deprecated Use startMs/endMs. */
|
||||
days?: number;
|
||||
config?: OpenClawConfig;
|
||||
agentId?: string;
|
||||
}): Promise<CostUsageSummary> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @deprecated Deprecated bundled-channel compatibility surface. Compatibility surface for bundled channel schemas.
|
||||
* @deprecated Compatibility surface for bundled channel schemas.
|
||||
*
|
||||
* OpenClaw-maintained bundled plugins should import
|
||||
* openclaw/plugin-sdk/bundled-channel-config-schema. Third-party plugins should
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
// Legacy compat surface for external plugins that still depend on older
|
||||
// broad plugin-sdk imports. Keep this file intentionally small.
|
||||
/**
|
||||
* @deprecated Legacy compat surface for external plugins that still depend on
|
||||
* older broad plugin-sdk imports. Use focused openclaw/plugin-sdk subpaths
|
||||
* instead.
|
||||
*/
|
||||
|
||||
const shouldWarnCompatImport =
|
||||
process.env.VITEST !== "true" &&
|
||||
|
||||
@@ -23,7 +23,7 @@ export type PrivateNetworkOptInInput =
|
||||
| Pick<SsrFPolicy, "allowPrivateNetwork" | "dangerouslyAllowPrivateNetwork">
|
||||
| {
|
||||
dangerouslyAllowPrivateNetwork?: boolean | null;
|
||||
/** Compatibility alias for legacy callers; prefer dangerouslyAllowPrivateNetwork. */
|
||||
/** @deprecated Compatibility alias; prefer dangerouslyAllowPrivateNetwork. */
|
||||
allowPrivateNetwork?: boolean | null;
|
||||
network?:
|
||||
| Pick<SsrFPolicy, "allowPrivateNetwork" | "dangerouslyAllowPrivateNetwork">
|
||||
|
||||
@@ -1214,6 +1214,8 @@ export type ProviderPlugin = {
|
||||
*/
|
||||
staticCatalog?: ProviderPluginCatalog;
|
||||
/**
|
||||
* @deprecated Use catalog.
|
||||
*
|
||||
* Legacy alias for catalog.
|
||||
* Kept for compatibility with existing provider plugins.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user