Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

関数: installAgentAssets()

installAgentAssets(tool, dir?): string[]

アルファ

ツール用の pantoken のエージェント資産をコンシューマーリポジトリに書き込む。

パラメーター

tool

AgentTool | "all"

特定の AgentTool、またはすべてのアセットの場合は "all"

dir?

string = "."

対象ディレクトリ(デフォルト ".")。

戻り値

string[]

書き込まれたパス。

リポジトリに1つのツールのアセットをインストールする

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