UNPKG

pyb-ts

Version:

PYB-CLI - Minimal AI Agent with multi-model support and CLI interface

39 lines (37 loc) 1.31 kB
import { markProjectOnboardingComplete } from "@components/ProjectOnboarding"; import { PROJECT_FILE } from "@constants/product"; const command = { type: "prompt", name: "init", description: `Initialize a new ${PROJECT_FILE} file with codebase documentation`, isEnabled: true, isHidden: false, progressMessage: "analyzing your codebase", userFacingName() { return "init"; }, async getPromptForCommand(_args) { markProjectOnboardingComplete(); return [ { role: "user", content: [ { type: "text", text: `Please analyze this codebase and create a ${PROJECT_FILE} file containing: 1. Build/lint/test commands - especially for running a single test 2. Code style guidelines including imports, formatting, types, naming conventions, error handling, etc. The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long. If there's already a ${PROJECT_FILE}, improve it. If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.` } ] } ]; } }; var init_default = command; export { init_default as default }; //# sourceMappingURL=init.js.map