From dbc9375d72aedbfe60a3af9d72d476e35b863031 Mon Sep 17 00:00:00 2001 From: Mark Pollack Date: Thu, 10 Apr 2025 13:07:09 -0400 Subject: [PATCH] Add prompt to update to M7 --- src/prompts/update-to-m7.txt | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 src/prompts/update-to-m7.txt diff --git a/src/prompts/update-to-m7.txt b/src/prompts/update-to-m7.txt new file mode 100644 index 000000000..89da8b39e --- /dev/null +++ b/src/prompts/update-to-m7.txt @@ -0,0 +1,96 @@ +Please perform the following three tasks in my project: + + Important: File Access Instructions + + - For all file reading operations, use the view tool to view file contents. e.g. cat on linux/mac + - For multi-module projects, you'll need to examine multiple pom.xml or build.gradle files + - Examples: + cat pom.xml # For Maven root project + cat module/pom.xml # For Maven modules + cat build.gradle # For Gradle + cat module/build.gradle # For Gradle modules + cat build.gradle.kts # For Kotlin DSL + + Task 1: Update Spring AI BOM Version to 1.0.0-M7 + + For Maven (pom.xml): + - Replace 1.0.0-M6 or older versions with 1.0.0-M7 within the spring-ai-bom dependency + - Use the exact whitespace/indentation from the original file + + For Gradle (build.gradle or build.gradle.kts): + - Update implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-M6") or older versions to: + implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-M7") + + Task 2: Ensure All Required Repositories Exist + + For Maven (pom.xml): + - Verify these three repositories exist in pom.xml file: + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + false + + + + - Add any missing repositories to the section + - Use the existing indentation style from the pom.xml file + + For Gradle: + - Add any missing repositories with proper formatting: + repositories { + mavenCentral() + maven { + url = uri("https://repo.spring.io/milestone") + mavenContent { + releasesOnly() + } + } + } + + Task 3: Update Spring AI Artifact IDs + + Apply this pattern for all Spring AI starters: + - Model starters: spring-ai-{model}-spring-boot-starter → spring-ai-starter-model-{model} + - Vector Store starters: spring-ai-{store}-store-spring-boot-starter → spring-ai-starter-vector-store-{store} + - MCP starters: spring-ai-mcp-{type}-spring-boot-starter → spring-ai-starter-mcp-{type} + + For Maven (pom.xml) - Examples: + + + org.springframework.ai + spring-ai-openai-spring-boot-starter + + + + + org.springframework.ai + spring-ai-starter-model-openai + + + For Gradle - Examples: + // BEFORE + implementation 'org.springframework.ai:spring-ai-openai-spring-boot-starter' + implementation 'org.springframework.ai:spring-ai-redis-store-spring-boot-starter' + + // AFTER + implementation 'org.springframework.ai:spring-ai-starter-model-openai' + implementation 'org.springframework.ai:spring-ai-starter-vector-store-redis' + + CRITICAL - Do NOT make these changes: + + 1. Do NOT change any XML tags such as: + - Do NOT change to (leave all tags exactly as they are) + - Do NOT modify any other XML elements like , , etc. + 2. Do NOT attempt to fix XML formatting: + - Do NOT add or remove whitespace except where specifically instructed + - Do NOT add or remove newlines + - Do NOT reformat XML indentation + 3. Make ONLY the three specific changes described above: + - Update spring-ai-bom version to 1.0.0-M7 + - Add missing repositories from the list above + - Update Spring AI artifactIds using the specified patterns + + For all replacements, maintain the exact indentation and whitespace from the original file.