import { a as TObject, s as TString } from "../../helpers-DutyHbVD.mjs"; import { t as TUnsafe } from "../../unsafe-C_mX8nG4.mjs"; import { t as TOptional } from "../../optional-Bis1WTKK.mjs"; //#region extensions/crypto/src/tools/skill-evolve.d.ts /** * Skill Evolution Tool — agent-initiated skill creation and improvement. * * Lets the agent create new skills from experience and patch existing ones. * Skills are stored in ~/.openclawnch/learned-skills/ (separate from the 27 * static skills that ship with the plugin, so upgrades don't overwrite them). * * Actions: * create — Write a new SKILL.md from a complex workflow just completed * patch — Targeted find-and-replace within an existing learned skill * list — List all learned skills (name + description) * view — Read the full content of a learned skill * delete — Remove a learned skill * * All writes pass through the skill security scanner (skill-guard.ts). * Only available when evolution mode is "evolving". * * Inspired by Hermes Agent's skill_manager_tool.py. */ declare function createSkillEvolveTool(): { name: string; label: string; ownerOnly: boolean; description: string; parameters: TObject<{ action: TUnsafe<"list" | "delete" | "view" | "create" | "patch">; name: TOptional; description: TOptional; content: TOptional; old_string: TOptional; new_string: TOptional; }>; execute: (_toolCallId: string, args: unknown) => Promise<{ content: Array<{ type: "text"; text: string; }>; details: unknown; }>; }; /** * Build a compact index of all learned skills for injection into the * system prompt. Format: "- name: description" per skill. */ declare function buildLearnedSkillsIndex(): string; //#endregion export { buildLearnedSkillsIndex, createSkillEvolveTool }; //# sourceMappingURL=skill-evolve.d.mts.map