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