@tanstack/ai-skills
Version:
Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI.
14 lines (13 loc) • 1.17 kB
JavaScript
import { modelFamilyOf } from "./types.js";
import { SkillParseError, parseSkill, stripFrontmatter } from "./parse.js";
import { MAX_SKILL_WALK_DEPTH, SKILL_FILE, walkSkillDirs } from "./walk.js";
import { assertSafeResourcePath, stableHash } from "./util.js";
import { validateSkill } from "./validate.js";
import { inlineSkill } from "./sources/inline.js";
import { aggregate, cache, combineSources, dedupe, filter } from "./combinators.js";
import { renderCatalog, sortSkills } from "./catalog.js";
import { ALREADY_LOADED, createLoadSkillTool } from "./tools/load-skill.js";
import { READ_RESOURCE_TOOL_NAME, createResourceTool } from "./tools/read-resource.js";
import { SKILLS_STATE_EVENT, withSkills } from "./middleware.js";
import { SkillLimitError } from "./errors.js";
export { ALREADY_LOADED, MAX_SKILL_WALK_DEPTH, READ_RESOURCE_TOOL_NAME, SKILLS_STATE_EVENT, SKILL_FILE, SkillLimitError, SkillParseError, aggregate, assertSafeResourcePath, cache, combineSources, createLoadSkillTool, createResourceTool, dedupe, filter, inlineSkill, modelFamilyOf, parseSkill, renderCatalog, sortSkills, stableHash, stripFrontmatter, validateSkill, walkSkillDirs, withSkills };