diff --git a/pom.xml b/pom.xml index 5357094..b22a83e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,19 +5,19 @@ com.embabel.build embabel-build-parent - 1.0.0-SNAPSHOT + 0.1.0-SNAPSHOT com.embabel.coding coding-agent - 1.0.0-SNAPSHOT + 0.1.0-SNAPSHOT jar Embabel Coding Agent Embabel Agentic Flow for Software Engineers - 1.0.0-SNAPSHOT - 1.0.0-SNAPSHOT - 1.0.0-SNAPSHOT + 0.1.0-SNAPSHOT + 0.1.0-SNAPSHOT + 0.1.0-SNAPSHOT diff --git a/src/main/kotlin/com/embabel/coding/agent/Coder.kt b/src/main/kotlin/com/embabel/coding/agent/Coder.kt index e991b95..b1881e5 100644 --- a/src/main/kotlin/com/embabel/coding/agent/Coder.kt +++ b/src/main/kotlin/com/embabel/coding/agent/Coder.kt @@ -198,7 +198,7 @@ class Coder( promptContributors = listOf(project, coderProperties.codeModificationDirections()), ).create( """ - Execute the following user request to modify code in the given project. + Execute the following user request to modify code in the given project. Use the project information to help you understand the code. The project will be in git so you can safely modify content without worrying about backups. Return an explanation of what you did and why. @@ -241,12 +241,12 @@ class Coder( ).create( """ Modify code in the given project to fix the broken build. - + Use the project information to help you understand the code. The project will be in git so you can safely modify content without worrying about backups. Return an explanation of what you did and why. Consider the build failure report. - + DO NOT BUILD THE PROJECT. JUST MODIFY CODE. Consider the following user request for the necessary functionality: "${codeModificationRequest.request}" diff --git a/src/main/kotlin/com/embabel/coding/agent/CodingCommands.kt b/src/main/kotlin/com/embabel/coding/agent/CodingCommands.kt index adf9d76..608158c 100644 --- a/src/main/kotlin/com/embabel/coding/agent/CodingCommands.kt +++ b/src/main/kotlin/com/embabel/coding/agent/CodingCommands.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2024-2025 Embabel Software, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.embabel.coding.agent import org.springframework.shell.standard.ShellComponent @@ -16,4 +31,4 @@ class CodingCommands(private val taskFocus: TaskFocus) { fun setFocus(@ShellOption name: String): String { return taskFocus.setFocus(name)?.root ?: "No project found with name containing '$name'." } -} \ No newline at end of file +} diff --git a/src/main/kotlin/com/embabel/coding/agent/TaskFocus.kt b/src/main/kotlin/com/embabel/coding/agent/TaskFocus.kt index 35eb9d0..79920d1 100644 --- a/src/main/kotlin/com/embabel/coding/agent/TaskFocus.kt +++ b/src/main/kotlin/com/embabel/coding/agent/TaskFocus.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2024-2025 Embabel Software, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.embabel.coding.agent import com.embabel.coding.domain.SoftwareProject @@ -22,4 +37,3 @@ class TaskFocus(private val softwareProjectRepository: SoftwareProjectRepository return newFocus } } -