UNPKG

@arcjet/skills

Version:

Versioned Agent Skills for the Arcjet JavaScript SDK, shipped with TanStack Intent

51 lines • 1.65 kB
import { VERSION } from "./version.js"; //#region src/index.d.ts /** * npm package name that TanStack Intent discovers as a skill source. */ export declare const PACKAGE_NAME: "@arcjet/skills"; /** * Leaf skill names shipped in this package. Each matches * `skills/<name>/SKILL.md`. */ export type SkillName = "choose-protections" | "cli" | "guard" | "mcp" | "protect"; /** * Static manifest for one shipped skill. Intent reads the `SKILL.md` files * themselves; this export is for TypeScript consumers who want identities * without scanning `node_modules`. */ export interface SkillManifest { readonly name: SkillName; /** * When to load this skill. Kept in sync with the `SKILL.md` description. */ readonly description: string; /** * Path to `SKILL.md` relative to the published package root. */ readonly file: string; /** * Documentation this skill was derived from, relative to the package root. * Conservative stale checks flag these files when they change. */ readonly sources: readonly string[]; } /** * Skills shipped in this package version. Load only the entry that matches * the current task (`@arcjet/skills#<name>`). */ export declare const skills: readonly SkillManifest[]; /** * Format a TanStack Intent load identity (`@arcjet/skills#protect`). */ export declare function skillIdentity(name: SkillName): string; /** * Look up one shipped skill by leaf name. */ export declare function getSkill(name: SkillName): SkillManifest | undefined; /** * Package version these skills were published with. */ export declare function skillLibraryVersion(): string; //#endregion export { VERSION };