import { i as OpenClawConfig } from "./types.openclaw-CXjMEWAQ.js"; import { t as ChatType } from "./chat-type-B6XXSSnm.js"; import { r as SkillSnapshot } from "./types-DKGs3QG0.js"; import { i as SandboxToolPolicy } from "./types-34KlOMUq.js"; import { t as PromptMode } from "./system-prompt.types-DK8-zL3a.js"; //#region src/agents/sandbox-tool-policy.d.ts /** Provenance marker for wildcard allowlists created from `alsoAllow`. */ declare const IMPLICIT_ALLOW_ALL_FROM_ALSO_ALLOW: unique symbol; //#endregion //#region src/agents/tool-policy.d.ts /** Tool allow/deny policy shape accepted by agent and sandbox config. */ type ToolPolicyLike = { allow?: string[]; deny?: string[]; [IMPLICIT_ALLOW_ALL_FROM_ALSO_ALLOW]?: true; }; //#endregion //#region src/agents/conversation-capability-profile.d.ts type ConversationCapabilityScope = "direct" | "shared" | "unknown"; type ConversationCapabilityProfileParams = { config?: OpenClawConfig; sessionKey?: string; /** Live conversation key when a sandbox/policy key is used for tool filtering. */ runSessionKey?: string; /** Session key used for subagent capability inheritance when it differs from sessionKey. */ sandboxSessionKey?: string; sessionId?: string; runId?: string; agentId?: string; agentDir?: string; agentAccountId?: string | null; messageProvider?: string | null; messageChannel?: string | null; chatType?: string; messageTo?: string | null; messageThreadId?: string | number | null; currentChannelId?: string | null; currentMessagingTarget?: string | null; currentThreadTs?: string | null; currentMessageId?: string | number | null; groupId?: string | null; groupChannel?: string | null; groupSpace?: string | null; memberRoleIds?: readonly string[]; spawnedBy?: string | null; senderId?: string | null; senderName?: string | null; senderUsername?: string | null; senderE164?: string | null; senderIsOwner?: boolean; modelProvider?: string; modelId?: string; modelApi?: string; modelContextWindowTokens?: number; modelHasVision?: boolean; workspaceDir?: string; cwd?: string; spawnWorkspaceDir?: string; isCanonicalWorkspace?: boolean; promptMode?: PromptMode; skillsSnapshot?: SkillSnapshot; sandboxToolPolicy?: SandboxToolPolicy; runtimeToolAllowlist?: string[]; }; type ResolvedConversationCapabilityProfile = { agentId?: string; serviceIdentity: { agentId?: string; agentDir?: string; accountId?: string | null; runId?: string; sessionId?: string; }; model: { provider?: string; id?: string; api?: string; contextWindowTokens?: number; hasVision?: boolean; }; conversation: { scope: ConversationCapabilityScope; chatType?: ChatType; sessionKey?: string; policySessionKey?: string; runSessionKey?: string; sessionId?: string; messageProvider?: string | null; messageChannel?: string | null; messageTo?: string | null; messageThreadId?: string | number | null; currentChannelId?: string | null; currentMessagingTarget?: string | null; currentThreadTs?: string | null; currentMessageId?: string | number | null; groupId?: string | null; groupChannel?: string | null; groupSpace?: string | null; memberRoleIds?: readonly string[]; spawnedBy?: string | null; }; sender: { id?: string | null; name?: string | null; username?: string | null; e164?: string | null; isOwner?: boolean; }; workspace: { workspaceDir?: string; cwd?: string; spawnWorkspaceDir?: string; workspaceRoot: string; runtimeRoot: string; spawnWorkspaceRoot?: string; instructionRoot?: string; isCanonicalWorkspace?: boolean; }; instructions: { agentDir?: string; workspaceDir?: string; promptMode?: PromptMode; isCanonicalWorkspace?: boolean; }; skills: { snapshot?: SkillSnapshot; }; policy: { agentId?: string; sessionKey?: string; subagentSessionKey?: string; trustedGroup: { groupId: string | null | undefined; dropped: boolean; }; profile?: string; providerProfile?: string; profilePolicy?: ToolPolicyLike; providerProfilePolicy?: ToolPolicyLike; profileAlsoAllow?: string[]; providerProfileAlsoAllow?: string[]; globalPolicy?: SandboxToolPolicy; globalProviderPolicy?: SandboxToolPolicy; agentPolicy?: SandboxToolPolicy; agentProviderPolicy?: SandboxToolPolicy; groupPolicy?: SandboxToolPolicy; senderPolicy?: SandboxToolPolicy; sandboxPolicy?: SandboxToolPolicy; subagentPolicy?: SandboxToolPolicy; inheritedToolPolicy?: SandboxToolPolicy; inheritancePolicies: Array; explicitToolAllowlist: string[]; /** Explicit config/runtime grants only; excludes built-in profile expansion. */ explicitToolOverrideAllowlist: string[]; explicitToolDenylist: string[]; }; }; declare function resolveConversationCapabilityProfile(params: ConversationCapabilityProfileParams): ResolvedConversationCapabilityProfile; //#endregion export { resolveConversationCapabilityProfile as n, ToolPolicyLike as r, ResolvedConversationCapabilityProfile as t };