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