Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

Mahi: installAgentAssets()

installAgentAssets(tool, dir?): string[]

Alpha

Tuhia ngā rawa ā-āgena o pantoken mō tētahi taputapu ki roto i tētahi repo kaiwhakamahi.

Ngā Tawhā

tool

AgentTool | "all"

He AgentTool motuhake, rānei "all" mō ia rawa.

dir?

string = "."

Te kōpaki tūnga (taunoa ".").

Whakahokia

string[]

Ngā ara kua tuhia.

Ngā tauira

Tāuta ngā rawa o tētahi taputapu ki roto i tētahi repo

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

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

Tāuta ia rawa ki te kōpaki o nāianei

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

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