@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
22 lines (21 loc) • 1.03 kB
TypeScript
/**
* Needle Engine AI skill installer.
*
* Writes a Needle Engine skill to `<dir>/skills/needle-engine/SKILL.md`
* for each supported AI agent directory (`.claude/`, `.github/`, `.agents/`).
* Both Claude Code and GitHub Copilot auto-load skills based on their
* description frontmatter, so the AI agent will automatically have Needle
* Engine context when working in the project.
*
* The skill is only written if at least one of the supported directories
* already exists in the project root (i.e. the developer is already using
* an AI coding agent).
* Old skill files are always overwritten so the skill stays up to date with
* the engine version.
*
* @param {"build" | "serve"} command
* @param {{} | undefined | null} config
* @param {import('../types/index.js').userSettings} userSettings
* @returns {import('vite').Plugin | null}
*/
export function needleAI(command: "build" | "serve", config: {} | undefined | null, userSettings: import("../types/index.js").userSettings): import("vite").Plugin | null;