UNPKG

what-is-my-tech-stack

Version:

Analyze project dependencies and generate a human-readable tech stack description

59 lines (58 loc) 3.44 kB
/** * Base prompt for tech stack analysis */ export declare const BASE_TECH_STACK_PROMPT = "Return ONLY a list of technology names. NO descriptions. NO explanations."; /** * Prompt for Node.js project analysis */ export declare const NODE_ANALYSIS_PROMPT = "List ONLY the technology names from these dependencies:\n{{dependencies}}\n\nFormat as:\n\u2022 Technology1\n\u2022 Technology2\n\nNO descriptions.\nNO explanations.\nNO headers.\nNO categories.\nNO versions.\nJUST the list."; /** * Prompt for Python project analysis */ export declare const PYTHON_ANALYSIS_PROMPT = "List ONLY the technology names from these dependencies:\n{{dependencies}}\n\nFormat as:\n\u2022 Technology1\n\u2022 Technology2\n\nNO descriptions.\nNO explanations.\nNO headers.\nNO categories.\nNO versions.\nJUST the list."; /** * Prompt for dependency categorization */ export declare const CATEGORIZATION_PROMPT = "Group these technologies into ONLY these categories:\n\nTechnologies:\n{{dependencies}}\n\nCategories to use:\n\u2022 Core Technologies\n\u2022 Testing\n\u2022 Development Tools\n\nRules:\n\u2022 NO descriptions\n\u2022 NO explanations\n\u2022 NO additional categories\n\u2022 NO headers except category names\n\u2022 NO versions\n\u2022 ONLY technology names under each category\n\nExample format:\n{\n \"Core Technologies\": [\"tech1\", \"tech2\"],\n \"Testing\": [\"test1\", \"test2\"],\n \"Development Tools\": [\"tool1\", \"tool2\"]\n}"; /** * Prompt for filtering by focus area */ export declare const FOCUS_AREA_PROMPT = "Given these technologies:\n{{dependencies}}\n\nFilter and return ONLY the technologies that are relevant to the {{focusArea}} area.\nFocus area is: {{focusArea}} (frontend, backend, or fullstack)\n\nRules:\n\u2022 Return ONLY the technology names that are relevant\n\u2022 Return as a JSON array of strings\n\u2022 NO descriptions\n\u2022 NO explanations\n\u2022 NO categories"; /** * Prompt for filtering by specific technology */ export declare const TECH_FOCUS_PROMPT = "Given these technologies:\n{{dependencies}}\n\nFilter and return ONLY the technologies that are related to {{techFocus}}.\nThe focus technology is: {{techFocus}}\n\nConsider:\n\u2022 Core libraries and frameworks\n\u2022 Testing tools specific to this technology\n\u2022 Development tools commonly used with this technology\n\u2022 Related ecosystem packages\n\nRules:\n\u2022 Return ONLY the technology names that are relevant\n\u2022 Return as a JSON array of strings\n\u2022 NO descriptions\n\u2022 NO explanations\n\u2022 NO categories"; /** * Formats for different output types */ export declare const OUTPUT_FORMATS: { readonly markdown: { readonly header: ""; readonly subheader: "### "; readonly section: ""; readonly list: "• "; readonly codeBlock: ""; }; readonly text: { readonly header: ""; readonly subheader: ""; readonly section: ""; readonly list: "• "; readonly codeBlock: ""; }; readonly inline: { readonly header: ""; readonly subheader: ""; readonly section: ""; readonly list: ""; readonly codeBlock: ""; readonly separator: ", "; }; readonly json: { readonly type: "json_object"; }; }; /** * Replaces template variables in a prompt */ export declare function formatPrompt(template: string, variables: Record<string, string>): string;