UNPKG

@nestjs/cli

Version:

The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.

36 lines (35 loc) • 1.89 kB
/** * Where coding agents load project skills from, under the names the * `@nestjs/skills` installer gives them (`npx @nestjs/skills add --agent * <name>`). `all` covers Codex, Cursor and Claude Code at once. */ export declare const AGENT_SKILLS_TARGETS: { readonly all: ".agents/skills + .claude/skills (Codex, Cursor and Claude Code)"; readonly agents: ".agents/skills (Codex, Cursor)"; readonly claude: ".claude/skills (Claude Code)"; readonly cursor: ".cursor/skills (Cursor)"; }; export type AgentSkillsTarget = keyof typeof AGENT_SKILLS_TARGETS; /** What `nest new` installs when nobody is there to ask. */ export declare const DEFAULT_AGENT_SKILLS: AgentSkillsTarget[]; /** * Reads the `--skills` flag: targets separated by commas (`claude,agents`), * or `none`. Throws on a name the installer doesn't know, so a typo fails * before anything is generated. */ export declare const parseAgentSkills: (value: string) => AgentSkillsTarget[]; /** The installer command, as the user would type it. */ export declare const agentSkillsCommand: (targets: AgentSkillsTarget[]) => string; /** * Installs the official NestJS agent skills into the new project by running * the `@nestjs/skills` installer, which copies them into each target folder * and marks them so a later `add` updates them and `remove` removes them. * The skills ship apart from the CLI and the schematics, so a new release * reaches new projects without either being released. * * Never fails `nest new`: when the installer can't run (offline, say), it * prints the command to run later and resolves `false`. */ export declare const installAgentSkills: (dir: string, targets: AgentSkillsTarget[]) => Promise<boolean>; /** How to install the skills later, for when `nest new` didn't. */ export declare const printAgentSkillsNextSteps: (targets: AgentSkillsTarget[], reason: string) => void;