Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

Ֆունկցիա: installAgentAssets()

installAgentAssets(tool, dir?): string[]

Ալֆա

Գրեք pantoken-ի գործիքի համար նախատեսված agent ակտիվները սպառողի ռեպոզիտորիայում։

Պարամետրեր

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