Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

Funktion: installAgentAssets()

installAgentAssets(tool, dir?): string[]

Alpha

Schreibt die pantoken-Agent-Assets für ein Tool in ein Consumer-Repository.

Parameter

tool

AgentTool | "all"

Ein bestimmtes AgentTool, oder "all" für jedes Asset.

dir?

string = "."

Das Zielverzeichnis (Standard: ".").

Rückgabe

string[]

Die geschriebenen Pfade.

Beispiele

Installiert die Assets eines Tools in ein Repository

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

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

Installiert alle Assets im aktuellen Verzeichnis

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

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