Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

फंक्शन: installAgentAssets()

installAgentAssets(tool, dir?): string[]

अल्फा

किसी टूल के लिए 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