Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

פונקציה: installAgentAssets()

installAgentAssets(tool, dir?): string[]

אלפא

לכתוב את נכסי ה-agent של pantoken עבור כלי לתוך מאגר צרכן.

פרמטרים

tool

AgentTool | "all"

כלי AgentTool מסוים, או "all" עבור כל נכס.

dir?

string = "."

ספריית היעד (ברירת מחדל ".").

מחזיר

string[]

הנתיבים שנכתבו.

דוגמאות

התקנת נכסי כלי אחד לתוך מאגר

ts
import { installAgentAssets } from "@pantoken/ai";

const written = installAgentAssets("cursor", "./my-app");
// → ["my-app/.cursor/rules/pantoken.mdc"]

התקנת כל הנכסים בספרייה הנוכחית

ts
import { installAgentAssets } from "@pantoken/ai";

installAgentAssets("all");
// writes AGENTS.md, llms.txt, and the Cursor/Copilot/Windsurf/Claude assets