Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

Feidhm: installAgentAssets()

installAgentAssets(tool, dir?): string[]

Ailfha

Scríobh sócmhainní gníomhaire pantoken do uirlis isteach i repo tomhaltóra.

Paraiméadair

tool

AgentTool | "all"

Uirlis shonrach AgentTool, nó "all" do gach sócmhainn.

dir?

string = "."

An eolaire sprioc (réamhshocraithe ".").

Tuairisceáin

string[]

Na cosáin a scríobhadh.

Samplaí

Suiteáil sócmhainní uirlis amháin i repo

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

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

Suiteáil gach sócmhainn sa eolaire reatha

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

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