openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
42 lines • 2.02 kB
TypeScript
import { r as OpenClawConfig } from "./types.openclaw-B-tbtohD.js";
import { j as SessionEntry } from "./reply-payload-DRFubeid.js";
import { b as PluginMetadataSnapshot } from "./io-B-toJNHw.js";
import { Bc as ExecSessionDefaults, zc as ExecPolicyOverrides } from "./agent-harness-runtime-RVmyxnao.js";
import { n as SkillCommandSpec } from "./types-GPumK0qC.js";
//#region src/skills/discovery/chat-command-invocation.d.ts
/** Lists slash command names reserved by built-in chat commands and callers. */
declare function listReservedChatSlashCommandNames(extraNames?: string[]): Set<string>;
declare function resolveSkillCommandInvocation(params: {
commandBodyNormalized: string;
skillCommands: SkillCommandSpec[];
}): {
command: SkillCommandSpec;
args?: string;
inline?: boolean;
} | null;
//#endregion
//#region src/skills/discovery/chat-commands.d.ts
type WorkspaceSkillCommandParams = {
workspaceDir: string;
cfg: OpenClawConfig;
agentId?: string;
skillFilter?: string[];
sessionEntry?: ExecSessionDefaults & Pick<SessionEntry, "skillLibrarySelections" | "skillsSnapshot">;
sessionKey?: string;
execOverrides?: ExecPolicyOverrides;
includeAllowlistHidden?: boolean;
pluginMetadataSnapshot?: PluginMetadataSnapshot;
};
/** Synchronous public SDK contract; remote workspace menus are deferred. */
declare function listSkillCommandsForWorkspace(params: WorkspaceSkillCommandParams): SkillCommandSpec[];
type AgentSkillCommandParams = {
cfg: OpenClawConfig;
agentIds?: string[];
sessionEntry?: ExecSessionDefaults & Pick<SessionEntry, "skillLibrarySelections" | "skillsSnapshot">;
sessionKey?: string;
execOverrides?: ExecPolicyOverrides;
};
/** Synchronous public SDK contract for native command consumers. */
declare function listSkillCommandsForAgents(params: AgentSkillCommandParams): SkillCommandSpec[];
//#endregion
export { resolveSkillCommandInvocation as i, listSkillCommandsForWorkspace as n, listReservedChatSlashCommandNames as r, listSkillCommandsForAgents as t };