Skip to content

Commit

Permalink
1.0.53 (#58)
Browse files Browse the repository at this point in the history
* 1.0.53

* Update AgentPatterns.kt

* Update AgentPatterns.kt
  • Loading branch information
acharneski authored Mar 20, 2024
1 parent 3335e7a commit 6583866
Show file tree
Hide file tree
Showing 14 changed files with 298 additions and 193 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ Maven:
<dependency>
<groupId>com.simiacryptus</groupId>
<artifactId>skyenet-webui</artifactId>
<version>1.0.52</version>
<version>1.0.53</version>
</dependency>
```

Gradle:

```groovy
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.52'
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.53'
```

```kotlin
implementation("com.simiacryptus:skyenet:1.0.52")
implementation("com.simiacryptus:skyenet:1.0.53")
```

### 🌟 To Use
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ val jackson_version = "2.15.3"

dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.48")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.49")

implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.9")
implementation(group = "commons-io", name = "commons-io", version = "2.15.0")
Expand Down
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.52
libraryVersion = 1.0.53
gradleVersion = 7.6.1
2 changes: 1 addition & 1 deletion webui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val jetty_version = "11.0.18"
val jackson_version = "2.15.3"
dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.48")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.49")

implementation(project(":core"))
implementation(project(":kotlin"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ fun SocketManagerBase.addSaveLinks(
response: String,
handle: (String, String) -> Unit
): String {
val diffPattern = """(?s)(?<![^\n])#+\s*([^\n]+)(?:[^`]+`?)*\n(```.*?\n```)""".toRegex() // capture filename
val diffPattern = """(?s)(?<![^\n])#+\s*([^\n]+)(?:[^`]+`?)*\n```[^\n]*\n(.*?)```""".toRegex() // capture filename
val matches = diffPattern.findAll(response).distinct()
val withLinks = matches.fold(response) { markdown, diffBlock ->
val filename = diffBlock.groupValues[1]
// val language = diffBlock.groupValues[2]
val codeValue = diffBlock.groupValues[2]
val hrefLink = hrefLink("Apply Diff") {
val hrefLink = hrefLink("Save File") {
try {
handle(filename, codeValue)
send(SocketManagerBase.divInitializer(cancelable = false) + """<div class="user-message">Saved ${filename}</div>""")
Expand Down
Loading

0 comments on commit 6583866

Please sign in to comment.