Skip to content

Commit

Permalink
1.0.67 (#72)
Browse files Browse the repository at this point in the history
* 1.0.66

* misc fixes

* Update AddApplyFileDiffLinks.kt

* 1.0.55

* Update UsageManager.kt

* Update DataStorage.kt

* Update WebDevApp.kt

* Update README.md

* Update UsageManager.kt

* improve filename extract

* wip

* wip

* move packages

* Update Discussable.kt

* Update gradle.properties
  • Loading branch information
acharneski authored May 8, 2024
1 parent 7d42ebc commit 9e61fb5
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gradle Releases -> https://github.com/gradle/gradle/releases
libraryGroup = com.simiacryptus.skyenet
libraryVersion = 1.0.66
libraryVersion = 1.0.67
gradleVersion = 7.6.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import com.simiacryptus.skyenet.AgentPatterns.displayMapInTabs
import com.simiacryptus.skyenet.set
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import com.github.simiacryptus.diff.IterativePatchUtil.patch
import com.simiacryptus.diff.IterativePatchUtil.patch
import com.simiacryptus.skyenet.AgentPatterns
import com.simiacryptus.skyenet.set
import com.simiacryptus.skyenet.webui.application.ApplicationInterface
Expand Down Expand Up @@ -77,12 +77,12 @@ fun SocketManagerBase.addApplyFileDiffLinks(
"Patch" to MarkdownUtil.renderMarkdown("""
|```diff
|${
DiffUtil.formatDiff(
DiffUtil.generateDiff(
prevCode.lines(),
codeValue.lines()
)
DiffUtil.formatDiff(
DiffUtil.generateDiff(
prevCode.lines(),
codeValue.lines()
)
)
}
|```
""".trimMargin(), ui = ui
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import com.simiacryptus.skyenet.set
import com.simiacryptus.skyenet.webui.application.ApplicationInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import org.apache.commons.text.similarity.LevenshteinDistance

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import java.io.UnsupportedEncodingException
import java.net.URLDecoder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import com.github.simiacryptus.diff.PatchLineType.*
import com.simiacryptus.diff.PatchLineType.*

enum class PatchLineType {
Added, Deleted, Unchanged
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import org.apache.commons.text.similarity.LevenshteinDistance

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

typealias PatchUtil = IterativePatchUtil
5 changes: 3 additions & 2 deletions webui/src/main/kotlin/com/simiacryptus/skyenet/Discussable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ class Discussable<T : Any>(
val userMessage = userMessage()
history.add(userMessage to Role.user)
val design = initialResponse(userMessage)
history.add(outputFn(design) to Role.assistant)
val tabContent = task.add(outputFn(design))!!
val rendered = outputFn(design)
history.add(rendered to Role.assistant)
val tabContent = task.add(rendered)!!
val feedbackForm = feedbackForm(tabIndex, tabContent, design, history, task)
tabContent?.append("\n" + feedbackForm.placeholder)
task.complete()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.simiacryptus.skyenet.apps.general

import com.github.simiacryptus.aicoder.actions.generic.commonRoot
import com.github.simiacryptus.diff.addApplyFileDiffLinks
import com.simiacryptus.diff.addApplyFileDiffLinks
import com.simiacryptus.jopenai.API
import com.simiacryptus.jopenai.ApiModel
import com.simiacryptus.jopenai.ApiModel.Role
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.simiacryptus.diff
package com.simiacryptus.diff

import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
Expand Down

0 comments on commit 9e61fb5

Please sign in to comment.