Skip to content

fix compilation failure #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/kotlin/com/embabel/coding/domain/Reference.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.embabel.coding.domain

import com.embabel.agent.tools.file.DefaultFileReadLog
import com.embabel.agent.tools.file.FileReadLog
import com.embabel.agent.tools.file.FileReadTools
import com.embabel.agent.tools.file.WellKnownFileContentTransformers
import com.embabel.common.ai.prompt.PromptContributor
Expand All @@ -20,7 +22,7 @@ class ProjectReference(
override val name: String,
override val description: String,
override val root: String,
) : Reference, FileReadTools {
) : Reference, FileReadTools, FileReadLog by DefaultFileReadLog() {

override val fileContentTransformers: List<StringTransformer>
get() = listOf(WellKnownFileContentTransformers.removeApacheLicenseHeader)
Expand All @@ -42,7 +44,7 @@ class FilesReference(
override val name: String,
override val description: String,
override val root: String,
) : Reference, FileReadTools {
) : Reference, FileReadTools , FileReadLog by DefaultFileReadLog(){

override val fileContentTransformers: List<StringTransformer>
get() = listOf(WellKnownFileContentTransformers.removeApacheLicenseHeader)
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/com/embabel/coding/domain/SoftwareProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
package com.embabel.coding.domain

import com.embabel.agent.tools.file.DefaultFileChangeLog
import com.embabel.agent.tools.file.DefaultFileReadLog
import com.embabel.agent.tools.file.FileChangeLog
import com.embabel.agent.tools.file.FileReadLog
import com.embabel.agent.tools.file.FileTools
import com.embabel.agent.tools.file.WellKnownFileContentTransformers
import com.embabel.coding.tools.BuildOptions
Expand Down Expand Up @@ -48,7 +50,7 @@ open class SoftwareProject(
@get:JsonPropertyDescription("Build command, such as 'mvn clean test'")
val buildCommand: String,
val wasCreated: Boolean = false,
) : PromptContributor, FileTools, SymbolSearch, FileChangeLog by DefaultFileChangeLog() {
) : PromptContributor, FileTools, SymbolSearch, FileChangeLog by DefaultFileChangeLog(), FileReadLog by DefaultFileReadLog() {

init {
if (!exists()) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/com/embabel/coding/TestProjectCreator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class TestProjectCreator {
CoderConditions.BUILD_SUCCEEDED
]
)
@AchievesGoal("Create a new test project")
@AchievesGoal(description = "Create a new test project")
fun describeShinyNewProject(softwareProject: SoftwareProject): CodeExplanation =
CodeExplanation(
text = """
Expand Down